Interface CfnLifecyclePolicy.IDeprecateRuleProperty
[Custom AMI policies only] Specifies an AMI deprecation rule for AMIs created by an AMI lifecycle policy.
Namespace: Amazon.CDK.AWS.DLM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IDeprecateRuleProperty
Syntax (vb)
Public Interface IDeprecateRuleProperty
Remarks
For age-based schedules, you must specify Interval and IntervalUnit . For count-based schedules, you must specify Count .
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 deprecateRuleProperty = new DeprecateRuleProperty {
Count = 123,
Interval = 123,
IntervalUnit = "intervalUnit"
};
Synopsis
Properties
Count | If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. |
Interval | If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. |
IntervalUnit | The unit of time in which to measure the Interval . |
Properties
Count
If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate.
virtual Nullable<double> Count { get; }
Property Value
System.Nullable<System.Double>
Remarks
The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.
Interval
If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule.
virtual Nullable<double> Interval { get; }
Property Value
System.Nullable<System.Double>
Remarks
The period must be less than or equal to the schedule's 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 .
virtual string IntervalUnit { get; }
Property Value
System.String