Class CfnRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.rbin.CfnRule
- All Implemented Interfaces:
IInspectable,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:14.601Z")
@Stability(Stable)
public class CfnRule
extends CfnResource
implements IInspectable, ITaggableV2
Resource Type definition for AWS::Rbin::Rule.
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.*;
CfnRule cfnRule = CfnRule.Builder.create(this, "MyCfnRule")
.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 TypeClassDescriptionstatic final classA fluent builder forCfnRule.static interfaceThe resource tag of the rule.static interfaceThe retention period of the rule.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRule(software.amazon.jsii.JsiiObjectRef objRef) CfnRule(software.constructs.Construct scope, String id, CfnRuleProps props) -
Method Summary
Modifier and TypeMethodDescriptionRule Arn is unique for each rule.The unique ID of the retention rule.The lock state for the retention rule.Tag Manager which manages the tags for this resource.The description of the retention rule.Information about the exclude resource tags used to identify resources that are excluded by the retention rule.Information 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.The state of the retention rule.getTags()Information about the tags assigned to the retention rule.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of the retention rule.voidsetExcludeResourceTags(List<Object> value) Information about the exclude resource tags used to identify resources that are excluded by the retention rule.voidInformation about the exclude resource tags used to identify resources that are excluded by the retention rule.voidsetLockConfiguration(IResolvable value) voidvoidsetResourceTags(List<Object> value) Information about the resource tags used to identify resources that are retained by the retention rule.voidsetResourceTags(IResolvable value) Information about the resource tags used to identify resources that are retained by the retention rule.voidsetResourceType(String value) The resource type retained by the retention rule.voidsetRetentionPeriod(IResolvable value) The retention period of the rule.voidThe retention period of the rule.voidThe state of the retention rule.voidInformation about the tags assigned to the retention rule.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnRule
protected CfnRule(software.amazon.jsii.JsiiObjectRef objRef) -
CfnRule
protected CfnRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnRule
@Stability(Stable) public CfnRule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRuleProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Rule Arn is unique for each rule. -
getAttrIdentifier
The unique ID of the retention rule. -
getAttrLockState
The lock state for the retention rule. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getResourceType
The resource type retained by the retention rule. -
setResourceType
The resource type retained by the retention rule. -
getRetentionPeriod
The retention period of the rule. -
setRetentionPeriod
The retention period of the rule. -
setRetentionPeriod
The retention period of the rule. -
getDescription
The description of the retention rule. -
setDescription
The description of the retention rule. -
getExcludeResourceTags
Information about the exclude resource tags used to identify resources that are excluded by the retention rule. -
setExcludeResourceTags
Information about the exclude resource tags used to identify resources that are excluded by the retention rule. -
setExcludeResourceTags
Information about the exclude resource tags used to identify resources that are excluded by the retention rule. -
getLockConfiguration
-
setLockConfiguration
-
setLockConfiguration
-
getResourceTags
Information about the resource tags used to identify resources that are retained by the retention rule. -
setResourceTags
Information about the resource tags used to identify resources that are retained by the retention rule. -
setResourceTags
Information about the resource tags used to identify resources that are retained by the retention rule. -
getStatus
The state of the retention rule. -
setStatus
The state of the retention rule. -
getTags
Information about the tags assigned to the retention rule. -
setTags
Information about the tags assigned to the retention rule.
-