Class CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty
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.
Inheritance
System.Object
CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty
Namespace: Amazon.CDK.AWS.DLM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CrossRegionCopyRetainRuleProperty : Object, CfnLifecyclePolicy.ICrossRegionCopyRetainRuleProperty
Syntax (vb)
Public Class CrossRegionCopyRetainRuleProperty
Inherits Object
Implements CfnLifecyclePolicy.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
Constructors
CrossRegionCopyRetainRuleProperty() |
Properties
Interval | The amount of time to retain a cross-Region snapshot or AMI copy. |
IntervalUnit | The unit of time for time-based retention. |
Constructors
CrossRegionCopyRetainRuleProperty()
public CrossRegionCopyRetainRuleProperty()
Properties
Interval
The amount of time to retain a cross-Region snapshot or AMI copy.
public double Interval { get; set; }
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.
public string IntervalUnit { get; set; }
Property Value
System.String
Remarks
For example, to retain a cross-Region copy for 3 months, specify Interval=3
and IntervalUnit=MONTHS
.