deleteDBProxy method

Future<DeleteDBProxyResponse> deleteDBProxy({
  1. required String dBProxyName,
})

Deletes an existing proxy.

May throw DBProxyNotFoundFault. May throw InvalidDBProxyStateFault.

Parameter dBProxyName : The name of the DB proxy to delete.

Implementation

Future<DeleteDBProxyResponse> deleteDBProxy({
  required String dBProxyName,
}) async {
  ArgumentError.checkNotNull(dBProxyName, 'dBProxyName');
  final $request = <String, dynamic>{};
  $request['DBProxyName'] = dBProxyName;
  final $result = await _protocol.send(
    $request,
    action: 'DeleteDBProxy',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteDBProxyRequest'],
    shapes: shapes,
    resultWrapper: 'DeleteDBProxyResult',
  );
  return DeleteDBProxyResponse.fromXml($result);
}