RetainRule - Amazon Data Lifecycle Manager

RetainRule

Specifies the retention rule for a lifecycle policy. You can retain snapshots based on either a count or a time interval.

Contents

Count

The number of snapshots to retain for each volume, up to a maximum of 1000.

Type: Integer

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

Required: No

Interval

The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.

Type: Integer

Valid Range: Minimum value of 1.

Required: No

IntervalUnit

The unit of time for time-based retention.

Type: String

Valid Values: DAYS | WEEKS | MONTHS | YEARS

Required: No

See Also

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