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 an Amazon RDS DB instance. When you stop a DB instance, Amazon RDS retains the DB instance's metadata, including its endpoint, DB parameter group, and option group membership. Amazon RDS also retains the transaction logs so you can do a point-in-time restore if necessary.
For more information, see Stopping an Amazon RDS DB Instance Temporarily in the Amazon RDS User Guide.
This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For
Aurora clusters, use StopDBCluster
instead.
Synopsis
- data StopDBInstance = StopDBInstance' {}
- newStopDBInstance :: Text -> StopDBInstance
- stopDBInstance_dbSnapshotIdentifier :: Lens' StopDBInstance (Maybe Text)
- stopDBInstance_dbInstanceIdentifier :: Lens' StopDBInstance Text
- data StopDBInstanceResponse = StopDBInstanceResponse' {}
- newStopDBInstanceResponse :: Int -> StopDBInstanceResponse
- stopDBInstanceResponse_dbInstance :: Lens' StopDBInstanceResponse (Maybe DBInstance)
- stopDBInstanceResponse_httpStatus :: Lens' StopDBInstanceResponse Int
Creating a Request
data StopDBInstance Source #
See: newStopDBInstance
smart constructor.
StopDBInstance' | |
|
Instances
Create a value of StopDBInstance
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:dbSnapshotIdentifier:StopDBInstance'
, stopDBInstance_dbSnapshotIdentifier
- The user-supplied instance identifier of the DB Snapshot created
immediately before the DB instance is stopped.
$sel:dbInstanceIdentifier:StopDBInstance'
, stopDBInstance_dbInstanceIdentifier
- The user-supplied instance identifier.
Request Lenses
stopDBInstance_dbSnapshotIdentifier :: Lens' StopDBInstance (Maybe Text) Source #
The user-supplied instance identifier of the DB Snapshot created immediately before the DB instance is stopped.
stopDBInstance_dbInstanceIdentifier :: Lens' StopDBInstance Text Source #
The user-supplied instance identifier.
Destructuring the Response
data StopDBInstanceResponse Source #
See: newStopDBInstanceResponse
smart constructor.
StopDBInstanceResponse' | |
|
Instances
newStopDBInstanceResponse Source #
Create a value of StopDBInstanceResponse
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:dbInstance:StopDBInstanceResponse'
, stopDBInstanceResponse_dbInstance
- Undocumented member.
$sel:httpStatus:StopDBInstanceResponse'
, stopDBInstanceResponse_httpStatus
- The response's http status code.
Response Lenses
stopDBInstanceResponse_dbInstance :: Lens' StopDBInstanceResponse (Maybe DBInstance) Source #
Undocumented member.
stopDBInstanceResponse_httpStatus :: Lens' StopDBInstanceResponse Int Source #
The response's http status code.