@Stability(value=Stable)
public static interface CfnLifecyclePolicy.RetainRuleProperty
extends software.amazon.jsii.JsiiSerializable
You can retain snapshots based on either a count or a time interval.
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.*;
RetainRuleProperty retainRuleProperty = RetainRuleProperty.builder()
.count(123)
.interval(123)
.intervalUnit("intervalUnit")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLifecyclePolicy.RetainRuleProperty.Builder
A builder for
CfnLifecyclePolicy.RetainRuleProperty |
static class |
CfnLifecyclePolicy.RetainRuleProperty.Jsii$Proxy
An implementation for
CfnLifecyclePolicy.RetainRuleProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLifecyclePolicy.RetainRuleProperty.Builder |
builder() |
default Number |
getCount()
The number of snapshots to retain for each volume, up to a maximum of 1000.
|
default Number |
getInterval()
The amount of time to retain each snapshot.
|
default String |
getIntervalUnit()
The unit of time for time-based retention.
|
@Stability(value=Stable) @Nullable default Number getCount()
@Stability(value=Stable) @Nullable default Number getInterval()
The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
@Stability(value=Stable) @Nullable default String getIntervalUnit()
@Stability(value=Stable) static CfnLifecyclePolicy.RetainRuleProperty.Builder builder()
Copyright © 2022. All rights reserved.