Interface CfnLifecyclePolicy.CrossRegionCopyRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicy.CrossRegionCopyRuleProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicy
To specify a cross-Region copy action for event-based polices, use CrossRegionCopyAction .
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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLifecyclePolicy.CrossRegionCopyRuleProperty
static final class
An implementation forCfnLifecyclePolicy.CrossRegionCopyRuleProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption.default Object
Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.default Object
[Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter.default Object
The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.default String
default String
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEncrypted
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.
- See Also:
-
getCmkArn
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.
- See Also:
-
getCopyTags
Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.- See Also:
-
getDeprecateRule
[Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.- See Also:
-
getRetainRule
The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.- See Also:
-
getTarget
Use this parameter for snapshot policies only. For AMI policies, use TargetRegion instead.
[Custom snapshot policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
- See Also:
-
getTargetRegion
Use this parameter for AMI policies only.
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.
[Custom AMI policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
- See Also:
-
builder
-