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 CreateClusterSnapshot operation. Creates a manual snapshot of the specified cluster. The cluster must be in the available state.

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

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

Syntax

C#
public class CreateClusterSnapshotRequest : AmazonRedshiftRequest
         IAmazonWebServiceRequest

The CreateClusterSnapshotRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ClusterIdentifier System.String

Gets and sets the property ClusterIdentifier.

The cluster identifier for which you want a snapshot.

Public Property ManualSnapshotRetentionPeriod System.Int32

Gets and sets the property ManualSnapshotRetentionPeriod.

The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.

The value must be either -1 or an integer between 1 and 3,653.

The default value is -1.

Public Property SnapshotIdentifier System.String

Gets and sets the property SnapshotIdentifier.

A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.

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

Example: my-snapshot-id

Public Property Tags System.Collections.Generic.List<Amazon.Redshift.Model.Tag>

Gets and sets the property Tags.

A list of tag instances.

Examples

This example creates a new cluster snapshot.

To create a new cluster snapshot


var client = new AmazonRedshiftClient();
var response = client.CreateClusterSnapshot(new CreateClusterSnapshotRequest 
{
    ClusterIdentifier = "mycluster",
    SnapshotIdentifier = "my-snapshot-id"
});


            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5