Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a snapshot copy grant that permits Amazon Redshift to use a customer master key (CMK) from Key Management Service (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.
Synopsis
- data CreateSnapshotCopyGrant = CreateSnapshotCopyGrant' {}
- newCreateSnapshotCopyGrant :: Text -> CreateSnapshotCopyGrant
- createSnapshotCopyGrant_kmsKeyId :: Lens' CreateSnapshotCopyGrant (Maybe Text)
- createSnapshotCopyGrant_tags :: Lens' CreateSnapshotCopyGrant (Maybe [Tag])
- createSnapshotCopyGrant_snapshotCopyGrantName :: Lens' CreateSnapshotCopyGrant Text
- data CreateSnapshotCopyGrantResponse = CreateSnapshotCopyGrantResponse' {}
- newCreateSnapshotCopyGrantResponse :: Int -> CreateSnapshotCopyGrantResponse
- createSnapshotCopyGrantResponse_snapshotCopyGrant :: Lens' CreateSnapshotCopyGrantResponse (Maybe SnapshotCopyGrant)
- createSnapshotCopyGrantResponse_httpStatus :: Lens' CreateSnapshotCopyGrantResponse Int
Creating a Request
data CreateSnapshotCopyGrant Source #
The result of the CreateSnapshotCopyGrant
action.
See: newCreateSnapshotCopyGrant
smart constructor.
CreateSnapshotCopyGrant' | |
|
Instances
newCreateSnapshotCopyGrant Source #
Create a value of CreateSnapshotCopyGrant
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:CreateSnapshotCopyGrant'
, createSnapshotCopyGrant_kmsKeyId
- 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.
$sel:tags:CreateSnapshotCopyGrant'
, createSnapshotCopyGrant_tags
- A list of tag instances.
$sel:snapshotCopyGrantName:CreateSnapshotCopyGrant'
, createSnapshotCopyGrant_snapshotCopyGrantName
- The name of the snapshot copy grant. This name must be unique in the
region for the Amazon Web Services 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 Amazon Web Services account.
Request Lenses
createSnapshotCopyGrant_kmsKeyId :: 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.
createSnapshotCopyGrant_tags :: Lens' CreateSnapshotCopyGrant (Maybe [Tag]) Source #
A list of tag instances.
createSnapshotCopyGrant_snapshotCopyGrantName :: Lens' CreateSnapshotCopyGrant Text Source #
The name of the snapshot copy grant. This name must be unique in the region for the Amazon Web Services 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 Amazon Web Services account.
Destructuring the Response
data CreateSnapshotCopyGrantResponse Source #
See: newCreateSnapshotCopyGrantResponse
smart constructor.
CreateSnapshotCopyGrantResponse' | |
|
Instances
Eq CreateSnapshotCopyGrantResponse Source # | |
Read CreateSnapshotCopyGrantResponse Source # | |
Show CreateSnapshotCopyGrantResponse Source # | |
Defined in Amazonka.Redshift.CreateSnapshotCopyGrant | |
Generic CreateSnapshotCopyGrantResponse Source # | |
NFData CreateSnapshotCopyGrantResponse Source # | |
Defined in Amazonka.Redshift.CreateSnapshotCopyGrant rnf :: CreateSnapshotCopyGrantResponse -> () # | |
type Rep CreateSnapshotCopyGrantResponse Source # | |
Defined in Amazonka.Redshift.CreateSnapshotCopyGrant type Rep CreateSnapshotCopyGrantResponse = D1 ('MetaData "CreateSnapshotCopyGrantResponse" "Amazonka.Redshift.CreateSnapshotCopyGrant" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "CreateSnapshotCopyGrantResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshotCopyGrant") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SnapshotCopyGrant)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateSnapshotCopyGrantResponse Source #
Create a value of CreateSnapshotCopyGrantResponse
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:snapshotCopyGrant:CreateSnapshotCopyGrantResponse'
, createSnapshotCopyGrantResponse_snapshotCopyGrant
- Undocumented member.
$sel:httpStatus:CreateSnapshotCopyGrantResponse'
, createSnapshotCopyGrantResponse_httpStatus
- The response's http status code.
Response Lenses
createSnapshotCopyGrantResponse_snapshotCopyGrant :: Lens' CreateSnapshotCopyGrantResponse (Maybe SnapshotCopyGrant) Source #
Undocumented member.
createSnapshotCopyGrantResponse_httpStatus :: Lens' CreateSnapshotCopyGrantResponse Int Source #
The response's http status code.