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

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

Overview

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)


376
377
378
379
380
381
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 376

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)


376
377
378
379
380
381
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 376

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