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 |
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.
StartRelationalDatabase' | |
|
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.
StartRelationalDatabaseResponse' | |
|
Instances
Eq StartRelationalDatabaseResponse Source # | |
Read StartRelationalDatabaseResponse Source # | |
Show StartRelationalDatabaseResponse Source # | |
Defined in Amazonka.Lightsail.StartRelationalDatabase | |
Generic StartRelationalDatabaseResponse Source # | |
NFData StartRelationalDatabaseResponse Source # | |
Defined in Amazonka.Lightsail.StartRelationalDatabase rnf :: StartRelationalDatabaseResponse -> () # | |
type Rep StartRelationalDatabaseResponse Source # | |
Defined in Amazonka.Lightsail.StartRelationalDatabase type Rep StartRelationalDatabaseResponse = D1 ('MetaData "StartRelationalDatabaseResponse" "Amazonka.Lightsail.StartRelationalDatabase" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "StartRelationalDatabaseResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.