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 CopyClusterSnapshot operation. Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.

When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated snapshot for a longer period, you can make a manual copy of the snapshot. Manual snapshots are retained until you delete them.

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.CopyClusterSnapshotRequest

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

Syntax

C#
public class CopyClusterSnapshotRequest : AmazonRedshiftRequest
         IAmazonWebServiceRequest

The CopyClusterSnapshotRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property SourceSnapshotClusterIdentifier System.String

Gets and sets the property SourceSnapshotClusterIdentifier.

The identifier of the cluster the source 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.

Constraints:

  • Must be the identifier for a valid cluster.

Public Property SourceSnapshotIdentifier System.String

Gets and sets the property SourceSnapshotIdentifier.

The identifier for the source snapshot.

Constraints:

  • Must be the identifier for a valid automated snapshot whose state is available.

Public Property TargetSnapshotIdentifier System.String

Gets and sets the property TargetSnapshotIdentifier.

The identifier given to the new manual snapshot.

Constraints:

  • Cannot be null, empty, or blank.

  • Must contain from 1 to 255 alphanumeric characters or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

  • Must be unique for the AWS account that is making the request.

Examples

This example creates a copy of a snapshot.

To creates a copy of a snapshot


var response = client.CopyClusterSnapshot(new CopyClusterSnapshotRequest 
{
    SourceSnapshotIdentifier = "rs:mycluster-2016-12-21-20-40-51",
    TargetSnapshotIdentifier = "my-saved-snapshot-cop"
});


            

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