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 CreateClusterSubnetGroup operation. Creates a new Amazon Redshift subnet group. You must provide a list of one or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) when creating Amazon Redshift subnet group.

For information about subnet groups, go to Amazon Redshift Cluster Subnet Groups in the Amazon Redshift Cluster Management Guide.

Inheritance Hierarchy

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

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

Syntax

C#
public class CreateClusterSubnetGroupRequest : AmazonRedshiftRequest
         IAmazonWebServiceRequest

The CreateClusterSubnetGroupRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ClusterSubnetGroupName System.String

Gets and sets the property ClusterSubnetGroupName.

The name for the subnet group. Amazon Redshift stores the value as a lowercase string.

Constraints:

  • Must contain no more than 255 alphanumeric characters or hyphens.

  • Must not be "Default".

  • Must be unique for all subnet groups that are created by your AWS account.

Example: examplesubnetgroup

Public Property Description System.String

Gets and sets the property Description.

A description for the subnet group.

Public Property SubnetIds System.Collections.Generic.List<System.String>

Gets and sets the property SubnetIds.

An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.

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 subnet group.

To \create a new cluster subnet group


var response = client.CreateClusterSubnetGroup(new CreateClusterSubnetGroupRequest 
{
    ClusterSubnetGroupName = "mysubnetgroup",
    Description = "My subnet group",
    SubnetIds = new List {
        "subnet-abc12345"
    }
});


            

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