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: