@Stability(value=Stable) public static final class CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnLifecyclePolicy.CrossRegionCopyRuleProperty>
CfnLifecyclePolicy.CrossRegionCopyRuleProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder encrypted(Boolean encrypted)
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.getEncrypted()encrypted - To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. This parameter is required.
Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.this@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder encrypted(IResolvable encrypted)
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.getEncrypted()encrypted - To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. This parameter is required.
Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.this@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder cmkArn(String cmkArn)
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.getCmkArn()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.this@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder copyTags(Boolean copyTags)
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.getCopyTags()copyTags - Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.this@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder copyTags(IResolvable copyTags)
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.getCopyTags()copyTags - Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.this@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder deprecateRule(CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty deprecateRule)
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.getDeprecateRule()deprecateRule - The AMI deprecation rule for cross-Region AMI copies created by the rule.this@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder deprecateRule(IResolvable deprecateRule)
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.getDeprecateRule()deprecateRule - The AMI deprecation rule for cross-Region AMI copies created by the rule.this@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder retainRule(CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty retainRule)
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.getRetainRule()retainRule - The retention rule that indicates how long snapshot copies are to be retained in the destination Region.this@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder retainRule(IResolvable retainRule)
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.getRetainRule()retainRule - The retention rule that indicates how long snapshot copies are to be retained in the destination Region.this@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder target(String target)
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.getTarget()target - The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
Use this parameter instead of TargetRegion . Do not specify both.this@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder targetRegion(String targetRegion)
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.getTargetRegion()targetRegion - Avoid using this parameter when creating new policies.
Instead, use Target to specify a target Region or a target Outpost for snapshot copies.
For policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
this@Stability(value=Stable) public CfnLifecyclePolicy.CrossRegionCopyRuleProperty build()
build in interface software.amazon.jsii.Builder<CfnLifecyclePolicy.CrossRegionCopyRuleProperty>CfnLifecyclePolicy.CrossRegionCopyRulePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.