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

Description

Makes a copy of an existing snapshot.

Synopsis

Creating a Request

data CopySnapshot Source #

See: newCopySnapshot smart constructor.

Constructors

CopySnapshot' 

Fields

  • targetBucket :: Maybe Text

    The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access. When using this parameter to export a snapshot, be sure MemoryDB has the needed permissions to this S3 bucket. For more information, see Step 2: Grant MemoryDB Access to Your Amazon S3 Bucket.

  • kmsKeyId :: Maybe Text

    The ID of the KMS key used to encrypt the target 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.

  • sourceSnapshotName :: Text

    The name of an existing snapshot from which to make a copy.

  • targetSnapshotName :: Text

    A name for the snapshot copy. MemoryDB does not permit overwriting a snapshot, therefore this name must be unique within its context - MemoryDB or an Amazon S3 bucket if exporting.

Instances

Instances details
Eq CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

Read CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

Show CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

Generic CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

Associated Types

type Rep CopySnapshot :: Type -> Type #

NFData CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

Methods

rnf :: CopySnapshot -> () #

Hashable CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

ToJSON CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

AWSRequest CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

Associated Types

type AWSResponse CopySnapshot #

ToHeaders CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

ToPath CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

ToQuery CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

type Rep CopySnapshot Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

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

Defined in Amazonka.MemoryDb.CopySnapshot

newCopySnapshot Source #

Create a value of CopySnapshot 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:targetBucket:CopySnapshot', copySnapshot_targetBucket - The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access. When using this parameter to export a snapshot, be sure MemoryDB has the needed permissions to this S3 bucket. For more information, see Step 2: Grant MemoryDB Access to Your Amazon S3 Bucket.

$sel:kmsKeyId:CopySnapshot', copySnapshot_kmsKeyId - The ID of the KMS key used to encrypt the target snapshot.

$sel:tags:CopySnapshot', copySnapshot_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:sourceSnapshotName:CopySnapshot', copySnapshot_sourceSnapshotName - The name of an existing snapshot from which to make a copy.

$sel:targetSnapshotName:CopySnapshot', copySnapshot_targetSnapshotName - A name for the snapshot copy. MemoryDB does not permit overwriting a snapshot, therefore this name must be unique within its context - MemoryDB or an Amazon S3 bucket if exporting.

Request Lenses

copySnapshot_targetBucket :: Lens' CopySnapshot (Maybe Text) Source #

The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access. When using this parameter to export a snapshot, be sure MemoryDB has the needed permissions to this S3 bucket. For more information, see Step 2: Grant MemoryDB Access to Your Amazon S3 Bucket.

copySnapshot_kmsKeyId :: Lens' CopySnapshot (Maybe Text) Source #

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

copySnapshot_tags :: Lens' CopySnapshot (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.

copySnapshot_sourceSnapshotName :: Lens' CopySnapshot Text Source #

The name of an existing snapshot from which to make a copy.

copySnapshot_targetSnapshotName :: Lens' CopySnapshot Text Source #

A name for the snapshot copy. MemoryDB does not permit overwriting a snapshot, therefore this name must be unique within its context - MemoryDB or an Amazon S3 bucket if exporting.

Destructuring the Response

data CopySnapshotResponse Source #

See: newCopySnapshotResponse smart constructor.

Constructors

CopySnapshotResponse' 

Fields

Instances

Instances details
Eq CopySnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

Read CopySnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

Show CopySnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

Generic CopySnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

Associated Types

type Rep CopySnapshotResponse :: Type -> Type #

NFData CopySnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

Methods

rnf :: CopySnapshotResponse -> () #

type Rep CopySnapshotResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.CopySnapshot

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

newCopySnapshotResponse Source #

Create a value of CopySnapshotResponse 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:CopySnapshotResponse', copySnapshotResponse_snapshot - Represents a copy of an entire cluster as of the time when the snapshot was taken.

$sel:httpStatus:CopySnapshotResponse', copySnapshotResponse_httpStatus - The response's http status code.

Response Lenses

copySnapshotResponse_snapshot :: Lens' CopySnapshotResponse (Maybe Snapshot) Source #

Represents a copy of an entire cluster as of the time when the snapshot was taken.