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.

Modifies a cluster subnet group to include the specified list of VPC subnets. The operation replaces the existing list of subnets with the new list of subnets.

Note:

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

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

Syntax

C#
public virtual ModifyClusterSubnetGroupResponse ModifyClusterSubnetGroup(
         ModifyClusterSubnetGroupRequest request
)
Parameters
request
Type: Amazon.Redshift.Model.ModifyClusterSubnetGroupRequest

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

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

Exceptions

ExceptionCondition
ClusterSubnetGroupNotFoundException The cluster subnet group name does not refer to an existing cluster subnet group.
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.
SubnetAlreadyInUseException A specified subnet is already in use by another cluster.
UnauthorizedOperationException Your account is not authorized to perform the requested operation.

Examples

This example shows how to modify a cluster subnet group.

To modify a subnet group


var response = client.ModifyClusterParameterGroup(new ModifyClusterParameterGroupRequest 
{
    ParameterGroupName = "myclusterparametergroup",
    Parameters = new List {
        new Parameter {
            ApplyType = "dynamic",
            ParameterName = "wlm_json_configuration",
            ParameterValue = "[{\"query_group\":[\"report\"], \"query_group_wild_card\":1, \"query_concurrency\":4, \"max_execution_time\":20000, \"memory_percent_to_use\":25, \"rules\": [{\"rule_name\": \"rule_1\", \"predicate\": [{\"metric_name\": \"query_cpu_time\", \"operator\": \">\", \"value\": 1000000}, {\"metric_name\": \"query_blocks_read\", \"operator\": \">\", \"value\": 1000}], \"action\": \"log\"}] }, {\"user_group\":[\"admin\",\"dba\"], \"user_group_wild_card\":0, \"query_concurrency\":5, \"memory_percent_to_use\":40, \"rules\": [{\"rule_name\": \"rule_2\", \"predicate\": [{\"metric_name\": \"query_execution_time\", \"operator\": \">\", \"value\": 10000}, {\"metric_name\": \"scan_row_count\", \"operator\": \">\", \"value\": 1000000000}], \"action\": \"hop\"}] }, {\"query_concurrency\":5, \"memory_percent_to_use\":35 } ]"
        }
    }
});

string parameterGroupName = response.ParameterGroupName;
string parameterGroupStatus = response.ParameterGroupStatus;

            

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