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 |
Creates a snapshot of a DB instance. The source DB instance must be in
the available
or storage-optimization
state.
Synopsis
- data CreateDBSnapshot = CreateDBSnapshot' {
- tags :: Maybe [Tag]
- dbSnapshotIdentifier :: Text
- dbInstanceIdentifier :: Text
- newCreateDBSnapshot :: Text -> Text -> CreateDBSnapshot
- createDBSnapshot_tags :: Lens' CreateDBSnapshot (Maybe [Tag])
- createDBSnapshot_dbSnapshotIdentifier :: Lens' CreateDBSnapshot Text
- createDBSnapshot_dbInstanceIdentifier :: Lens' CreateDBSnapshot Text
- data CreateDBSnapshotResponse = CreateDBSnapshotResponse' {}
- newCreateDBSnapshotResponse :: Int -> CreateDBSnapshotResponse
- createDBSnapshotResponse_dbSnapshot :: Lens' CreateDBSnapshotResponse (Maybe DBSnapshot)
- createDBSnapshotResponse_httpStatus :: Lens' CreateDBSnapshotResponse Int
Creating a Request
data CreateDBSnapshot Source #
See: newCreateDBSnapshot
smart constructor.
CreateDBSnapshot' | |
|
Instances
Create a value of CreateDBSnapshot
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:CreateDBSnapshot'
, createDBSnapshot_tags
- Undocumented member.
CreateDBSnapshot
, createDBSnapshot_dbSnapshotIdentifier
- The identifier for the DB snapshot.
Constraints:
- Can't be null, empty, or blank
- Must contain from 1 to 255 letters, numbers, or hyphens
- First character must be a letter
- Can't end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
CreateDBSnapshot
, createDBSnapshot_dbInstanceIdentifier
- The identifier of the DB instance that you want to create the snapshot
of.
Constraints:
- Must match the identifier of an existing DBInstance.
Request Lenses
createDBSnapshot_tags :: Lens' CreateDBSnapshot (Maybe [Tag]) Source #
Undocumented member.
createDBSnapshot_dbSnapshotIdentifier :: Lens' CreateDBSnapshot Text Source #
The identifier for the DB snapshot.
Constraints:
- Can't be null, empty, or blank
- Must contain from 1 to 255 letters, numbers, or hyphens
- First character must be a letter
- Can't end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
createDBSnapshot_dbInstanceIdentifier :: Lens' CreateDBSnapshot Text Source #
The identifier of the DB instance that you want to create the snapshot of.
Constraints:
- Must match the identifier of an existing DBInstance.
Destructuring the Response
data CreateDBSnapshotResponse Source #
See: newCreateDBSnapshotResponse
smart constructor.
CreateDBSnapshotResponse' | |
|
Instances
newCreateDBSnapshotResponse Source #
Create a value of CreateDBSnapshotResponse
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:dbSnapshot:CreateDBSnapshotResponse'
, createDBSnapshotResponse_dbSnapshot
- Undocumented member.
$sel:httpStatus:CreateDBSnapshotResponse'
, createDBSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
createDBSnapshotResponse_dbSnapshot :: Lens' CreateDBSnapshotResponse (Maybe DBSnapshot) Source #
Undocumented member.
createDBSnapshotResponse_httpStatus :: Lens' CreateDBSnapshotResponse Int Source #
The response's http status code.