| 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.DocDbElastic.CreateClusterSnapshot
Description
Creates a snapshot of a cluster.
Synopsis
- data CreateClusterSnapshot = CreateClusterSnapshot' {
- tags :: Maybe (HashMap Text Text)
- clusterArn :: Text
- snapshotName :: Text
- newCreateClusterSnapshot :: Text -> Text -> CreateClusterSnapshot
- createClusterSnapshot_tags :: Lens' CreateClusterSnapshot (Maybe (HashMap Text Text))
- createClusterSnapshot_clusterArn :: Lens' CreateClusterSnapshot Text
- createClusterSnapshot_snapshotName :: Lens' CreateClusterSnapshot Text
- data CreateClusterSnapshotResponse = CreateClusterSnapshotResponse' {}
- newCreateClusterSnapshotResponse :: Int -> ClusterSnapshot -> CreateClusterSnapshotResponse
- createClusterSnapshotResponse_httpStatus :: Lens' CreateClusterSnapshotResponse Int
- createClusterSnapshotResponse_snapshot :: Lens' CreateClusterSnapshotResponse ClusterSnapshot
Creating a Request
data CreateClusterSnapshot Source #
See: newCreateClusterSnapshot smart constructor.
Constructors
| CreateClusterSnapshot' | |
Fields
| |
Instances
newCreateClusterSnapshot Source #
Arguments
| :: Text | |
| -> Text | |
| -> CreateClusterSnapshot |
Create a value of CreateClusterSnapshot 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:tags:CreateClusterSnapshot', createClusterSnapshot_tags - The tags to be assigned to the new Elastic DocumentDB snapshot.
CreateClusterSnapshot, createClusterSnapshot_clusterArn - The arn of the Elastic DocumentDB cluster that the snapshot will be
taken from.
CreateClusterSnapshot, createClusterSnapshot_snapshotName - The name of the Elastic DocumentDB snapshot.
Request Lenses
createClusterSnapshot_tags :: Lens' CreateClusterSnapshot (Maybe (HashMap Text Text)) Source #
The tags to be assigned to the new Elastic DocumentDB snapshot.
createClusterSnapshot_clusterArn :: Lens' CreateClusterSnapshot Text Source #
The arn of the Elastic DocumentDB cluster that the snapshot will be taken from.
createClusterSnapshot_snapshotName :: Lens' CreateClusterSnapshot Text Source #
The name of the Elastic DocumentDB snapshot.
Destructuring the Response
data CreateClusterSnapshotResponse Source #
See: newCreateClusterSnapshotResponse smart constructor.
Constructors
| CreateClusterSnapshotResponse' | |
Fields
| |
Instances
newCreateClusterSnapshotResponse Source #
Arguments
| :: Int | |
| -> ClusterSnapshot | |
| -> CreateClusterSnapshotResponse |
Create a value of CreateClusterSnapshotResponse 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:httpStatus:CreateClusterSnapshotResponse', createClusterSnapshotResponse_httpStatus - The response's http status code.
$sel:snapshot:CreateClusterSnapshotResponse', createClusterSnapshotResponse_snapshot - Returns information about the new Elastic DocumentDB snapshot.
Response Lenses
createClusterSnapshotResponse_httpStatus :: Lens' CreateClusterSnapshotResponse Int Source #
The response's http status code.
createClusterSnapshotResponse_snapshot :: Lens' CreateClusterSnapshotResponse ClusterSnapshot Source #
Returns information about the new Elastic DocumentDB snapshot.