libZSservicesZSamazonka-cloudhsmv2ZSamazonka-cloudhsmv2
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.CloudHSMV2.CopyBackupToRegion

Description

Copy an AWS CloudHSM cluster backup to a different region.

Synopsis

Creating a Request

data CopyBackupToRegion Source #

See: newCopyBackupToRegion smart constructor.

Constructors

CopyBackupToRegion' 

Fields

  • tagList :: Maybe [Tag]

    Tags to apply to the destination backup during creation. If you specify tags, only these tags will be applied to the destination backup. If you do not specify tags, the service copies tags from the source backup to the destination backup.

  • destinationRegion :: Text

    The AWS region that will contain your copied CloudHSM cluster backup.

  • backupId :: Text

    The ID of the backup that will be copied to the destination region.

Instances

Instances details
Eq CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

Read CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

Show CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

Generic CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

Associated Types

type Rep CopyBackupToRegion :: Type -> Type #

NFData CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

Methods

rnf :: CopyBackupToRegion -> () #

Hashable CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

ToJSON CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

AWSRequest CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

Associated Types

type AWSResponse CopyBackupToRegion #

ToHeaders CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

ToPath CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

ToQuery CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

type Rep CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

type Rep CopyBackupToRegion = D1 ('MetaData "CopyBackupToRegion" "Amazonka.CloudHSMV2.CopyBackupToRegion" "libZSservicesZSamazonka-cloudhsmv2ZSamazonka-cloudhsmv2" 'False) (C1 ('MetaCons "CopyBackupToRegion'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tagList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "destinationRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "backupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CopyBackupToRegion Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

newCopyBackupToRegion Source #

Create a value of CopyBackupToRegion 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:tagList:CopyBackupToRegion', copyBackupToRegion_tagList - Tags to apply to the destination backup during creation. If you specify tags, only these tags will be applied to the destination backup. If you do not specify tags, the service copies tags from the source backup to the destination backup.

$sel:destinationRegion:CopyBackupToRegion', copyBackupToRegion_destinationRegion - The AWS region that will contain your copied CloudHSM cluster backup.

$sel:backupId:CopyBackupToRegion', copyBackupToRegion_backupId - The ID of the backup that will be copied to the destination region.

Request Lenses

copyBackupToRegion_tagList :: Lens' CopyBackupToRegion (Maybe [Tag]) Source #

Tags to apply to the destination backup during creation. If you specify tags, only these tags will be applied to the destination backup. If you do not specify tags, the service copies tags from the source backup to the destination backup.

copyBackupToRegion_destinationRegion :: Lens' CopyBackupToRegion Text Source #

The AWS region that will contain your copied CloudHSM cluster backup.

copyBackupToRegion_backupId :: Lens' CopyBackupToRegion Text Source #

The ID of the backup that will be copied to the destination region.

Destructuring the Response

data CopyBackupToRegionResponse Source #

See: newCopyBackupToRegionResponse smart constructor.

Constructors

CopyBackupToRegionResponse' 

Fields

  • destinationBackup :: Maybe DestinationBackup

    Information on the backup that will be copied to the destination region, including CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the destination backup will be the same as that of the source backup.

    You will need to use the sourceBackupID returned in this operation to use the DescribeBackups operation on the backup that will be copied to the destination region.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CopyBackupToRegionResponse Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

Read CopyBackupToRegionResponse Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

Show CopyBackupToRegionResponse Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

Generic CopyBackupToRegionResponse Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

Associated Types

type Rep CopyBackupToRegionResponse :: Type -> Type #

NFData CopyBackupToRegionResponse Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

type Rep CopyBackupToRegionResponse Source # 
Instance details

Defined in Amazonka.CloudHSMV2.CopyBackupToRegion

type Rep CopyBackupToRegionResponse = D1 ('MetaData "CopyBackupToRegionResponse" "Amazonka.CloudHSMV2.CopyBackupToRegion" "libZSservicesZSamazonka-cloudhsmv2ZSamazonka-cloudhsmv2" 'False) (C1 ('MetaCons "CopyBackupToRegionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "destinationBackup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DestinationBackup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCopyBackupToRegionResponse Source #

Create a value of CopyBackupToRegionResponse 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:destinationBackup:CopyBackupToRegionResponse', copyBackupToRegionResponse_destinationBackup - Information on the backup that will be copied to the destination region, including CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the destination backup will be the same as that of the source backup.

You will need to use the sourceBackupID returned in this operation to use the DescribeBackups operation on the backup that will be copied to the destination region.

$sel:httpStatus:CopyBackupToRegionResponse', copyBackupToRegionResponse_httpStatus - The response's http status code.

Response Lenses

copyBackupToRegionResponse_destinationBackup :: Lens' CopyBackupToRegionResponse (Maybe DestinationBackup) Source #

Information on the backup that will be copied to the destination region, including CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the destination backup will be the same as that of the source backup.

You will need to use the sourceBackupID returned in this operation to use the DescribeBackups operation on the backup that will be copied to the destination region.