AWS::ImageBuilder::LifecyclePolicy LastLaunched - AWS CloudFormation

AWS::ImageBuilder::LifecyclePolicy LastLaunched

Defines criteria to exclude AMIs from lifecycle actions based on the last time they were used to launch an instance.

Syntax

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

JSON

{ "Unit" : String, "Value" : Integer }

YAML

Unit: String Value: Integer

Properties

Unit

Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years.

Required: Yes

Type: String

Allowed values: DAYS | WEEKS | MONTHS | YEARS

Update requires: No interruption

Value

The integer number of units for the time period. For example 6 (months).

Required: Yes

Type: Integer

Minimum: 1

Maximum: 365

Update requires: No interruption