View a markdown version of this page

AWS::ImageBuilder::LifecyclePolicy Action - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon 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 Amazon CloudFormation template, use the following syntax:

JSON

{ "IncludeResources" : IncludeResources, "Type" : 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. DELETE rules can include all three, DEPRECATE and DISABLE rules 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. DELETE deletes the image resource and, with includeResources, also removes distributed AMIs, snapshots, or container images. DEPRECATE and DISABLE set the corresponding status on the image resource and, if includeResources.amis is set, on its distributed AMIs.

Required: Yes

Type: String

Allowed values: DELETE | DEPRECATE | DISABLE

Update requires: No interruption