Class: Aws::DLM::Types::CrossRegionCopyDeprecateRule

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

Overview

[Custom AMI policies only] Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#intervalInteger

The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.

Returns:

  • (Integer)


350
351
352
353
354
355
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 350

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

#interval_unitString

The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3 and IntervalUnit=MONTHS.

Returns:

  • (String)


350
351
352
353
354
355
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 350

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