View a markdown version of this page

AWS::ImageBuilder::LifecyclePolicy AmiExclusionRules - 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 AmiExclusionRules

Defines criteria for AMIs that are excluded from lifecycle actions.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "IsPublic" : Boolean, "LastLaunched" : LastLaunched, "Regions" : [ String, ... ], "SharedAccounts" : [ String, ... ], "TagMap" : {Key: Value, ...} }

YAML

IsPublic: Boolean LastLaunched: LastLaunched Regions: - String SharedAccounts: - String TagMap: Key: Value

Properties

IsPublic

Configures whether public AMIs are excluded from the lifecycle action.

Required: No

Type: Boolean

Update requires: No interruption

LastLaunched

Configures Image Builder to exclude AMIs that were launched within the specified time period from lifecycle actions. AMIs with no recorded last-launched time aren't excluded by this rule.

Required: No

Type: LastLaunched

Update requires: No interruption

Regions

Configures Amazon Web Services Regions that are excluded from the lifecycle action.

Required: No

Type: Array of String

Update requires: No interruption

SharedAccounts

The lifecycle action doesn't apply to AMIs that are shared with any of the specified Amazon Web Services accounts.

Required: No

Type: Array of String

Minimum: 1

Maximum: 1536

Update requires: No interruption

TagMap

Lifecycle actions don't apply to AMIs that have any of these tags. Both the key and the value must match.

Required: No

Type: Object of String

Pattern: .{1,}

Update requires: No interruption