@Stability(value=Stable)
public static interface CfnLifecyclePolicy.CrossRegionCopyRuleProperty
extends software.amazon.jsii.JsiiSerializable
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.dlm.*;
CrossRegionCopyRuleProperty crossRegionCopyRuleProperty = CrossRegionCopyRuleProperty.builder()
.encrypted(false)
// the properties below are optional
.cmkArn("cmkArn")
.copyTags(false)
.deprecateRule(CrossRegionCopyDeprecateRuleProperty.builder()
.interval(123)
.intervalUnit("intervalUnit")
.build())
.retainRule(CrossRegionCopyRetainRuleProperty.builder()
.interval(123)
.intervalUnit("intervalUnit")
.build())
.target("target")
.targetRegion("targetRegion")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder
A builder for
CfnLifecyclePolicy.CrossRegionCopyRuleProperty |
static class |
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Jsii$Proxy
An implementation for
CfnLifecyclePolicy.CrossRegionCopyRuleProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder |
builder() |
default String |
getCmkArn()
The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption.
|
default Object |
getCopyTags()
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
|
default Object |
getDeprecateRule()
The AMI deprecation rule for cross-Region AMI copies created by the rule.
|
Object |
getEncrypted()
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter.
|
default Object |
getRetainRule()
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
|
default String |
getTarget()
The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
|
default String |
getTargetRegion()
Avoid using this parameter when creating new policies.
|
@Stability(value=Stable) @NotNull Object getEncrypted()
Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.
@Stability(value=Stable) @Nullable default String getCmkArn()
If this parameter is not specified, the default KMS key for the account is used.
@Stability(value=Stable) @Nullable default Object getCopyTags()
@Stability(value=Stable) @Nullable default Object getDeprecateRule()
@Stability(value=Stable) @Nullable default Object getRetainRule()
@Stability(value=Stable) @Nullable default String getTarget()
Use this parameter instead of TargetRegion . Do not specify both.
@Stability(value=Stable) @Nullable default String getTargetRegion()
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.
@Stability(value=Stable) static CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Builder builder()
Copyright © 2022. All rights reserved.