Class CfnRulePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRulePropsMixin>
- Enclosing class:
CfnRulePropsMixin
CfnRulePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnRulePropsMixin.Buildercreate()static CfnRulePropsMixin.Buildercreate(CfnPropertyMixinOptions options) description(String description) The retention rule description.excludeResourceTags(List<? extends Object> excludeResourceTags) [Region-level retention rules only] Specifies the exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule.excludeResourceTags(IResolvable excludeResourceTags) [Region-level retention rules only] Specifies the exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule.lockConfiguration(CfnRulePropsMixin.UnlockDelayProperty lockConfiguration) Information about the retention rule lock configuration.lockConfiguration(IResolvable lockConfiguration) Information about the retention rule lock configuration.resourceTags(List<? extends Object> resourceTags) [Tag-level retention rules only] Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule.resourceTags(IResolvable resourceTags) [Tag-level retention rules only] Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule.resourceType(String resourceType) The resource type to be retained by the retention rule.retentionPeriod(CfnRulePropsMixin.RetentionPeriodProperty retentionPeriod) Information about the retention period for which the retention rule is to retain resources.retentionPeriod(IResolvable retentionPeriod) Information about the retention period for which the retention rule is to retain resources.The state of the retention rule.Information about the tags to assign to the retention rule.
-
Method Details
-
create
- Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnRulePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnRulePropsMixin.Builder.
-
description
The retention rule description.- Parameters:
description- The retention rule description. This parameter is required.- Returns:
this- See Also:
-
excludeResourceTags
@Stability(Stable) public CfnRulePropsMixin.Builder excludeResourceTags(IResolvable excludeResourceTags) [Region-level retention rules only] Specifies the exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule.Resources that have any of these tags are not retained by the retention rule upon deletion.
You can't specify exclusion tags for tag-level retention rules.
- Parameters:
excludeResourceTags- [Region-level retention rules only] Specifies the exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule. This parameter is required.- Returns:
this- See Also:
-
excludeResourceTags
@Stability(Stable) public CfnRulePropsMixin.Builder excludeResourceTags(List<? extends Object> excludeResourceTags) [Region-level retention rules only] Specifies the exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule.Resources that have any of these tags are not retained by the retention rule upon deletion.
You can't specify exclusion tags for tag-level retention rules.
- Parameters:
excludeResourceTags- [Region-level retention rules only] Specifies the exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule. This parameter is required.- Returns:
this- See Also:
-
lockConfiguration
@Stability(Stable) public CfnRulePropsMixin.Builder lockConfiguration(IResolvable lockConfiguration) Information about the retention rule lock configuration.- Parameters:
lockConfiguration- Information about the retention rule lock configuration. This parameter is required.- Returns:
this- See Also:
-
lockConfiguration
@Stability(Stable) public CfnRulePropsMixin.Builder lockConfiguration(CfnRulePropsMixin.UnlockDelayProperty lockConfiguration) Information about the retention rule lock configuration.- Parameters:
lockConfiguration- Information about the retention rule lock configuration. This parameter is required.- Returns:
this- See Also:
-
resourceTags
[Tag-level retention rules only] Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule.For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.
- Parameters:
resourceTags- [Tag-level retention rules only] Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. This parameter is required.- Returns:
this- See Also:
-
resourceTags
@Stability(Stable) public CfnRulePropsMixin.Builder resourceTags(List<? extends Object> resourceTags) [Tag-level retention rules only] Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule.For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.
- Parameters:
resourceTags- [Tag-level retention rules only] Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. This parameter is required.- Returns:
this- See Also:
-
resourceType
The resource type to be retained by the retention rule.Currently, only EBS volumes, EBS snapshots, and EBS-backed AMIs are supported.
- To retain EBS volumes, specify
EBS_VOLUME. - To retain EBS snapshots, specify
EBS_SNAPSHOT - To retain EBS-backed AMIs, specify
EC2_IMAGE.
- Parameters:
resourceType- The resource type to be retained by the retention rule. This parameter is required.- Returns:
this- See Also:
- To retain EBS volumes, specify
-
retentionPeriod
Information about the retention period for which the retention rule is to retain resources.- Parameters:
retentionPeriod- Information about the retention period for which the retention rule is to retain resources. This parameter is required.- Returns:
this- See Also:
-
retentionPeriod
@Stability(Stable) public CfnRulePropsMixin.Builder retentionPeriod(CfnRulePropsMixin.RetentionPeriodProperty retentionPeriod) Information about the retention period for which the retention rule is to retain resources.- Parameters:
retentionPeriod- Information about the retention period for which the retention rule is to retain resources. This parameter is required.- Returns:
this- See Also:
-
status
The state of the retention rule.Only retention rules that are in the
availablestate retain resources.- Parameters:
status- The state of the retention rule. This parameter is required.- Returns:
this- See Also:
-
tags
Information about the tags to assign to the retention rule.- Parameters:
tags- Information about the tags to assign to the retention rule. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRulePropsMixin>- Returns:
- a newly built instance of
CfnRulePropsMixin.
-