| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.MemoryDb.CreateSnapshot
Description
Creates a copy of an entire cluster at a specific moment in time.
Synopsis
- data CreateSnapshot = CreateSnapshot' {
- kmsKeyId :: Maybe Text
- tags :: Maybe [Tag]
- clusterName :: Text
- snapshotName :: Text
- newCreateSnapshot :: Text -> Text -> CreateSnapshot
- createSnapshot_kmsKeyId :: Lens' CreateSnapshot (Maybe Text)
- createSnapshot_tags :: Lens' CreateSnapshot (Maybe [Tag])
- createSnapshot_clusterName :: Lens' CreateSnapshot Text
- createSnapshot_snapshotName :: Lens' CreateSnapshot Text
- data CreateSnapshotResponse = CreateSnapshotResponse' {
- snapshot :: Maybe Snapshot
- httpStatus :: Int
- newCreateSnapshotResponse :: Int -> CreateSnapshotResponse
- createSnapshotResponse_snapshot :: Lens' CreateSnapshotResponse (Maybe Snapshot)
- createSnapshotResponse_httpStatus :: Lens' CreateSnapshotResponse Int
Creating a Request
data CreateSnapshot Source #
See: newCreateSnapshot smart constructor.
Constructors
| CreateSnapshot' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateSnapshot |
Create a value of CreateSnapshot 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:
CreateSnapshot, createSnapshot_kmsKeyId - The ID of the KMS key used to encrypt the snapshot.
$sel:tags:CreateSnapshot', createSnapshot_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.
CreateSnapshot, createSnapshot_clusterName - The snapshot is created from this cluster.
$sel:snapshotName:CreateSnapshot', createSnapshot_snapshotName - A name for the snapshot being created.
Request Lenses
createSnapshot_kmsKeyId :: Lens' CreateSnapshot (Maybe Text) Source #
The ID of the KMS key used to encrypt the snapshot.
createSnapshot_tags :: Lens' CreateSnapshot (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.
createSnapshot_clusterName :: Lens' CreateSnapshot Text Source #
The snapshot is created from this cluster.
createSnapshot_snapshotName :: Lens' CreateSnapshot Text Source #
A name for the snapshot being created.
Destructuring the Response
data CreateSnapshotResponse Source #
See: newCreateSnapshotResponse smart constructor.
Constructors
| CreateSnapshotResponse' | |
Fields
| |
Instances
newCreateSnapshotResponse Source #
Create a value of CreateSnapshotResponse 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:CreateSnapshotResponse', createSnapshotResponse_snapshot - The newly-created snapshot.
$sel:httpStatus:CreateSnapshotResponse', createSnapshotResponse_httpStatus - The response's http status code.
Response Lenses
createSnapshotResponse_snapshot :: Lens' CreateSnapshotResponse (Maybe Snapshot) Source #
The newly-created snapshot.
createSnapshotResponse_httpStatus :: Lens' CreateSnapshotResponse Int Source #
The response's http status code.