@Stability(value=Stable)
public static interface CfnLifecyclePolicy.DeprecateRuleProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dlm.*;
DeprecateRuleProperty deprecateRuleProperty = DeprecateRuleProperty.builder()
.count(123)
.interval(123)
.intervalUnit("intervalUnit")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLifecyclePolicy.DeprecateRuleProperty.Builder
A builder for
CfnLifecyclePolicy.DeprecateRuleProperty |
static class |
CfnLifecyclePolicy.DeprecateRuleProperty.Jsii$Proxy
An implementation for
CfnLifecyclePolicy.DeprecateRuleProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLifecyclePolicy.DeprecateRuleProperty.Builder |
builder() |
default Number |
getCount()
If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate.
|
default Number |
getInterval()
If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule.
|
default String |
getIntervalUnit()
The unit of time in which to measure the *Interval* .
|
@Stability(value=Stable) @Nullable default Number getCount()
The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.
@Stability(value=Stable) @Nullable default Number getInterval()
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.
@Stability(value=Stable) @Nullable default String getIntervalUnit()
@Stability(value=Stable) static CfnLifecyclePolicy.DeprecateRuleProperty.Builder builder()
Copyright © 2022. All rights reserved.