CrossRegionCopyRuleProperty Struct
[Custom snapshot and AMI policies only] Specifies a cross-Region copy rule for a snapshot and AMI policies.
To specify a cross-Region copy action for event-based polices, use CrossRegionCopyAction .
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dlm as dlm } from 'aws-cdk-lib';
const crossRegionCopyRuleProperty: dlm.CfnLifecyclePolicy.CrossRegionCopyRuleProperty = {
encrypted: false,
// the properties below are optional
cmkArn: 'cmkArn',
copyTags: false,
deprecateRule: {
interval: 123,
intervalUnit: 'intervalUnit',
},
retainRule: {
interval: 123,
intervalUnit: 'intervalUnit',
},
target: 'target',
targetRegion: 'targetRegion',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dlm as dlm
cross_region_copy_rule_property = dlm.CfnLifecyclePolicy.CrossRegionCopyRuleProperty(
encrypted=False,
# the properties below are optional
cmk_arn="cmkArn",
copy_tags=False,
deprecate_rule=dlm.CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty(
interval=123,
interval_unit="intervalUnit"
),
retain_rule=dlm.CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty(
interval=123,
interval_unit="intervalUnit"
),
target="target",
target_region="targetRegion"
)
// 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();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DLM;
var crossRegionCopyRuleProperty = new CrossRegionCopyRuleProperty {
Encrypted = false,
// the properties below are optional
CmkArn = "cmkArn",
CopyTags = false,
DeprecateRule = new CrossRegionCopyDeprecateRuleProperty {
Interval = 123,
IntervalUnit = "intervalUnit"
},
RetainRule = new CrossRegionCopyRetainRuleProperty {
Interval = 123,
IntervalUnit = "intervalUnit"
},
Target = "target",
TargetRegion = "targetRegion"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
crossRegionCopyRuleProperty := &CrossRegionCopyRuleProperty{
Encrypted: jsii.Boolean(false),
// the properties below are optional
CmkArn: jsii.String("cmkArn"),
CopyTags: jsii.Boolean(false),
DeprecateRule: &CrossRegionCopyDeprecateRuleProperty{
Interval: jsii.Number(123),
IntervalUnit: jsii.String("intervalUnit"),
},
RetainRule: &CrossRegionCopyRetainRuleProperty{
Interval: jsii.Number(123),
IntervalUnit: jsii.String("intervalUnit"),
},
Target: jsii.String("target"),
TargetRegion: jsii.String("targetRegion"),
}
Properties
cmkArnoptionalstringcmk_arnoptionalstrcmkArnoptionalStringCmkArnoptionalstringCmkArnoptional*string #If this parameter is not specified, the default KMS key for the account is used.
copyTagsoptionalboolean | IResolvablecopy_tagsoptionaltyping.Union[bool, IResolvable]copyTagsoptionalBooleanCopyTagsoptionalboolCopyTagsoptionalinterface{} #deprecateRuleoptionalIResolvable | CfnLifecyclePolicy.deprecate_ruleoptionaltyping.Union[IResolvable, CrossRegionCopyDeprecateRuleProperty]deprecateRuleoptionalIResolvableDeprecateRuleoptionalIResolvableDeprecateRuleoptionalinterface{} #encryptedboolean | IResolvableencryptedtyping.Union[bool, IResolvable]encryptedBooleanEncryptedboolEncryptedinterface{} required #Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.
retainRuleoptionalIResolvable | CfnLifecyclePolicy.retain_ruleoptionaltyping.Union[IResolvable, CrossRegionCopyRetainRuleProperty]retainRuleoptionalIResolvableRetainRuleoptionalIResolvableRetainRuleoptionalinterface{} #targetoptionalstringtargetoptionalstrtargetoptionalStringTargetoptionalstringTargetoptional*string #[Custom snapshot policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
targetRegionoptionalstringtarget_regionoptionalstrtargetRegionoptionalStringTargetRegionoptionalstringTargetRegionoptional*string #notes
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.