Skip to content

DeprecateRule

Source code in docs_src/capo_dlm/types/deprecate_rule.py
class DeprecateRule(TypedDict, closed=True):
    count: NotRequired["capo_dlm.types.count.Count"]
    """<p>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.</p>"""
    interval: NotRequired["capo_dlm.types.interval.Interval"]
    """<p>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.</p>"""
    interval_unit: NotRequired[
        "capo_dlm.types.retention_interval_unit_values.RetentionIntervalUnitValues"
    ]
    """<p>The unit of time in which to measure the <b>Interval</b>.</p>"""

count instance-attribute

count: NotRequired[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.

interval instance-attribute

interval: NotRequired[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.

interval_unit instance-attribute

interval_unit: NotRequired[RetentionIntervalUnitValues]

The unit of time in which to measure the Interval.