deleteDBSecurityGroup method
Deletes a DB security group.
May throw InvalidDBSecurityGroupStateFault. May throw DBSecurityGroupNotFoundFault.
Parameter dBSecurityGroupName
:
The name of the DB security group to delete.
Constraints:
- Must be 1 to 255 letters, numbers, or hyphens.
- First character must be a letter
- Can't end with a hyphen or contain two consecutive hyphens
- Must not be "Default"
Implementation
Future<void> deleteDBSecurityGroup({
required String dBSecurityGroupName,
}) async {
ArgumentError.checkNotNull(dBSecurityGroupName, 'dBSecurityGroupName');
final $request = <String, dynamic>{};
$request['DBSecurityGroupName'] = dBSecurityGroupName;
await _protocol.send(
$request,
action: 'DeleteDBSecurityGroup',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteDBSecurityGroupMessage'],
shapes: shapes,
);
}