Interface CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static interface CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty
extends software.amazon.jsii.JsiiSerializable
Specifies a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies.
After the retention period expires, the cross-Region copy is deleted.
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.*;
CrossRegionCopyRetainRuleProperty crossRegionCopyRetainRuleProperty = CrossRegionCopyRetainRuleProperty.builder()
.interval(123)
.intervalUnit("intervalUnit")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLifecyclePolicy.CrossRegionCopyRetainRulePropertystatic final classAn implementation forCfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The amount of time to retain a cross-Region snapshot or AMI copy.The unit of time for time-based retention.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInterval
The amount of time to retain a cross-Region snapshot or AMI copy.The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
- See Also:
-
getIntervalUnit
The unit of time for time-based retention.For example, to retain a cross-Region copy for 3 months, specify
Interval=3andIntervalUnit=MONTHS.- See Also:
-
builder
-