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.

Container for the parameters to the AuthorizeSnapshotAccess operation. 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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Redshift.AmazonRedshiftRequest
      Amazon.Redshift.Model.AuthorizeSnapshotAccessRequest

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

Syntax

C#
public class AuthorizeSnapshotAccessRequest : AmazonRedshiftRequest
         IAmazonWebServiceRequest

The AuthorizeSnapshotAccessRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AccountWithRestoreAccess System.String

Gets and sets the property AccountWithRestoreAccess.

The identifier of the AWS customer account authorized to restore the specified snapshot.

To share a snapshot with AWS support, specify amazon-redshift-support.

Public Property SnapshotClusterIdentifier System.String

Gets and sets the property SnapshotClusterIdentifier.

The identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.

Public Property SnapshotIdentifier System.String

Gets and sets the property SnapshotIdentifier.

The identifier of the snapshot the account is authorized to restore.

Examples

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 Standard:
Supported in: 1.3

.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