This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::ImageBuilder::LifecyclePolicy Action
Contains the action configuration for a lifecycle policy rule: the action to take, and which underlying resources the action extends to.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "IncludeResources" :IncludeResources, "Type" :String}
YAML
IncludeResources:IncludeResourcesType:String
Properties
IncludeResources-
Specifies which underlying resources the action extends to beyond the Image Builder image resource itself: distributed AMIs, their snapshots, or distributed container images.
DELETErules can include all three,DEPRECATEandDISABLErules can include AMIs only, and you can only include snapshots together with AMIs.Required: No
Type: IncludeResources
Update requires: No interruption
Type-
Specifies the lifecycle action to take.
DELETEdeletes the image resource and, withincludeResources, also removes distributed AMIs, snapshots, or container images.DEPRECATEandDISABLEset the corresponding status on the image resource and, ifincludeResources.amisis set, on its distributed AMIs.Required: Yes
Type: String
Allowed values:
DELETE | DEPRECATE | DISABLEUpdate requires: No interruption