Interface CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static interface CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty
extends software.amazon.jsii.JsiiSerializable
[Custom AMI policies only] Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.
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.*; CrossRegionCopyDeprecateRuleProperty crossRegionCopyDeprecateRuleProperty = CrossRegionCopyDeprecateRuleProperty.builder() .interval(123) .intervalUnit("intervalUnit") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty
static final class
An implementation forCfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The period after which to deprecate the cross-Region AMI copies.The unit of time in which to measure the Interval .Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInterval
The period after which to deprecate the cross-Region AMI copies.The period must be less than or equal to the cross-Region AMI copy 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 .For example, to deprecate a cross-Region AMI copy after 3 months, specify
Interval=3
andIntervalUnit=MONTHS
.- See Also:
-
builder
-