MemoryDB.Client.
delete_subnet_group
(**kwargs)¶Deletes a subnet group. You cannot delete a default subnet group or one that is associated with any clusters.
See also: AWS API Documentation
Request Syntax
response = client.delete_subnet_group(
SubnetGroupName='string'
)
[REQUIRED]
The name of the subnet group to delete
{
'SubnetGroup': {
'Name': 'string',
'Description': 'string',
'VpcId': 'string',
'Subnets': [
{
'Identifier': 'string',
'AvailabilityZone': {
'Name': 'string'
}
},
],
'ARN': 'string'
}
}
Response Structure
The subnet group object that has been deleted.
The name of the subnet group
A description of the subnet group
The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
A list of subnets associated with the subnet group.
Represents the subnet associated with a cluster. This parameter refers to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with MemoryDB.
The unique identifier for the subnet.
The Availability Zone where the subnet resides
The name of the Availability Zone.
The ARN (Amazon Resource Name) of the subnet group.
Exceptions
MemoryDB.Client.exceptions.SubnetGroupInUseFault
MemoryDB.Client.exceptions.SubnetGroupNotFoundFault
MemoryDB.Client.exceptions.ServiceLinkedRoleNotFoundFault