UpdateSubnetGroup
Modifies an existing subnet group.
Request Syntax
{
"Description": "string
",
"SubnetGroupName": "string
",
"SubnetIds": [ "string
" ]
}
Request Parameters
The request accepts the following data in JSON format.
Note
In the following list, the required parameters are described first.
- SubnetGroupName
-
The name of the subnet group.
Type: String
Required: Yes
- Description
-
A description of the subnet group.
Type: String
Required: No
- SubnetIds
-
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",
"SupportedNetworkTypes": [ "string" ]
}
],
"SupportedNetworkTypes": [ "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.
- SubnetGroup
-
The subnet group that has been modified.
Type: SubnetGroup object
Errors
For information about the errors that are common to all actions, see Common Errors.
- InvalidSubnet
-
An invalid subnet identifier was specified.
HTTP Status Code: 400
- ServiceLinkedRoleNotFoundFault
-
The specified service linked role (SLR) was not found.
HTTP Status Code: 400
- SubnetGroupNotFoundFault
-
The requested subnet group name does not refer to an existing subnet group.
HTTP Status Code: 400
- SubnetInUse
-
The requested subnet is being used by another subnet group.
HTTP Status Code: 400
- SubnetNotAllowedFault
-
The specified subnet can't be used for the requested network type. This error occurs when either there aren't enough subnets of the required network type to create the cluster, or when you try to use a subnet that doesn't support the requested network type (for example, trying to create a dual-stack cluster with a subnet that doesn't have IPv6 CIDR).
HTTP Status Code: 400
- SubnetQuotaExceededFault
-
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 AWS SDKs, see the following: