You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::DLM::Types::RetainRule

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing RetainRule as input to an Aws::Client method, you can use a vanilla Hash:

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

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

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#countInteger

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

Returns:

  • (Integer)

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

#intervalInteger

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

Returns:

  • (Integer)

    The amount of time to retain each snapshot.

#interval_unitString

The unit of time for time-based retention.

Possible values:

  • DAYS
  • WEEKS
  • MONTHS
  • YEARS

Returns:

  • (String)

    The unit of time for time-based retention.