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 snapshot of your database in Amazon Lightsail. You can use snapshots for backups, to make copies of a database, and to save data before deleting a database.
The create relational database snapshot
operation supports tag-based
access control via request tags. For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data CreateRelationalDatabaseSnapshot = CreateRelationalDatabaseSnapshot' {}
- newCreateRelationalDatabaseSnapshot :: Text -> Text -> CreateRelationalDatabaseSnapshot
- createRelationalDatabaseSnapshot_tags :: Lens' CreateRelationalDatabaseSnapshot (Maybe [Tag])
- createRelationalDatabaseSnapshot_relationalDatabaseName :: Lens' CreateRelationalDatabaseSnapshot Text
- createRelationalDatabaseSnapshot_relationalDatabaseSnapshotName :: Lens' CreateRelationalDatabaseSnapshot Text
- data CreateRelationalDatabaseSnapshotResponse = CreateRelationalDatabaseSnapshotResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newCreateRelationalDatabaseSnapshotResponse :: Int -> CreateRelationalDatabaseSnapshotResponse
- createRelationalDatabaseSnapshotResponse_operations :: Lens' CreateRelationalDatabaseSnapshotResponse (Maybe [Operation])
- createRelationalDatabaseSnapshotResponse_httpStatus :: Lens' CreateRelationalDatabaseSnapshotResponse Int
Creating a Request
data CreateRelationalDatabaseSnapshot Source #
See: newCreateRelationalDatabaseSnapshot
smart constructor.
CreateRelationalDatabaseSnapshot' | |
|
Instances
newCreateRelationalDatabaseSnapshot Source #
:: Text |
|
-> Text |
|
-> CreateRelationalDatabaseSnapshot |
Create a value of CreateRelationalDatabaseSnapshot
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:CreateRelationalDatabaseSnapshot'
, createRelationalDatabaseSnapshot_tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
$sel:relationalDatabaseName:CreateRelationalDatabaseSnapshot'
, createRelationalDatabaseSnapshot_relationalDatabaseName
- The name of the database on which to base your new snapshot.
$sel:relationalDatabaseSnapshotName:CreateRelationalDatabaseSnapshot'
, createRelationalDatabaseSnapshot_relationalDatabaseSnapshotName
- The name for your new database snapshot.
Constraints:
- Must contain from 2 to 255 alphanumeric characters, or hyphens.
- The first and last character must be a letter or number.
Request Lenses
createRelationalDatabaseSnapshot_tags :: Lens' CreateRelationalDatabaseSnapshot (Maybe [Tag]) Source #
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
createRelationalDatabaseSnapshot_relationalDatabaseName :: Lens' CreateRelationalDatabaseSnapshot Text Source #
The name of the database on which to base your new snapshot.
createRelationalDatabaseSnapshot_relationalDatabaseSnapshotName :: Lens' CreateRelationalDatabaseSnapshot Text Source #
The name for your new database snapshot.
Constraints:
- Must contain from 2 to 255 alphanumeric characters, or hyphens.
- The first and last character must be a letter or number.
Destructuring the Response
data CreateRelationalDatabaseSnapshotResponse Source #
See: newCreateRelationalDatabaseSnapshotResponse
smart constructor.
CreateRelationalDatabaseSnapshotResponse' | |
|
Instances
newCreateRelationalDatabaseSnapshotResponse Source #
Create a value of CreateRelationalDatabaseSnapshotResponse
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:operations:CreateRelationalDatabaseSnapshotResponse'
, createRelationalDatabaseSnapshotResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:CreateRelationalDatabaseSnapshotResponse'
, createRelationalDatabaseSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
createRelationalDatabaseSnapshotResponse_operations :: Lens' CreateRelationalDatabaseSnapshotResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
createRelationalDatabaseSnapshotResponse_httpStatus :: Lens' CreateRelationalDatabaseSnapshotResponse Int Source #
The response's http status code.