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 or replication group at a specific moment in time.
This operation is valid for Redis only.
Synopsis
- data CreateSnapshot = CreateSnapshot' {
- cacheClusterId :: Maybe Text
- kmsKeyId :: Maybe Text
- replicationGroupId :: Maybe Text
- tags :: Maybe [Tag]
- snapshotName :: Text
- newCreateSnapshot :: Text -> CreateSnapshot
- createSnapshot_cacheClusterId :: Lens' CreateSnapshot (Maybe Text)
- createSnapshot_kmsKeyId :: Lens' CreateSnapshot (Maybe Text)
- createSnapshot_replicationGroupId :: Lens' CreateSnapshot (Maybe Text)
- createSnapshot_tags :: Lens' CreateSnapshot (Maybe [Tag])
- 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 #
Represents the input of a CreateSnapshot
operation.
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:cacheClusterId:CreateSnapshot'
, createSnapshot_cacheClusterId
- The identifier of an existing cluster. The snapshot is created from this
cluster.
$sel:kmsKeyId:CreateSnapshot'
, createSnapshot_kmsKeyId
- The ID of the KMS key used to encrypt the snapshot.
$sel:replicationGroupId:CreateSnapshot'
, createSnapshot_replicationGroupId
- The identifier of an existing replication group. The snapshot is created
from this replication group.
$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:snapshotName:CreateSnapshot'
, createSnapshot_snapshotName
- A name for the snapshot being created.
Request Lenses
createSnapshot_cacheClusterId :: Lens' CreateSnapshot (Maybe Text) Source #
The identifier of an existing cluster. The snapshot is created from this cluster.
createSnapshot_kmsKeyId :: Lens' CreateSnapshot (Maybe Text) Source #
The ID of the KMS key used to encrypt the snapshot.
createSnapshot_replicationGroupId :: Lens' CreateSnapshot (Maybe Text) Source #
The identifier of an existing replication group. The snapshot is created from this replication group.
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_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
- Undocumented member.
$sel:httpStatus:CreateSnapshotResponse'
, createSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
createSnapshotResponse_snapshot :: Lens' CreateSnapshotResponse (Maybe Snapshot) Source #
Undocumented member.
createSnapshotResponse_httpStatus :: Lens' CreateSnapshotResponse Int Source #
The response's http status code.