UpdateSubnetGroup - Amazon DynamoDB
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Modifies an existing subnet group.

Request Syntax

{ "Description": "string", "SubnetGroupName": "string", "SubnetIds": [ "string" ] }

Request Parameters

The request accepts the following data in JSON format.


In the following list, the required parameters are described first.


The name of the subnet group.

Type: String

Required: Yes


A description of the subnet group.

Type: String

Required: No


A list of subnet IDs in the subnet group.

Type: Array of strings

Required: No

Response Syntax

{ "SubnetGroup": { "Description": "string", "SubnetGroupName": "string", "Subnets": [ { "SubnetAvailabilityZone": "string", "SubnetIdentifier": "string" } ], "VpcId": "string" } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


The subnet group that has been modified.

Type: SubnetGroup object


For information about the errors that are common to all actions, see Common Errors.


An invalid subnet identifier was specified.

HTTP Status Code: 400


The specified service linked role (SLR) was not found.

HTTP Status Code: 400


The requested subnet group name does not refer to an existing subnet group.

HTTP Status Code: 400


The requested subnet is being used by another subnet group.

HTTP Status Code: 400


The request cannot be processed because it would exceed the allowed number of subnets in a subnet group.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: