AWS::DLM::LifecyclePolicy DeprecateRule
[Custom AMI policies only] Specifies an AMI deprecation rule for AMIs created by an AMI lifecycle policy.
For age-based schedules, you must specify Interval and IntervalUnit. For count-based schedules, you must specify Count.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Count" :
Integer
, "Interval" :Integer
, "IntervalUnit" :String
}
YAML
Count:
Integer
Interval:Integer
IntervalUnit:String
Properties
Count
-
If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.
Required: No
Type: Integer
Minimum:
1
Maximum:
1000
Update requires: No interruption
Interval
-
If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. The period must be less than or equal to the schedule's retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
Required: No
Type: Integer
Minimum:
1
Update requires: No interruption
IntervalUnit
-
The unit of time in which to measure the Interval.
Required: No
Type: String
Allowed values:
DAYS | WEEKS | MONTHS | YEARS
Update requires: No interruption