Class CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dlm.CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty>
- Enclosing interface:
CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty
@Stability(Stable)
public static final class CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty>
A builder for
CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getCmkArn()Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getCopyTags()copyTags(IResolvable copyTags) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getCopyTags()deprecateRule(IResolvable deprecateRule) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getEncrypted()encrypted(IResolvable encrypted) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getEncrypted()Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getRetainRule()retainRule(IResolvable retainRule) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getRetainRule()Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getTarget()targetRegion(String targetRegion)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cmkArn
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder cmkArn(String cmkArn) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getCmkArn()- Parameters:
cmkArn- The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.- Returns:
this
-
copyTags
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder copyTags(Boolean copyTags) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getCopyTags()- Parameters:
copyTags- Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.- Returns:
this
-
copyTags
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder copyTags(IResolvable copyTags) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getCopyTags()- Parameters:
copyTags- Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.- Returns:
this
-
deprecateRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder deprecateRule(IResolvable deprecateRule) - Parameters:
deprecateRule- [Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.- Returns:
this
-
deprecateRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder deprecateRule(CfnLifecyclePolicyPropsMixin.CrossRegionCopyDeprecateRuleProperty deprecateRule) - Parameters:
deprecateRule- [Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.- Returns:
this
-
encrypted
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder encrypted(Boolean encrypted) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getEncrypted()- Parameters:
encrypted- To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.- Returns:
this
-
encrypted
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder encrypted(IResolvable encrypted) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getEncrypted()- Parameters:
encrypted- To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.- Returns:
this
-
retainRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder retainRule(IResolvable retainRule) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getRetainRule()- Parameters:
retainRule- The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.- Returns:
this
-
retainRule
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder retainRule(CfnLifecyclePolicyPropsMixin.CrossRegionCopyRetainRuleProperty retainRule) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getRetainRule()- Parameters:
retainRule- The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.- Returns:
this
-
target
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder target(String target) Sets the value ofCfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.getTarget()- Parameters:
target-
[Custom snapshot policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.Use this parameter for snapshot policies only. For AMI policies, use TargetRegion instead.
- Returns:
this
-
targetRegion
@Stability(Stable) public CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty.Builder targetRegion(String targetRegion) - Parameters:
targetRegion-
For snapshot policies, use Target instead. For snapshot policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.Use this parameter for AMI policies only.
[Custom AMI policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty>- Returns:
- a new instance of
CfnLifecyclePolicyPropsMixin.CrossRegionCopyRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-