LifecyclePolicyDetailExclusionRulesAmisLastLaunched - EC2 Image Builder

LifecyclePolicyDetailExclusionRulesAmisLastLaunched

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

Contents

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.

Type: String

Valid Values: DAYS | WEEKS | MONTHS | YEARS

Required: Yes

value

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

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 365.

Required: Yes

See Also

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