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 an encrypted symmetric key 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.

Note:

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

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

Syntax

C#
public abstract CreateSnapshotCopyGrantResponse CreateSnapshotCopyGrant(
         CreateSnapshotCopyGrantRequest request
)

Parameters

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.

Exceptions

ExceptionCondition
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 Amazon Web Services KMS.
SnapshotCopyGrantAlreadyExistsException The snapshot copy grant can't be created because a grant with the same name already exists.
SnapshotCopyGrantQuotaExceededException The Amazon Web Services account has exceeded the maximum number of snapshot copy grants in this region.
TagLimitExceededException You have exceeded the number of tags allowed.

Examples

This example creates a new snapshot copy grant.

To create a snapshot copy grant


var client = new AmazonRedshiftClient();
var response = client.CreateSnapshotCopyGrant(new CreateSnapshotCopyGrantRequest 
{
    SnapshotCopyGrantName = "mycopygrant"
});


            

Version Information

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

See Also