Class: Aws::DLM::Types::DeprecateRule

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 AMIs created by an AMI lifecycle policy.

For age-based schedules, you must specify Interval and IntervalUnit. For count-based schedules, you must specify Count.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#countInteger

If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.

Returns:

  • (Integer)


521
522
523
524
525
526
527
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 521

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

#intervalInteger

If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. The period must be less than or equal to the schedule's retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.

Returns:

  • (Integer)


521
522
523
524
525
526
527
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 521

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

#interval_unitString

The unit of time in which to measure the Interval.

Returns:

  • (String)


521
522
523
524
525
526
527
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 521

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