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 a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies. After the retention period expires, the cross-Region copy is deleted.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#intervalInteger

The amount of time to retain a cross-Region snapshot or AMI copy. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.

Returns:

  • (Integer)


477
478
479
480
481
482
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 477

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

#interval_unitString

The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify Interval=3 and IntervalUnit=MONTHS.

Returns:

  • (String)


477
478
479
480
481
482
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 477

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