libZSservicesZSamazonka-memorydbZSamazonka-memorydb
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.MemoryDb.CreateSnapshot

Description

Creates a copy of an entire cluster at a specific moment in time.

Synopsis

Creating a Request

data CreateSnapshot Source #

See: newCreateSnapshot smart constructor.

Constructors

CreateSnapshot' 

Fields

  • kmsKeyId :: Maybe Text

    The ID of the KMS key used to encrypt the snapshot.

  • tags :: Maybe [Tag]

    A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

  • clusterName :: Text

    The snapshot is created from this cluster.

  • snapshotName :: Text

    A name for the snapshot being created.

Instances

Instances details
Eq CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

Read CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

Show CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

Generic CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

Associated Types

type Rep CreateSnapshot :: Type -> Type #

NFData CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

Methods

rnf :: CreateSnapshot -> () #

Hashable CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

ToJSON CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

AWSRequest CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

Associated Types

type AWSResponse CreateSnapshot #

ToHeaders CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

ToPath CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

ToQuery CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

type Rep CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

type Rep CreateSnapshot = D1 ('MetaData "CreateSnapshot" "Amazonka.MemoryDb.CreateSnapshot" "libZSservicesZSamazonka-memorydbZSamazonka-memorydb" 'False) (C1 ('MetaCons "CreateSnapshot'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "kmsKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "clusterName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "snapshotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateSnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

newCreateSnapshot Source #

Create a value of CreateSnapshot 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:kmsKeyId:CreateSnapshot', createSnapshot_kmsKeyId - The ID of the KMS key used to encrypt the snapshot.

$sel:tags:CreateSnapshot', createSnapshot_tags - A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

$sel:clusterName:CreateSnapshot', createSnapshot_clusterName - The snapshot is created from this cluster.

$sel:snapshotName:CreateSnapshot', createSnapshot_snapshotName - A name for the snapshot being created.

Request Lenses

createSnapshot_kmsKeyId :: Lens' CreateSnapshot (Maybe Text) Source #

The ID of the KMS key used to encrypt the snapshot.

createSnapshot_tags :: Lens' CreateSnapshot (Maybe [Tag]) Source #

A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

createSnapshot_clusterName :: Lens' CreateSnapshot Text Source #

The snapshot is created from this cluster.

createSnapshot_snapshotName :: Lens' CreateSnapshot Text Source #

A name for the snapshot being created.

Destructuring the Response

data CreateSnapshotResponse Source #

See: newCreateSnapshotResponse smart constructor.

Constructors

CreateSnapshotResponse' 

Fields

Instances

Instances details
Eq CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

Read CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

Show CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

Generic CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

Associated Types

type Rep CreateSnapshotResponse :: Type -> Type #

NFData CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

Methods

rnf :: CreateSnapshotResponse -> () #

type Rep CreateSnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CreateSnapshot

type Rep CreateSnapshotResponse = D1 ('MetaData "CreateSnapshotResponse" "Amazonka.MemoryDb.CreateSnapshot" "libZSservicesZSamazonka-memorydbZSamazonka-memorydb" 'False) (C1 ('MetaCons "CreateSnapshotResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Snapshot)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateSnapshotResponse Source #

Create a value of CreateSnapshotResponse 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:snapshot:CreateSnapshotResponse', createSnapshotResponse_snapshot - The newly-created snapshot.

$sel:httpStatus:CreateSnapshotResponse', createSnapshotResponse_httpStatus - The response's http status code.

Response Lenses