| 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.Lightsail.StopRelationalDatabase
Description
Stops a specific database that is currently running in Amazon Lightsail.
The stop relational database operation supports tag-based access
control via resource tags applied to the resource identified by
relationalDatabaseName. For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data StopRelationalDatabase = StopRelationalDatabase' {}
- newStopRelationalDatabase :: Text -> StopRelationalDatabase
- stopRelationalDatabase_relationalDatabaseSnapshotName :: Lens' StopRelationalDatabase (Maybe Text)
- stopRelationalDatabase_relationalDatabaseName :: Lens' StopRelationalDatabase Text
- data StopRelationalDatabaseResponse = StopRelationalDatabaseResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newStopRelationalDatabaseResponse :: Int -> StopRelationalDatabaseResponse
- stopRelationalDatabaseResponse_operations :: Lens' StopRelationalDatabaseResponse (Maybe [Operation])
- stopRelationalDatabaseResponse_httpStatus :: Lens' StopRelationalDatabaseResponse Int
Creating a Request
data StopRelationalDatabase Source #
See: newStopRelationalDatabase smart constructor.
Constructors
| StopRelationalDatabase' | |
Fields
| |
Instances
newStopRelationalDatabase Source #
Create a value of StopRelationalDatabase 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:relationalDatabaseSnapshotName:StopRelationalDatabase', stopRelationalDatabase_relationalDatabaseSnapshotName - The name of your new database snapshot to be created before stopping
your database.
$sel:relationalDatabaseName:StopRelationalDatabase', stopRelationalDatabase_relationalDatabaseName - The name of your database to stop.
Request Lenses
stopRelationalDatabase_relationalDatabaseSnapshotName :: Lens' StopRelationalDatabase (Maybe Text) Source #
The name of your new database snapshot to be created before stopping your database.
stopRelationalDatabase_relationalDatabaseName :: Lens' StopRelationalDatabase Text Source #
The name of your database to stop.
Destructuring the Response
data StopRelationalDatabaseResponse Source #
See: newStopRelationalDatabaseResponse smart constructor.
Constructors
| StopRelationalDatabaseResponse' | |
Fields
| |
Instances
newStopRelationalDatabaseResponse Source #
Create a value of StopRelationalDatabaseResponse 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:StopRelationalDatabaseResponse', stopRelationalDatabaseResponse_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:StopRelationalDatabaseResponse', stopRelationalDatabaseResponse_httpStatus - The response's http status code.
Response Lenses
stopRelationalDatabaseResponse_operations :: Lens' StopRelationalDatabaseResponse (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.
stopRelationalDatabaseResponse_httpStatus :: Lens' StopRelationalDatabaseResponse Int Source #
The response's http status code.