UpdateSubnetGroup
Updates a subnet group. For more information, see Updating a subnet group
Request Syntax
{
"Description": "string
",
"SubnetGroupName": "string
",
"SubnetIds": [ "string
" ]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- Description
-
A description of the subnet group
Type: String
Required: No
- SubnetGroupName
-
The name of the subnet group
Type: String
Required: Yes
- SubnetIds
-
The EC2 subnet IDs for the subnet group.
Type: Array of strings
Required: No
Response Syntax
{
"SubnetGroup": {
"ARN": "string",
"Description": "string",
"Name": "string",
"Subnets": [
{
"AvailabilityZone": {
"Name": "string"
},
"Identifier": "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 updated subnet group
Type: SubnetGroup object
Errors
For information about the errors that are common to all actions, see Common Errors.
- InvalidSubnet
-
HTTP Status Code: 400
- ServiceLinkedRoleNotFoundFault
-
HTTP Status Code: 400
- SubnetGroupNotFoundFault
-
HTTP Status Code: 400
- SubnetInUse
-
HTTP Status Code: 400
- SubnetNotAllowedFault
-
HTTP Status Code: 400
- SubnetQuotaExceededFault
-
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: