Class: Aws::DLM::Types::CrossRegionCopyRetainRule

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb

Overview

Note:

When making an API call, you may pass CrossRegionCopyRetainRule data as a hash:

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

Specifies the retention rule for cross-Region snapshot copies.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#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)


338
339
340
341
342
343
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 338

class CrossRegionCopyRetainRule < Struct.new(
  :interval,
  :interval_unit)
  SENSITIVE = []
  include Aws::Structure
end

#interval_unitString

The unit of time for time-based retention.

Returns:

  • (String)


338
339
340
341
342
343
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 338

class CrossRegionCopyRetainRule < Struct.new(
  :interval,
  :interval_unit)
  SENSITIVE = []
  include Aws::Structure
end