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 |
Makes a copy of an existing snapshot.
Synopsis
- data CopySnapshot = CopySnapshot' {
- targetBucket :: Maybe Text
- kmsKeyId :: Maybe Text
- tags :: Maybe [Tag]
- sourceSnapshotName :: Text
- targetSnapshotName :: Text
- newCopySnapshot :: Text -> Text -> CopySnapshot
- copySnapshot_targetBucket :: Lens' CopySnapshot (Maybe Text)
- copySnapshot_kmsKeyId :: Lens' CopySnapshot (Maybe Text)
- copySnapshot_tags :: Lens' CopySnapshot (Maybe [Tag])
- copySnapshot_sourceSnapshotName :: Lens' CopySnapshot Text
- copySnapshot_targetSnapshotName :: Lens' CopySnapshot Text
- data CopySnapshotResponse = CopySnapshotResponse' {
- snapshot :: Maybe Snapshot
- httpStatus :: Int
- newCopySnapshotResponse :: Int -> CopySnapshotResponse
- copySnapshotResponse_snapshot :: Lens' CopySnapshotResponse (Maybe Snapshot)
- copySnapshotResponse_httpStatus :: Lens' CopySnapshotResponse Int
Creating a Request
data CopySnapshot Source #
See: newCopySnapshot
smart constructor.
CopySnapshot' | |
|
Instances
:: Text | |
-> Text | |
-> CopySnapshot |
Create a value of CopySnapshot
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:targetBucket:CopySnapshot'
, copySnapshot_targetBucket
- The Amazon S3 bucket to which the snapshot is exported. This parameter
is used only when exporting a snapshot for external access. When using
this parameter to export a snapshot, be sure MemoryDB has the needed
permissions to this S3 bucket. For more information, see
Step 2: Grant MemoryDB Access to Your Amazon S3 Bucket.
$sel:kmsKeyId:CopySnapshot'
, copySnapshot_kmsKeyId
- The ID of the KMS key used to encrypt the target snapshot.
$sel:tags:CopySnapshot'
, copySnapshot_tags
- A list of tags to be added to this resource. A tag is a key-value pair.
A tag key must be accompanied by a tag value, although null is accepted.
$sel:sourceSnapshotName:CopySnapshot'
, copySnapshot_sourceSnapshotName
- The name of an existing snapshot from which to make a copy.
$sel:targetSnapshotName:CopySnapshot'
, copySnapshot_targetSnapshotName
- A name for the snapshot copy. MemoryDB does not permit overwriting a
snapshot, therefore this name must be unique within its context -
MemoryDB or an Amazon S3 bucket if exporting.
Request Lenses
copySnapshot_targetBucket :: Lens' CopySnapshot (Maybe Text) Source #
The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access. When using this parameter to export a snapshot, be sure MemoryDB has the needed permissions to this S3 bucket. For more information, see Step 2: Grant MemoryDB Access to Your Amazon S3 Bucket.
copySnapshot_kmsKeyId :: Lens' CopySnapshot (Maybe Text) Source #
The ID of the KMS key used to encrypt the target snapshot.
copySnapshot_tags :: Lens' CopySnapshot (Maybe [Tag]) Source #
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
copySnapshot_sourceSnapshotName :: Lens' CopySnapshot Text Source #
The name of an existing snapshot from which to make a copy.
copySnapshot_targetSnapshotName :: Lens' CopySnapshot Text Source #
A name for the snapshot copy. MemoryDB does not permit overwriting a snapshot, therefore this name must be unique within its context - MemoryDB or an Amazon S3 bucket if exporting.
Destructuring the Response
data CopySnapshotResponse Source #
See: newCopySnapshotResponse
smart constructor.
CopySnapshotResponse' | |
|
Instances
newCopySnapshotResponse Source #
Create a value of CopySnapshotResponse
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:snapshot:CopySnapshotResponse'
, copySnapshotResponse_snapshot
- Represents a copy of an entire cluster as of the time when the snapshot
was taken.
$sel:httpStatus:CopySnapshotResponse'
, copySnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
copySnapshotResponse_snapshot :: Lens' CopySnapshotResponse (Maybe Snapshot) Source #
Represents a copy of an entire cluster as of the time when the snapshot was taken.
copySnapshotResponse_httpStatus :: Lens' CopySnapshotResponse Int Source #
The response's http status code.