deleteDBSubnetGroup method
Deletes a subnet group.
May throw InvalidDBSubnetGroupStateFault. May throw InvalidDBSubnetStateFault. May throw DBSubnetGroupNotFoundFault.
Parameter dBSubnetGroupName
:
The name of the database subnet group to delete.
Constraints:
Must match the name of an existing DBSubnetGroup
. Must not be
default.
Example: mySubnetgroup
Implementation
Future<void> deleteDBSubnetGroup({
required String dBSubnetGroupName,
}) async {
ArgumentError.checkNotNull(dBSubnetGroupName, 'dBSubnetGroupName');
final $request = <String, dynamic>{};
$request['DBSubnetGroupName'] = dBSubnetGroupName;
await _protocol.send(
$request,
action: 'DeleteDBSubnetGroup',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteDBSubnetGroupMessage'],
shapes: shapes,
);
}