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.

Removes the ability of the specified Amazon Web Services account to restore the specified snapshot. If the account is currently restoring the snapshot, the restore will run to completion.

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

Note:

This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginRevokeSnapshotAccess and EndRevokeSnapshotAccess.

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

Syntax

C#
public abstract Task<RevokeSnapshotAccessResponse> RevokeSnapshotAccessAsync(
         RevokeSnapshotAccessRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.Redshift.Model.RevokeSnapshotAccessRequest

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

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value


The response from the RevokeSnapshotAccess service method, as returned by Redshift.

Exceptions

ExceptionCondition
AccessToSnapshotDeniedException The owner of the specified snapshot has not authorized your account to access the snapshot.
AuthorizationNotFoundException The specified CIDR IP range or EC2 security group is not authorized for the specified cluster security group.
ClusterSnapshotNotFoundException The snapshot identifier does not refer to an existing cluster snapshot.
UnsupportedOperationException The requested operation isn't supported.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5

See Also