public static final class CfnLifecyclePolicy.DeprecateRuleProperty.Builder
extends java.lang.Object
CfnLifecyclePolicy.DeprecateRuleProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnLifecyclePolicy.DeprecateRuleProperty |
build()
Builds the configured instance.
|
CfnLifecyclePolicy.DeprecateRuleProperty.Builder |
count(java.lang.Number count)
Sets the value of
CfnLifecyclePolicy.DeprecateRuleProperty.getCount() |
CfnLifecyclePolicy.DeprecateRuleProperty.Builder |
interval(java.lang.Number interval)
Sets the value of
CfnLifecyclePolicy.DeprecateRuleProperty.getInterval() |
CfnLifecyclePolicy.DeprecateRuleProperty.Builder |
intervalUnit(java.lang.String intervalUnit)
Sets the value of
CfnLifecyclePolicy.DeprecateRuleProperty.getIntervalUnit() |
public CfnLifecyclePolicy.DeprecateRuleProperty.Builder count(java.lang.Number count)
CfnLifecyclePolicy.DeprecateRuleProperty.getCount()
count
- If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate.
The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.this
public CfnLifecyclePolicy.DeprecateRuleProperty.Builder interval(java.lang.Number interval)
CfnLifecyclePolicy.DeprecateRuleProperty.getInterval()
interval
- If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule.
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.this
public CfnLifecyclePolicy.DeprecateRuleProperty.Builder intervalUnit(java.lang.String intervalUnit)
CfnLifecyclePolicy.DeprecateRuleProperty.getIntervalUnit()
intervalUnit
- The unit of time in which to measure the *Interval* .this
public CfnLifecyclePolicy.DeprecateRuleProperty build()
CfnLifecyclePolicy.DeprecateRuleProperty
java.lang.NullPointerException
- if any required attribute was not provided