createDBSecurityGroup method
May throw DBSecurityGroupAlreadyExistsFault. May throw DBSecurityGroupQuotaExceededFault. May throw DBSecurityGroupNotSupportedFault.
Implementation
Future<CreateDBSecurityGroupResult> createDBSecurityGroup({
required String dBSecurityGroupDescription,
required String dBSecurityGroupName,
}) async {
ArgumentError.checkNotNull(
dBSecurityGroupDescription, 'dBSecurityGroupDescription');
ArgumentError.checkNotNull(dBSecurityGroupName, 'dBSecurityGroupName');
final $request = <String, dynamic>{};
$request['DBSecurityGroupDescription'] = dBSecurityGroupDescription;
$request['DBSecurityGroupName'] = dBSecurityGroupName;
final $result = await _protocol.send(
$request,
action: 'CreateDBSecurityGroup',
version: '2013-02-12',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['CreateDBSecurityGroupMessage'],
shapes: shapes,
resultWrapper: 'CreateDBSecurityGroupResult',
);
return CreateDBSecurityGroupResult.fromXml($result);
}