DocDB / Client / delete_db_subnet_group

delete_db_subnet_group#

DocDB.Client.delete_db_subnet_group(**kwargs)#

Deletes a subnet group.

Note

The specified database subnet group must not be associated with any DB instances.

See also: AWS API Documentation

Request Syntax

response = client.delete_db_subnet_group(
    DBSubnetGroupName='string'
)
Parameters:

DBSubnetGroupName (string) –

[REQUIRED]

The name of the database subnet group to delete.

Note

You can’t delete the default subnet group.

Constraints:

Must match the name of an existing DBSubnetGroup. Must not be default.

Example: mySubnetgroup

Returns:

None

Exceptions

  • DocDB.Client.exceptions.InvalidDBSubnetGroupStateFault

  • DocDB.Client.exceptions.InvalidDBSubnetStateFault

  • DocDB.Client.exceptions.DBSubnetGroupNotFoundFault