This product is not supported for your selected Datadog site. ().
This page is not yet available in Spanish. We are working on its translation.
If you have any questions or feedback about our current translation project, feel free to reach out to us!

aws_imagebuilder_lifecycle_policy

account_id

Type: STRING

arn

Type: STRING
Provider name: arn
Description: The Amazon Resource Name (ARN) of the lifecycle policy resource.

date_created

Type: TIMESTAMP
Provider name: dateCreated
Description: The timestamp when Image Builder created the lifecycle policy resource.

date_last_run

Type: TIMESTAMP
Provider name: dateLastRun
Description: The timestamp for the last time Image Builder ran the lifecycle policy.

date_updated

Type: TIMESTAMP
Provider name: dateUpdated
Description: The timestamp when Image Builder updated the lifecycle policy resource.

description

Type: STRING
Provider name: description
Description: Optional description for the lifecycle policy.

execution_role

Type: STRING
Provider name: executionRole
Description: The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.

name

Type: STRING
Provider name: name
Description: The name of the lifecycle policy.

policy_details

Type: UNORDERED_LIST_STRUCT
Provider name: policyDetails
Description: The configuration details for a lifecycle policy resource.

  • action
    Type: STRUCT
    Provider name: action
    Description: Configuration details for the policy action.
    • include_resources
      Type: STRUCT
      Provider name: includeResources
      Description: Specifies the resources that the lifecycle policy applies to.
      • amis
        Type: BOOLEAN
        Provider name: amis
        Description: Specifies whether the lifecycle action should apply to distributed AMIs.
      • containers
        Type: BOOLEAN
        Provider name: containers
        Description: Specifies whether the lifecycle action should apply to distributed containers.
      • snapshots
        Type: BOOLEAN
        Provider name: snapshots
        Description: Specifies whether the lifecycle action should apply to snapshots associated with distributed AMIs.
    • type
      Type: STRING
      Provider name: type
      Description: Specifies the lifecycle action to take.
  • exclusion_rules
    Type: STRUCT
    Provider name: exclusionRules
    Description: Additional rules to specify resources that should be exempt from policy actions.
    • amis
      Type: STRUCT
      Provider name: amis
      Description: Lists configuration values that apply to AMIs that Image Builder should exclude from the lifecycle action.
      • is_public
        Type: BOOLEAN
        Provider name: isPublic
        Description: Configures whether public AMIs are excluded from the lifecycle action.
      • last_launched
        Type: STRUCT
        Provider name: lastLaunched
        Description: Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
        • unit
          Type: STRING
          Provider name: unit
          Description: Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years.
        • value
          Type: INT32
          Provider name: value
          Description: The integer number of units for the time period. For example 6 (months).
      • regions
        Type: UNORDERED_LIST_STRING
        Provider name: regions
        Description: Configures Amazon Web Services Regions that are excluded from the lifecycle action.
      • shared_accounts
        Type: UNORDERED_LIST_STRING
        Provider name: sharedAccounts
        Description: Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
      • tag_map
        Type: MAP_STRING_STRING
        Provider name: tagMap
        Description: Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
    • tag_map
      Type: MAP_STRING_STRING
      Provider name: tagMap
      Description: Contains a list of tags that Image Builder uses to skip lifecycle actions for Image Builder image resources that have them.
  • filter
    Type: STRUCT
    Provider name: filter
    Description: Specifies the resources that the lifecycle policy applies to.
    • retain_at_least
      Type: INT32
      Provider name: retainAtLeast
      Description: For age-based filters, this is the number of resources to keep on hand after the lifecycle DELETE action is applied. Impacted resources are only deleted if you have more than this number of resources. If you have fewer resources than this number, the impacted resource is not deleted.
    • type
      Type: STRING
      Provider name: type
      Description: Filter resources based on either age or count.
    • unit
      Type: STRING
      Provider name: unit
      Description: Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.
    • value
      Type: INT32
      Provider name: value
      Description: The number of units for the time period or for the count. For example, a value of 6 might refer to six months or six AMIs. For count-based filters, this value represents the minimum number of resources to keep on hand. If you have fewer resources than this number, the resource is excluded from lifecycle actions.

resource_selection

Type: STRUCT
Provider name: resourceSelection
Description: Resource selection criteria used to run the lifecycle policy.

  • recipes
    Type: UNORDERED_LIST_STRUCT
    Provider name: recipes
    Description: A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.
    • name
      Type: STRING
      Provider name: name
      Description: The name of an Image Builder recipe that the lifecycle policy uses for resource selection.
    • semantic_version
      Type: STRING
      Provider name: semanticVersion
      Description: The version of the Image Builder recipe specified by the name field.
  • tag_map
    Type: MAP_STRING_STRING
    Provider name: tagMap
    Description: A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.

resource_type

Type: STRING
Provider name: resourceType
Description: The type of resources the lifecycle policy targets.

status

Type: STRING
Provider name: status
Description: Indicates whether the lifecycle policy resource is enabled.

tags

Type: UNORDERED_LIST_STRING