AWS::ImageBuilder::LifecyclePolicy LastLaunched - 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).

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 Amazon 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