Class CfnLifecyclePolicy.DeprecateRuleProperty
[Custom AMI policies only] Specifies an AMI deprecation rule for AMIs created by an AMI lifecycle policy.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.DLM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DeprecateRuleProperty : Object, CfnLifecyclePolicy.IDeprecateRuleProperty
Syntax (vb)
Public Class DeprecateRuleProperty
Inherits Object
Implements CfnLifecyclePolicy.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
Constructors
DeprecateRuleProperty() |
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 . |
Constructors
DeprecateRuleProperty()
public DeprecateRuleProperty()
Properties
Count
If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate.
public Nullable<double> Count { get; set; }
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.
public Nullable<double> Interval { get; set; }
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 .
public string IntervalUnit { get; set; }
Property Value
System.String