class Aws::DLM::Types::CrossRegionCopyRule

Specifies a rule for cross-Region snapshot copies.

@note When making an API call, you may pass CrossRegionCopyRule

data as a hash:

    {
      target_region: "TargetRegion",
      target: "Target",
      encrypted: false, # required
      cmk_arn: "CmkArn",
      copy_tags: false,
      retain_rule: {
        interval: 1,
        interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
      },
      deprecate_rule: {
        interval: 1,
        interval_unit: "DAYS", # accepts DAYS, WEEKS, MONTHS, YEARS
      },
    }

@!attribute [rw] target_region

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.
@return [String]

@!attribute [rw] 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.
@return [String]

@!attribute [rw] 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.
@return [Boolean]

@!attribute [rw] cmk_arn

The Amazon Resource Name (ARN) of the KMS key to use for EBS
encryption. If this parameter is not specified, the default KMS key
for the account is used.
@return [String]

@!attribute [rw] copy_tags

Indicates whether to copy all user-defined tags from the source
snapshot to the cross-Region snapshot copy.
@return [Boolean]

@!attribute [rw] retain_rule

The retention rule that indicates how long snapshot copies are to be
retained in the destination Region.
@return [Types::CrossRegionCopyRetainRule]

@!attribute [rw] deprecate_rule

The AMI deprecation rule for cross-Region AMI copies created by the
rule.
@return [Types::CrossRegionCopyDeprecateRule]

@see docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CrossRegionCopyRule AWS API Documentation

Constants

SENSITIVE