Class CfnRule.Builder
java.lang.Object
software.amazon.awscdk.services.rbin.CfnRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule>
- Enclosing class:
CfnRule
@Stability(Stable)
public static final class CfnRule.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule>
A fluent builder for
CfnRule.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnRule.Builderdescription(String description) The description of the retention rule.excludeResourceTags(List<? extends Object> excludeResourceTags) Information about the exclude resource tags used to identify resources that are excluded by the retention rule.excludeResourceTags(IResolvable excludeResourceTags) Information about the exclude resource tags used to identify resources that are excluded by the retention rule.lockConfiguration(IResolvable lockConfiguration) lockConfiguration(CfnRule.UnlockDelayProperty lockConfiguration) resourceTags(List<? extends Object> resourceTags) Information about the resource tags used to identify resources that are retained by the retention rule.resourceTags(IResolvable resourceTags) Information about the resource tags used to identify resources that are retained by the retention rule.resourceType(String resourceType) The resource type retained by the retention rule.retentionPeriod(IResolvable retentionPeriod) The retention period of the rule.retentionPeriod(CfnRule.RetentionPeriodProperty retentionPeriod) The retention period of the rule.The state of the retention rule.Information about the tags assigned to the retention rule.
-
Method Details
-
create
@Stability(Stable) public static CfnRule.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnRule.Builder.
-
resourceType
The resource type retained by the retention rule.- Parameters:
resourceType- The resource type retained by the retention rule. This parameter is required.- Returns:
this- See Also:
-
retentionPeriod
The retention period of the rule.- Parameters:
retentionPeriod- The retention period of the rule. This parameter is required.- Returns:
this- See Also:
-
retentionPeriod
@Stability(Stable) public CfnRule.Builder retentionPeriod(CfnRule.RetentionPeriodProperty retentionPeriod) The retention period of the rule.- Parameters:
retentionPeriod- The retention period of the rule. This parameter is required.- Returns:
this- See Also:
-
description
The description of the retention rule.- Parameters:
description- The description of the retention rule. This parameter is required.- Returns:
this- See Also:
-
excludeResourceTags
Information about the exclude resource tags used to identify resources that are excluded by the retention rule.- Parameters:
excludeResourceTags- Information about the exclude resource tags used to identify resources that are excluded by the retention rule. This parameter is required.- Returns:
this- See Also:
-
excludeResourceTags
@Stability(Stable) public CfnRule.Builder excludeResourceTags(List<? extends Object> excludeResourceTags) Information about the exclude resource tags used to identify resources that are excluded by the retention rule.- Parameters:
excludeResourceTags- Information about the exclude resource tags used to identify resources that are excluded by the retention rule. This parameter is required.- Returns:
this- See Also:
-
lockConfiguration
- Parameters:
lockConfiguration- This parameter is required.- Returns:
this- See Also:
-
lockConfiguration
@Stability(Stable) public CfnRule.Builder lockConfiguration(CfnRule.UnlockDelayProperty lockConfiguration) - Parameters:
lockConfiguration- This parameter is required.- Returns:
this- See Also:
-
resourceTags
Information about the resource tags used to identify resources that are retained by the retention rule.- Parameters:
resourceTags- Information about the resource tags used to identify resources that are retained by the retention rule. This parameter is required.- Returns:
this- See Also:
-
resourceTags
Information about the resource tags used to identify resources that are retained by the retention rule.- Parameters:
resourceTags- Information about the resource tags used to identify resources that are retained by the retention rule. This parameter is required.- Returns:
this- See Also:
-
status
The state of the retention rule.Only retention rules that are in the available state retain resources.
- Parameters:
status- The state of the retention rule. This parameter is required.- Returns:
this- See Also:
-
tags
Information about the tags assigned to the retention rule.- Parameters:
tags- Information about the tags assigned to the retention rule. This parameter is required.- Returns:
this- See Also:
-
build
-