| 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.RedshiftServerLess.CreateSnapshot
Description
Creates a snapshot of all databases in a namespace. For more information about snapshots, see Working with snapshots and recovery points.
Synopsis
- data CreateSnapshot = CreateSnapshot' {
- retentionPeriod :: Maybe Int
- tags :: Maybe [Tag]
- namespaceName :: Text
- snapshotName :: Text
- newCreateSnapshot :: Text -> Text -> CreateSnapshot
- createSnapshot_retentionPeriod :: Lens' CreateSnapshot (Maybe Int)
- createSnapshot_tags :: Lens' CreateSnapshot (Maybe [Tag])
- createSnapshot_namespaceName :: 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:
$sel:retentionPeriod:CreateSnapshot', createSnapshot_retentionPeriod - How long to retain the created snapshot.
$sel:tags:CreateSnapshot', createSnapshot_tags - An array of
Tag objects
to associate with the snapshot.
CreateSnapshot, createSnapshot_namespaceName - The namespace to create a snapshot for.
CreateSnapshot, createSnapshot_snapshotName - The name of the snapshot.
Request Lenses
createSnapshot_retentionPeriod :: Lens' CreateSnapshot (Maybe Int) Source #
How long to retain the created snapshot.
createSnapshot_tags :: Lens' CreateSnapshot (Maybe [Tag]) Source #
An array of Tag objects to associate with the snapshot.
createSnapshot_namespaceName :: Lens' CreateSnapshot Text Source #
The namespace to create a snapshot for.
createSnapshot_snapshotName :: Lens' CreateSnapshot Text Source #
The name of the snapshot.
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 created snapshot object.
$sel:httpStatus:CreateSnapshotResponse', createSnapshotResponse_httpStatus - The response's http status code.
Response Lenses
createSnapshotResponse_snapshot :: Lens' CreateSnapshotResponse (Maybe Snapshot) Source #
The created snapshot object.
createSnapshotResponse_httpStatus :: Lens' CreateSnapshotResponse Int Source #
The response's http status code.