createDBSecurityGroup method

Future<CreateDBSecurityGroupResult> createDBSecurityGroup({
  1. required String dBSecurityGroupDescription,
  2. required String dBSecurityGroupName,
})

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-01-10',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['CreateDBSecurityGroupMessage'],
    shapes: shapes,
    resultWrapper: 'CreateDBSecurityGroupResult',
  );
  return CreateDBSecurityGroupResult.fromXml($result);
}