Interface CfnRule.RetentionPeriodProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRule.RetentionPeriodProperty.Jsii$Proxy
- Enclosing class:
CfnRule
@Stability(Stable)
public static interface CfnRule.RetentionPeriodProperty
extends software.amazon.jsii.JsiiSerializable
Information about the retention period for which the retention rule is to retain resources.
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.rbin.*;
RetentionPeriodProperty retentionPeriodProperty = RetentionPeriodProperty.builder()
.retentionPeriodUnit("retentionPeriodUnit")
.retentionPeriodValue(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRule.RetentionPeriodPropertystatic final classAn implementation forCfnRule.RetentionPeriodProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The unit of time in which the retention period is measured.The period value for which the retention rule is to retain resources, measured in days.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRetentionPeriodUnit
The unit of time in which the retention period is measured.Currently, only
DAYSis supported.- See Also:
-
getRetentionPeriodValue
The period value for which the retention rule is to retain resources, measured in days.The supported retention periods are:
- EBS volumes: 1 - 7 days
- EBS snapshots and EBS-backed AMIs: 1 - 365 days
- See Also:
-
builder
-