Interface CfnLifecyclePolicy.ICrossRegionCopyRetainRuleProperty
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.
Namespace: Amazon.CDK.AWS.DLM
Assembly: Amazon.CDK.AWS.DLM.dll
Syntax (csharp)
public interface ICrossRegionCopyRetainRuleProperty
Syntax (vb)
Public Interface ICrossRegionCopyRetainRuleProperty
Remarks
After the retention period expires, the cross-Region copy is deleted.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DLM;
var crossRegionCopyRetainRuleProperty = new CrossRegionCopyRetainRuleProperty {
Interval = 123,
IntervalUnit = "intervalUnit"
};
Synopsis
Properties
Interval | The amount of time to retain a cross-Region snapshot or AMI copy. |
IntervalUnit | The unit of time for time-based retention. |
Properties
Interval
The amount of time to retain a cross-Region snapshot or AMI copy.
double Interval { get; }
Property Value
System.Double
Remarks
The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
IntervalUnit
The unit of time for time-based retention.
string IntervalUnit { get; }
Property Value
System.String
Remarks
For example, to retain a cross-Region copy for 3 months, specify Interval=3
and IntervalUnit=MONTHS
.