Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

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)

535
536
537
538
539
540
541
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 535

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)

535
536
537
538
539
540
541
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 535

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)

535
536
537
538
539
540
541
# File 'gems/aws-sdk-dlm/lib/aws-sdk-dlm/types.rb', line 535

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