Interface CfnLifecyclePolicy.DeprecateRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicy.DeprecateRuleProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static interface CfnLifecyclePolicy.DeprecateRuleProperty
extends software.amazon.jsii.JsiiSerializable
[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 .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.dlm.*; DeprecateRuleProperty deprecateRuleProperty = DeprecateRuleProperty.builder() .count(123) .interval(123) .intervalUnit("intervalUnit") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLifecyclePolicy.DeprecateRuleProperty
static final class
An implementation forCfnLifecyclePolicy.DeprecateRuleProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Number
getCount()
If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate.default Number
If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule.default String
The unit of time in which to measure the Interval .Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCount
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.
- See Also:
-
getInterval
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.
- See Also:
-
getIntervalUnit
The unit of time in which to measure the Interval .- See Also:
-
builder
-