@Stability(value=Stable) public static final class CfnLifecyclePolicy.DeprecateRuleProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnLifecyclePolicy.DeprecateRuleProperty>
CfnLifecyclePolicy.DeprecateRuleProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnLifecyclePolicy.DeprecateRuleProperty |
build()
Builds the configured instance.
|
CfnLifecyclePolicy.DeprecateRuleProperty.Builder |
count(Number count)
Sets the value of
CfnLifecyclePolicy.DeprecateRuleProperty.getCount() |
CfnLifecyclePolicy.DeprecateRuleProperty.Builder |
interval(Number interval)
Sets the value of
CfnLifecyclePolicy.DeprecateRuleProperty.getInterval() |
CfnLifecyclePolicy.DeprecateRuleProperty.Builder |
intervalUnit(String intervalUnit)
Sets the value of
CfnLifecyclePolicy.DeprecateRuleProperty.getIntervalUnit() |
@Stability(value=Stable) public CfnLifecyclePolicy.DeprecateRuleProperty.Builder count(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@Stability(value=Stable) public CfnLifecyclePolicy.DeprecateRuleProperty.Builder interval(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@Stability(value=Stable) public CfnLifecyclePolicy.DeprecateRuleProperty.Builder intervalUnit(String intervalUnit)
CfnLifecyclePolicy.DeprecateRuleProperty.getIntervalUnit()intervalUnit - The unit of time in which to measure the *Interval* .this@Stability(value=Stable) public CfnLifecyclePolicy.DeprecateRuleProperty build()
build in interface software.amazon.jsii.Builder<CfnLifecyclePolicy.DeprecateRuleProperty>CfnLifecyclePolicy.DeprecateRulePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.