Class: Aws::DLM::Types::DeprecateRule
- Inherits:
-
Struct
- Object
- Struct
- Aws::DLM::Types::DeprecateRule
- Includes:
- Structure
- Defined in:
- 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
-
#count ⇒ Integer
If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate.
-
#interval ⇒ Integer
If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule.
-
#interval_unit ⇒ String
The unit of time in which to measure the Interval.
Instance Attribute Details
#count ⇒ Integer
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.
535 536 537 538 539 540 541 |
# File 'lib/aws-sdk-dlm/types.rb', line 535 class DeprecateRule < Struct.new( :count, :interval, :interval_unit) SENSITIVE = [] include Aws::Structure end |
#interval ⇒ Integer
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.
535 536 537 538 539 540 541 |
# File 'lib/aws-sdk-dlm/types.rb', line 535 class DeprecateRule < Struct.new( :count, :interval, :interval_unit) SENSITIVE = [] include Aws::Structure end |
#interval_unit ⇒ String
The unit of time in which to measure the Interval.
535 536 537 538 539 540 541 |
# File 'lib/aws-sdk-dlm/types.rb', line 535 class DeprecateRule < Struct.new( :count, :interval, :interval_unit) SENSITIVE = [] include Aws::Structure end |