Interface CfnRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:14.604Z")
@Stability(Stable)
public interface CfnRuleProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnRule.
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.*;
CfnRuleProps cfnRuleProps = CfnRuleProps.builder()
.resourceType("resourceType")
.retentionPeriod(RetentionPeriodProperty.builder()
.retentionPeriodUnit("retentionPeriodUnit")
.retentionPeriodValue(123)
.build())
// the properties below are optional
.description("description")
.excludeResourceTags(List.of(ResourceTagProperty.builder()
.resourceTagKey("resourceTagKey")
.resourceTagValue("resourceTagValue")
.build()))
.lockConfiguration(UnlockDelayProperty.builder()
.unlockDelayUnit("unlockDelayUnit")
.unlockDelayValue(123)
.build())
.resourceTags(List.of(ResourceTagProperty.builder()
.resourceTagKey("resourceTagKey")
.resourceTagValue("resourceTagValue")
.build()))
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRulePropsstatic final classAn implementation forCfnRuleProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnRuleProps.Builderbuilder()default StringThe description of the retention rule.default ObjectInformation about the exclude resource tags used to identify resources that are excluded by the retention rule.default Objectdefault ObjectInformation about the resource tags used to identify resources that are retained by the retention rule.The resource type retained by the retention rule.The retention period of the rule.default StringThe state of the retention rule.getTags()Information about the tags assigned to the retention rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceType
The resource type retained by the retention rule.- See Also:
-
getRetentionPeriod
The retention period of the rule.- See Also:
-
getDescription
The description of the retention rule.- See Also:
-
getExcludeResourceTags
Information about the exclude resource tags used to identify resources that are excluded by the retention rule.- See Also:
-
getLockConfiguration
- See Also:
-
getResourceTags
Information about the resource tags used to identify resources that are retained by the retention rule.- See Also:
-
getStatus
The state of the retention rule.Only retention rules that are in the available state retain resources.
- See Also:
-
getTags
Information about the tags assigned to the retention rule.- See Also:
-
builder
- Returns:
- a
CfnRuleProps.BuilderofCfnRuleProps
-