Skip to content
v2.278.0

CfnSnapshotCopyGrantProps Struct ​

Properties for defining a CfnSnapshotCopyGrant.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_redshift as redshift } from 'aws-cdk-lib';
const cfnSnapshotCopyGrantProps: redshift.CfnSnapshotCopyGrantProps = {
  snapshotCopyGrantName: 'snapshotCopyGrantName',

  // the properties below are optional
  kmsKeyId: 'kmsKeyId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
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"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.redshift.*;

CfnSnapshotCopyGrantProps cfnSnapshotCopyGrantProps = CfnSnapshotCopyGrantProps.builder()
        .snapshotCopyGrantName("snapshotCopyGrantName")

        // the properties below are optional
        .kmsKeyId("kmsKeyId")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Redshift;

var cfnSnapshotCopyGrantProps = new CfnSnapshotCopyGrantProps {
    SnapshotCopyGrantName = "snapshotCopyGrantName",

    // the properties below are optional
    KmsKeyId = "kmsKeyId",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnSnapshotCopyGrantProps := &CfnSnapshotCopyGrantProps{
	SnapshotCopyGrantName: jsii.String("snapshotCopyGrantName"),

	// the properties below are optional
	KmsKeyId: jsii.String("kmsKeyId"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string #
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.

snapshotCopyGrantNamestringsnapshot_copy_grant_namestrsnapshotCopyGrantNameStringSnapshotCopyGrantNamestringSnapshotCopyGrantName*string required #
The name of the snapshot copy grant.

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

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A list of tag instances.