Learn R Programming

paws.compute (version 0.7.0)

imagebuilder_create_lifecycle_policy: Create a lifecycle policy resource

Description

Create a lifecycle policy resource.

See https://www.paws-r-sdk.com/docs/imagebuilder_create_lifecycle_policy/ for full documentation.

Usage

imagebuilder_create_lifecycle_policy(
  name,
  description = NULL,
  status = NULL,
  executionRole,
  resourceType,
  policyDetails,
  resourceSelection,
  tags = NULL,
  clientToken
)

Arguments

name

[required] The name of the lifecycle policy to create.

description

Optional description for the lifecycle policy.

status

Indicates whether the lifecycle policy resource is enabled.

executionRole

[required] The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.

resourceType

[required] The type of Image Builder resource that the lifecycle policy applies to.

policyDetails

[required] Configuration details for the lifecycle policy rules.

resourceSelection

[required] Selection criteria for the resources that the lifecycle policy applies to.

tags

Tags to apply to the lifecycle policy resource.

clientToken

[required] Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.