DeleteSubnetGroup - Amazon MemoryDB

DeleteSubnetGroup

Deletes a subnet group. You cannot delete a default subnet group or one that is associated with any clusters.

Request Syntax

{ "SubnetGroupName": "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.

SubnetGroupName

The name of the subnet group to delete.

Type: String

Required: Yes

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 subnet group object that has been deleted.

Type: SubnetGroup object

Errors

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

ServiceLinkedRoleNotFoundFault

HTTP Status Code: 400

SubnetGroupInUseFault

HTTP Status Code: 400

SubnetGroupNotFoundFault

HTTP Status Code: 400

See Also

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