Resource schema for AWS::ImageBuilder::LifecyclePolicy
execution_role
(String) The execution role of the lifecycle policy.name
(String) The name of the lifecycle policy.policy_details
(Attributes List) The policy details of the lifecycle policy. (see below for nested schema)resource_selection
(Attributes) The resource selection of the lifecycle policy. (see below for nested schema)resource_type
(String) The resource type of the lifecycle policy.description
(String) The description of the lifecycle policy.status
(String) The status of the lifecycle policy.tags
(Map of String) The tags associated with the lifecycle policy.arn
(String) The Amazon Resource Name (ARN) of the lifecycle policy.id
(String) Uniquely identifies the resource.policy_details
Required:
action
(Attributes) The action of the policy detail. (see below for nested schema)filter
(Attributes) The filters to apply of the policy detail. (see below for nested schema)Optional:
exclusion_rules
(Attributes) The exclusion rules to apply of the policy detail. (see below for nested schema)policy_details.action
Required:
type
(String) The action type of the policy detail.Optional:
include_resources
(Attributes) The included resources of the policy detail. (see below for nested schema)policy_details.action.include_resources
Optional:
amis
(Boolean) Use to configure lifecycle actions on AMIs.containers
(Boolean) Use to configure lifecycle actions on containers.snapshots
(Boolean) Use to configure lifecycle actions on snapshots.policy_details.filter
Required:
type
(String) The filter type.value
(Number) The filter value.Optional:
retain_at_least
(Number) The minimum number of Image Builder resources to retain.unit
(String) The value's time unit.policy_details.exclusion_rules
Optional:
amis
(Attributes) The AMI exclusion rules for the policy detail. (see below for nested schema)tag_map
(Map of String) The Image Builder tags to filter on.policy_details.exclusion_rules.amis
Optional:
is_public
(Boolean) Use to apply lifecycle policy actions on whether the AMI is public.last_launched
(Attributes) Use to apply lifecycle policy actions on AMIs launched before a certain time. (see below for nested schema)regions
(List of String) Use to apply lifecycle policy actions on AMIs distributed to a set of regions.shared_accounts
(List of String) Use to apply lifecycle policy actions on AMIs shared with a set of regions.tag_map
(Map of String) The AMIs to select by tag.policy_details.exclusion_rules.amis.last_launched
Required:
unit
(String) The value's time unit.value
(Number) The last launched value.resource_selection
Optional:
recipes
(Attributes List) The recipes to select. (see below for nested schema)tag_map
(Map of String) The Image Builder resources to select by tag.resource_selection.recipes
Required:
name
(String) The recipe name.semantic_version
(String) The recipe version.Import is supported using the following syntax:
$ terraform import awscc_imagebuilder_lifecycle_policy.example <resource ID>