amazonka-dlm-2.0: Amazon Data Lifecycle Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DLM.Types.CrossRegionCopyRule

Description

 
Synopsis

Documentation

data CrossRegionCopyRule Source #

[Snapshot and AMI policies only] Specifies a cross-Region copy rule for snapshot and AMI policies.

To specify a cross-Region copy action for event-based polices, use CrossRegionCopyAction.

See: newCrossRegionCopyRule smart constructor.

Constructors

CrossRegionCopyRule' 

Fields

  • cmkArn :: Maybe Text

    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.

  • copyTags :: Maybe Bool

    Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.

  • deprecateRule :: Maybe CrossRegionCopyDeprecateRule

    [AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.

  • retainRule :: Maybe CrossRegionCopyRetainRule

    The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.

  • target :: Maybe Text

    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.

  • targetRegion :: Maybe Text

    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.

  • encrypted :: Bool

    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.

Instances

Instances details
FromJSON CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

ToJSON CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

Generic CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

Associated Types

type Rep CrossRegionCopyRule :: Type -> Type #

Read CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

Show CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

NFData CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

Methods

rnf :: CrossRegionCopyRule -> () #

Eq CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

Hashable CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

type Rep CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

newCrossRegionCopyRule Source #

Create a value of CrossRegionCopyRule with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:cmkArn:CrossRegionCopyRule', crossRegionCopyRule_cmkArn - 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.

$sel:copyTags:CrossRegionCopyRule', crossRegionCopyRule_copyTags - Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.

$sel:deprecateRule:CrossRegionCopyRule', crossRegionCopyRule_deprecateRule - [AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.

$sel:retainRule:CrossRegionCopyRule', crossRegionCopyRule_retainRule - The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.

$sel:target:CrossRegionCopyRule', crossRegionCopyRule_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.

$sel:targetRegion:CrossRegionCopyRule', crossRegionCopyRule_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.

$sel:encrypted:CrossRegionCopyRule', crossRegionCopyRule_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.

crossRegionCopyRule_cmkArn :: Lens' CrossRegionCopyRule (Maybe Text) Source #

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.

crossRegionCopyRule_copyTags :: Lens' CrossRegionCopyRule (Maybe Bool) Source #

Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.

crossRegionCopyRule_deprecateRule :: Lens' CrossRegionCopyRule (Maybe CrossRegionCopyDeprecateRule) Source #

[AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.

crossRegionCopyRule_retainRule :: Lens' CrossRegionCopyRule (Maybe CrossRegionCopyRetainRule) Source #

The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.

crossRegionCopyRule_target :: Lens' CrossRegionCopyRule (Maybe Text) Source #

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.

crossRegionCopyRule_targetRegion :: Lens' CrossRegionCopyRule (Maybe Text) Source #

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.

crossRegionCopyRule_encrypted :: Lens' CrossRegionCopyRule Bool Source #

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.