Skip to content

Update Lifecycle Policy

imagebuilder_update_lifecycle_policy R Documentation

Update the specified lifecycle policy

Description

Update the specified lifecycle policy.

Usage

imagebuilder_update_lifecycle_policy(lifecyclePolicyArn, description,
  status, executionRole, resourceType, policyDetails, resourceSelection,
  clientToken)

Arguments

lifecyclePolicyArn

[required] The Amazon Resource Name (ARN) of the lifecycle policy resource.

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) of the IAM role that Image Builder uses to update the lifecycle policy.

resourceType

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

policyDetails

[required] The configuration details for a lifecycle policy resource.

resourceSelection

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

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.

Value

A list with the following syntax:

list(
  lifecyclePolicyArn = "string"
)

Request syntax

svc$update_lifecycle_policy(
  lifecyclePolicyArn = "string",
  description = "string",
  status = "DISABLED"|"ENABLED",
  executionRole = "string",
  resourceType = "AMI_IMAGE"|"CONTAINER_IMAGE",
  policyDetails = list(
    list(
      action = list(
        type = "DELETE"|"DEPRECATE"|"DISABLE",
        includeResources = list(
          amis = TRUE|FALSE,
          snapshots = TRUE|FALSE,
          containers = TRUE|FALSE
        )
      ),
      filter = list(
        type = "AGE"|"COUNT",
        value = 123,
        unit = "DAYS"|"WEEKS"|"MONTHS"|"YEARS",
        retainAtLeast = 123
      ),
      exclusionRules = list(
        tagMap = list(
          "string"
        ),
        amis = list(
          isPublic = TRUE|FALSE,
          regions = list(
            "string"
          ),
          sharedAccounts = list(
            "string"
          ),
          lastLaunched = list(
            value = 123,
            unit = "DAYS"|"WEEKS"|"MONTHS"|"YEARS"
          ),
          tagMap = list(
            "string"
          )
        )
      )
    )
  ),
  resourceSelection = list(
    recipes = list(
      list(
        name = "string",
        semanticVersion = "string"
      )
    ),
    tagMap = list(
      "string"
    )
  ),
  clientToken = "string"
)