amazonka-rds-2.0: Amazon Relational Database Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RDS.StopDBInstance

Description

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 RDS Custom, Aurora MySQL, and Aurora PostgreSQL. For Aurora clusters, use StopDBCluster instead.

Synopsis

Creating a Request

data StopDBInstance Source #

See: newStopDBInstance smart constructor.

Constructors

StopDBInstance' 

Fields

Instances

Instances details
ToHeaders StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

ToPath StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

ToQuery StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

AWSRequest StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

Associated Types

type AWSResponse StopDBInstance #

Generic StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

Associated Types

type Rep StopDBInstance :: Type -> Type #

Read StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

Show StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

NFData StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

Methods

rnf :: StopDBInstance -> () #

Eq StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

Hashable StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

type AWSResponse StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

type Rep StopDBInstance Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

type Rep StopDBInstance = D1 ('MetaData "StopDBInstance" "Amazonka.RDS.StopDBInstance" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "StopDBInstance'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbSnapshotIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dbInstanceIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newStopDBInstance Source #

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:

StopDBInstance, stopDBInstance_dbSnapshotIdentifier - The user-supplied instance identifier of the DB Snapshot created immediately before the DB instance is stopped.

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.

Constructors

StopDBInstanceResponse' 

Fields

Instances

Instances details
Generic StopDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

Associated Types

type Rep StopDBInstanceResponse :: Type -> Type #

Read StopDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

Show StopDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

NFData StopDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

Methods

rnf :: StopDBInstanceResponse -> () #

Eq StopDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

type Rep StopDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.StopDBInstance

type Rep StopDBInstanceResponse = D1 ('MetaData "StopDBInstanceResponse" "Amazonka.RDS.StopDBInstance" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "StopDBInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbInstance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DBInstance)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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