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.

Authorizes the specified AWS customer account to restore the specified snapshot.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.


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

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


public virtual AuthorizeSnapshotAccessResponse AuthorizeSnapshotAccess(
         AuthorizeSnapshotAccessRequest request
Type: Amazon.Redshift.Model.AuthorizeSnapshotAccessRequest

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

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


AuthorizationAlreadyExistsException The specified CIDR block or EC2 security group is already authorized for the specified cluster security group.
AuthorizationQuotaExceededException The authorization quota for the cluster security group has been reached.
ClusterSnapshotNotFoundException The snapshot identifier does not refer to an existing cluster snapshot.
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.
InvalidClusterSnapshotStateException The specified cluster snapshot is not in the available state, or other accounts are authorized to access the snapshot.
LimitExceededException The encryption key has exceeded its grant limit in AWS KMS.


This example authorizes the AWS account 444455556666 to restore the snapshot my-snapshot-id.

To authorize an AWS account to restore from snapshot

var response = client.AuthorizeSnapshotAccess(new AuthorizeSnapshotAccessRequest 
    AccountWithRestoreAccess = "444455556666",
    SnapshotIdentifier = "my-snapshot-id"


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