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.CreateRelationalDatabaseSnapshot

Description

Creates a snapshot of your database in Amazon Lightsail. You can use snapshots for backups, to make copies of a database, and to save data before deleting a database.

The create relational database snapshot operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.

Synopsis

Creating a Request

data CreateRelationalDatabaseSnapshot Source #

See: newCreateRelationalDatabaseSnapshot smart constructor.

Constructors

CreateRelationalDatabaseSnapshot' 

Fields

  • tags :: Maybe [Tag]

    The tag keys and optional values to add to the resource during create.

    Use the TagResource action to tag a resource after it's created.

  • relationalDatabaseName :: Text

    The name of the database on which to base your new snapshot.

  • relationalDatabaseSnapshotName :: Text

    The name for your new database snapshot.

    Constraints:

    • Must contain from 2 to 255 alphanumeric characters, or hyphens.
    • The first and last character must be a letter or number.

Instances

Instances details
Eq CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

Read CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

Show CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

Generic CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

Associated Types

type Rep CreateRelationalDatabaseSnapshot :: Type -> Type #

NFData CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

Hashable CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

ToJSON CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

AWSRequest CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

ToHeaders CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

ToPath CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

ToQuery CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

type Rep CreateRelationalDatabaseSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

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

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

newCreateRelationalDatabaseSnapshot Source #

Create a value of CreateRelationalDatabaseSnapshot 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:tags:CreateRelationalDatabaseSnapshot', createRelationalDatabaseSnapshot_tags - The tag keys and optional values to add to the resource during create.

Use the TagResource action to tag a resource after it's created.

$sel:relationalDatabaseName:CreateRelationalDatabaseSnapshot', createRelationalDatabaseSnapshot_relationalDatabaseName - The name of the database on which to base your new snapshot.

$sel:relationalDatabaseSnapshotName:CreateRelationalDatabaseSnapshot', createRelationalDatabaseSnapshot_relationalDatabaseSnapshotName - The name for your new database snapshot.

Constraints:

  • Must contain from 2 to 255 alphanumeric characters, or hyphens.
  • The first and last character must be a letter or number.

Request Lenses

createRelationalDatabaseSnapshot_tags :: Lens' CreateRelationalDatabaseSnapshot (Maybe [Tag]) Source #

The tag keys and optional values to add to the resource during create.

Use the TagResource action to tag a resource after it's created.

createRelationalDatabaseSnapshot_relationalDatabaseSnapshotName :: Lens' CreateRelationalDatabaseSnapshot Text Source #

The name for your new database snapshot.

Constraints:

  • Must contain from 2 to 255 alphanumeric characters, or hyphens.
  • The first and last character must be a letter or number.

Destructuring the Response

data CreateRelationalDatabaseSnapshotResponse Source #

Constructors

CreateRelationalDatabaseSnapshotResponse' 

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 CreateRelationalDatabaseSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

Read CreateRelationalDatabaseSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

Show CreateRelationalDatabaseSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

Generic CreateRelationalDatabaseSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

NFData CreateRelationalDatabaseSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

type Rep CreateRelationalDatabaseSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateRelationalDatabaseSnapshot

type Rep CreateRelationalDatabaseSnapshotResponse = D1 ('MetaData "CreateRelationalDatabaseSnapshotResponse" "Amazonka.Lightsail.CreateRelationalDatabaseSnapshot" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CreateRelationalDatabaseSnapshotResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateRelationalDatabaseSnapshotResponse Source #

Create a value of CreateRelationalDatabaseSnapshotResponse 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:CreateRelationalDatabaseSnapshotResponse', createRelationalDatabaseSnapshotResponse_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:CreateRelationalDatabaseSnapshotResponse', createRelationalDatabaseSnapshotResponse_httpStatus - The response's http status code.

Response Lenses

createRelationalDatabaseSnapshotResponse_operations :: Lens' CreateRelationalDatabaseSnapshotResponse (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.