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.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.The period is measured using the unit specified for RetentionPeriodUnit .
- See Also:
-
builder
-