class Aws::DLM::Types::DeprecateRule
Specifies an AMI deprecation rule for a schedule.
@note When making an API call, you may pass DeprecateRule
data as a hash: { count: 1, interval: 1, interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS }
@!attribute [rw] 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. @return [Integer]
@!attribute [rw] 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. @return [Integer]
@!attribute [rw] interval_unit
The unit of time in which to measure the **Interval**. @return [String]
@see docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/DeprecateRule AWS API Documentation
Constants
- SENSITIVE