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.

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.

Note:

For PCL this operation is only available in asynchronous form. Please refer to CreateClusterSubnetGroupAsync.

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

Syntax

C#
public abstract CreateClusterSubnetGroupResponse CreateClusterSubnetGroup(
         CreateClusterSubnetGroupRequest request
)
Parameters
request
Type: Amazon.Redshift.Model.CreateClusterSubnetGroupRequest

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

Return Value
The response from the CreateClusterSubnetGroup service method, as returned by Redshift.

Exceptions

ExceptionCondition
ClusterSubnetGroupAlreadyExistsException A ClusterSubnetGroupName is already used by an existing cluster subnet group.
ClusterSubnetGroupQuotaExceededException The request would result in user exceeding the allowed number of cluster subnet groups. For information about increasing your quota, go to Limits in Amazon Redshift in the Amazon Redshift Cluster Management Guide.
ClusterSubnetQuotaExceededException The request would result in user exceeding the allowed number of subnets in a cluster subnet groups. For information about increasing your quota, go to Limits in Amazon Redshift in the Amazon Redshift Cluster Management Guide.
DependentServiceRequestThrottlingException The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.
InvalidSubnetException The requested subnet is not valid, or not all of the subnets are in the same VPC.
InvalidTagException The tag is invalid.
TagLimitExceededException The request exceeds the limit of 10 tags for the resource.
UnauthorizedOperationException Your account is not authorized to perform the requested operation.

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

See Also