@Stability(value=Stable)
public static interface CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty
extends software.amazon.jsii.JsiiSerializable
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Builder
A builder for
CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty |
static class |
CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Jsii$Proxy
An implementation for
CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty |
Modifier and Type | Method and Description |
---|---|
static CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Builder |
builder() |
Number |
getInterval()
The amount of time to retain a cross-Region snapshot or AMI copy.
|
String |
getIntervalUnit()
The unit of time for time-based retention.
|
@Stability(value=Stable) @NotNull Number getInterval()
The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
@Stability(value=Stable) @NotNull String getIntervalUnit()
For example, to retain a cross-Region copy for 3 months, specify Interval=3
and IntervalUnit=MONTHS
.
@Stability(value=Stable) static CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.Builder builder()
Copyright © 2023. All rights reserved.