Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Copy an AWS CloudHSM cluster backup to a different region.
Synopsis
- data CopyBackupToRegion = CopyBackupToRegion' {}
- newCopyBackupToRegion :: Text -> Text -> CopyBackupToRegion
- copyBackupToRegion_tagList :: Lens' CopyBackupToRegion (Maybe [Tag])
- copyBackupToRegion_destinationRegion :: Lens' CopyBackupToRegion Text
- copyBackupToRegion_backupId :: Lens' CopyBackupToRegion Text
- data CopyBackupToRegionResponse = CopyBackupToRegionResponse' {}
- newCopyBackupToRegionResponse :: Int -> CopyBackupToRegionResponse
- copyBackupToRegionResponse_destinationBackup :: Lens' CopyBackupToRegionResponse (Maybe DestinationBackup)
- copyBackupToRegionResponse_httpStatus :: Lens' CopyBackupToRegionResponse Int
Creating a Request
data CopyBackupToRegion Source #
See: newCopyBackupToRegion
smart constructor.
CopyBackupToRegion' | |
|
Instances
newCopyBackupToRegion Source #
:: Text | |
-> Text | |
-> CopyBackupToRegion |
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.
CopyBackupToRegionResponse' | |
|
Instances
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.
copyBackupToRegionResponse_httpStatus :: Lens' CopyBackupToRegionResponse Int Source #
The response's http status code.