AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to CreateSnapshotCopyGrantAsync.

Namespace: Amazon.Redshift
Assembly: AWSSDK.Redshift.dll
Version: 3.x.y.z


public virtual CreateSnapshotCopyGrantResponse CreateSnapshotCopyGrant(
         CreateSnapshotCopyGrantRequest request
Type: Amazon.Redshift.Model.CreateSnapshotCopyGrantRequest

Container for the necessary parameters to execute the CreateSnapshotCopyGrant service method.

Return Value
The response from the CreateSnapshotCopyGrant service method, as returned by Redshift.


DependentServiceRequestThrottlingException The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.
InvalidTagException The tag is invalid.
LimitExceededException The encryption key has exceeded its grant limit in AWS KMS.
SnapshotCopyGrantAlreadyExistsException The snapshot copy grant can't be created because a grant with the same name already exists.
SnapshotCopyGrantQuotaExceededException The AWS account has exceeded the maximum number of snapshot copy grants in this region.
TagLimitExceededException The number of tables in your source cluster exceeds the limit for the target cluster. Resize to a larger cluster node type.


This example creates a new snapshot copy grant.

To create a snapshot copy grant

var response = client.CreateSnapshotCopyGrant(new CreateSnapshotCopyGrantRequest 
    SnapshotCopyGrantName = "mycopygrant"


Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also