View a markdown version of this page

LifecyclePolicyDetailAction - EC2 Image Builder

LifecyclePolicyDetailAction

Contains the action configuration for a lifecycle policy rule: the action to take, and which underlying resources the action extends to.

Contents

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.

Type: String

Valid Values: DELETE | DEPRECATE | DISABLE

Required: Yes

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.

Type: LifecyclePolicyDetailActionIncludeResources object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: