Interface CfnRulePropsMixin.RetentionPeriodProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRulePropsMixin.RetentionPeriodProperty.Jsii$Proxy
- Enclosing class:
CfnRulePropsMixin
@Stability(Stable)
public static interface CfnRulePropsMixin.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.cfnpropertymixins.services.rbin.*;
RetentionPeriodProperty retentionPeriodProperty = RetentionPeriodProperty.builder()
.retentionPeriodUnit("retentionPeriodUnit")
.retentionPeriodValue(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRulePropsMixin.RetentionPeriodPropertystatic final classAn implementation forCfnRulePropsMixin.RetentionPeriodProperty -
Method Summary
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
-