CfnSnapshotCopyGrantProps

class aws_cdk.aws_redshift.CfnSnapshotCopyGrantProps(*, snapshot_copy_grant_name, kms_key_id=None, tags=None)

Bases: object

Properties for defining a CfnSnapshotCopyGrant.

Parameters:
  • snapshot_copy_grant_name (str) – The name of the snapshot copy grant. This name must be unique in the region for the AWS account.

  • kms_key_id (Optional[str]) – The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission. If no key is specified, the default key is used. Marked writeOnly because Create accepts aliases/key-ids but Describe returns the resolved key ARN, which would fail drift detection.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – A list of tag instances.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-snapshotcopygrant.html

ExampleMetadata:

fixture=_generated

Example:

from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_redshift as redshift

cfn_snapshot_copy_grant_props = redshift.CfnSnapshotCopyGrantProps(
    snapshot_copy_grant_name="snapshotCopyGrantName",

    # the properties below are optional
    kms_key_id="kmsKeyId",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

kms_key_id

The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission.

If no key is specified, the default key is used. Marked writeOnly because Create accepts aliases/key-ids but Describe returns the resolved key ARN, which would fail drift detection.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-snapshotcopygrant.html#cfn-redshift-snapshotcopygrant-kmskeyid

snapshot_copy_grant_name

The name of the snapshot copy grant.

This name must be unique in the region for the AWS account.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-snapshotcopygrant.html#cfn-redshift-snapshotcopygrant-snapshotcopygrantname

tags

A list of tag instances.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-snapshotcopygrant.html#cfn-redshift-snapshotcopygrant-tags