Interface CfnLifecyclePolicy.ICrossRegionCopyDeprecateRuleProperty
[Custom AMI policies only] Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.
Namespace: Amazon.CDK.AWS.DLM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICrossRegionCopyDeprecateRuleProperty
Syntax (vb)
Public Interface ICrossRegionCopyDeprecateRuleProperty
Remarks
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 crossRegionCopyDeprecateRuleProperty = new CrossRegionCopyDeprecateRuleProperty {
Interval = 123,
IntervalUnit = "intervalUnit"
};
Synopsis
Properties
Interval | The period after which to deprecate the cross-Region AMI copies. |
IntervalUnit | The unit of time in which to measure the Interval . |
Properties
Interval
The period after which to deprecate the cross-Region AMI copies.
double Interval { get; }
Property Value
System.Double
Remarks
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.
IntervalUnit
The unit of time in which to measure the Interval .
string IntervalUnit { get; }
Property Value
System.String
Remarks
For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3
and IntervalUnit=MONTHS
.