class Aws::DLM::Types::RetainRule

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

@note When making an API call, you may pass RetainRule

data as a hash:

    {
      count: 1,
      interval: 1,
      interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
    }

@!attribute [rw] count

The number of snapshots to retain for each volume, up to a maximum
of 1000.
@return [Integer]

@!attribute [rw] 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.
@return [Integer]

@!attribute [rw] interval_unit

The unit of time for time-based retention.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/RetainRule AWS API Documentation

Constants

SENSITIVE