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 AmiExclusionRules
Defines criteria for AMIs that are excluded from lifecycle actions.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "IsPublic" :Boolean, "LastLaunched" :LastLaunched, "Regions" :[ String, ... ], "SharedAccounts" :[ String, ... ], "TagMap" :{}Key:Value, ...}
YAML
IsPublic:BooleanLastLaunched:LastLaunchedRegions:- StringSharedAccounts:- StringTagMap: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 AWS Regions that are excluded from the lifecycle action.
Required: No
Type: Array of String
Update requires: No interruption
-
The lifecycle action doesn't apply to AMIs that are shared with any of the specified AWS accounts.
Required: No
Type: Array of String
Minimum:
1Maximum:
1536Update 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