amazonka-redshift-1.2.0.2: Amazon Redshift SDK.

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

Network.AWS.Redshift.CreateSnapshotCopyGrant

Contents

Description

Creates a snapshot copy grant that permits Amazon Redshift to use a customer master key (CMK) from AWS Key Management Service (AWS KMS) to encrypt copied snapshots in a destination region.

For more information about managing snapshot copy grants, go to Amazon Redshift Database Encryption in the Amazon Redshift Cluster Management Guide.

See: AWS API Reference for CreateSnapshotCopyGrant.

Synopsis

Creating a Request

createSnapshotCopyGrant Source

Creates a value of CreateSnapshotCopyGrant with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

cscgKMSKeyId :: Lens' CreateSnapshotCopyGrant (Maybe Text) Source

The unique identifier of the customer master key (CMK) to which to grant Amazon Redshift permission. If no key is specified, the default key is used.

cscgTags :: Lens' CreateSnapshotCopyGrant [Tag] Source

A list of tag instances.

cscgSnapshotCopyGrantName :: Lens' CreateSnapshotCopyGrant Text Source

The name of the snapshot copy grant. This name must be unique in the region for the AWS account.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.
  • Alphabetic characters must be lowercase.
  • First character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.
  • Must be unique for all clusters within an AWS account.

Destructuring the Response

createSnapshotCopyGrantResponse Source

Creates a value of CreateSnapshotCopyGrantResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses