libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lightsail.StopRelationalDatabase

Description

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

Creating a Request

data StopRelationalDatabase Source #

See: newStopRelationalDatabase smart constructor.

Constructors

StopRelationalDatabase' 

Fields

Instances

Instances details
Eq StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

Read StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

Show StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

Generic StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

Associated Types

type Rep StopRelationalDatabase :: Type -> Type #

NFData StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

Methods

rnf :: StopRelationalDatabase -> () #

Hashable StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

ToJSON StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

AWSRequest StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

Associated Types

type AWSResponse StopRelationalDatabase #

ToHeaders StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

ToPath StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

ToQuery StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

type Rep StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

type Rep StopRelationalDatabase = D1 ('MetaData "StopRelationalDatabase" "Amazonka.Lightsail.StopRelationalDatabase" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "StopRelationalDatabase'" 'PrefixI 'True) (S1 ('MetaSel ('Just "relationalDatabaseSnapshotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "relationalDatabaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse StopRelationalDatabase Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

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.

Destructuring the Response

data StopRelationalDatabaseResponse Source #

See: newStopRelationalDatabaseResponse smart constructor.

Constructors

StopRelationalDatabaseResponse' 

Fields

  • operations :: Maybe [Operation]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq StopRelationalDatabaseResponse Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

Read StopRelationalDatabaseResponse Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

Show StopRelationalDatabaseResponse Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

Generic StopRelationalDatabaseResponse Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

Associated Types

type Rep StopRelationalDatabaseResponse :: Type -> Type #

NFData StopRelationalDatabaseResponse Source # 
Instance details

Defined in Amazonka.Lightsail.StopRelationalDatabase

type Rep StopRelationalDatabaseResponse Source # 
Instance details

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.