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
- Struct
- Aws::DLM::Types::RetainRule
- Defined in:
- (unknown)
Overview
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
-
#count ⇒ Integer
The number of snapshots to retain for each volume, up to a maximum of 1000.
-
#interval ⇒ Integer
The amount of time to retain each snapshot.
-
#interval_unit ⇒ String
The unit of time for time-based retention.
Instance Attribute Details
#count ⇒ Integer
The number of snapshots to retain for each volume, up to a maximum of 1000.
#interval ⇒ Integer
The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
#interval_unit ⇒ String
The unit of time for time-based retention.
Possible values:
- DAYS
- WEEKS
- MONTHS
- YEARS