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 |
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.
CreateSnapshot' | |
|
Instances
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:
$sel:kmsKeyId: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.
$sel:clusterName: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.
CreateSnapshotResponse' | |
|
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.