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