| 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.StartRelationalDatabase
Description
Starts a specific database from a stopped state in Amazon Lightsail. To
restart a database, use the reboot relational database operation.
The start 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 StartRelationalDatabase = StartRelationalDatabase' {}
- newStartRelationalDatabase :: Text -> StartRelationalDatabase
- startRelationalDatabase_relationalDatabaseName :: Lens' StartRelationalDatabase Text
- data StartRelationalDatabaseResponse = StartRelationalDatabaseResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newStartRelationalDatabaseResponse :: Int -> StartRelationalDatabaseResponse
- startRelationalDatabaseResponse_operations :: Lens' StartRelationalDatabaseResponse (Maybe [Operation])
- startRelationalDatabaseResponse_httpStatus :: Lens' StartRelationalDatabaseResponse Int
Creating a Request
data StartRelationalDatabase Source #
See: newStartRelationalDatabase smart constructor.
Constructors
| StartRelationalDatabase' | |
Fields
| |
Instances
newStartRelationalDatabase Source #
Create a value of StartRelationalDatabase 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:relationalDatabaseName:StartRelationalDatabase', startRelationalDatabase_relationalDatabaseName - The name of your database to start.
Request Lenses
startRelationalDatabase_relationalDatabaseName :: Lens' StartRelationalDatabase Text Source #
The name of your database to start.
Destructuring the Response
data StartRelationalDatabaseResponse Source #
See: newStartRelationalDatabaseResponse smart constructor.
Constructors
| StartRelationalDatabaseResponse' | |
Fields
| |
Instances
newStartRelationalDatabaseResponse Source #
Create a value of StartRelationalDatabaseResponse 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:StartRelationalDatabaseResponse', startRelationalDatabaseResponse_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:StartRelationalDatabaseResponse', startRelationalDatabaseResponse_httpStatus - The response's http status code.
Response Lenses
startRelationalDatabaseResponse_operations :: Lens' StartRelationalDatabaseResponse (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.
startRelationalDatabaseResponse_httpStatus :: Lens' StartRelationalDatabaseResponse Int Source #
The response's http status code.