libZSservicesZSamazonka-dlmZSamazonka-dlm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DLM.Types.CrossRegionCopyRule

Description

 
Synopsis

Documentation

data CrossRegionCopyRule Source #

Specifies a rule for cross-Region snapshot copies.

See: newCrossRegionCopyRule smart constructor.

Constructors

CrossRegionCopyRule' 

Fields

  • deprecateRule :: Maybe CrossRegionCopyDeprecateRule

    The AMI deprecation rule for cross-Region AMI copies created by the rule.

  • 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.

  • copyTags :: Maybe Bool

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

  • 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.

  • retainRule :: Maybe CrossRegionCopyRetainRule

    The retention rule that indicates how long snapshot 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.

  • 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
Eq CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

Read CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

Show 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 #

NFData CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

Methods

rnf :: CrossRegionCopyRule -> () #

Hashable CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

ToJSON CrossRegionCopyRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRule

FromJSON 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:deprecateRule:CrossRegionCopyRule', crossRegionCopyRule_deprecateRule - The AMI deprecation rule for cross-Region AMI copies created by the rule.

$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:copyTags:CrossRegionCopyRule', crossRegionCopyRule_copyTags - Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.

$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:retainRule:CrossRegionCopyRule', crossRegionCopyRule_retainRule - The retention rule that indicates how long snapshot 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: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_deprecateRule :: Lens' CrossRegionCopyRule (Maybe CrossRegionCopyDeprecateRule) Source #

The AMI deprecation rule for cross-Region AMI copies created by the rule.

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_copyTags :: Lens' CrossRegionCopyRule (Maybe Bool) Source #

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

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_retainRule :: Lens' CrossRegionCopyRule (Maybe CrossRegionCopyRetainRule) Source #

The retention rule that indicates how long snapshot 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_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.