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.
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
public abstract CreateSnapshotCopyGrantResponse CreateSnapshotCopyGrant( CreateSnapshotCopyGrantRequest request )
Container for the necessary parameters to execute the CreateSnapshotCopyGrant service method.
Exception | Condition |
---|---|
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. |
This example creates a new snapshot copy grant.
var client = new AmazonRedshiftClient(); var response = client.CreateSnapshotCopyGrant(new CreateSnapshotCopyGrantRequest { SnapshotCopyGrantName = "mycopygrant" });
.NET Framework:
Supported in: 4.5, 4.0, 3.5