LifecyclePolicyDetailExclusionRulesAmisLastLaunched - EC2 Image Builder
This documentation is a draft for private preview for regions in the AWS European Sovereign Cloud. Documentation content will continue to evolve. Published: December 30, 2025.

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: