deleteConnectionFunction method

Future<void> deleteConnectionFunction({
  1. required String id,
  2. required String ifMatch,
})

Deletes a connection function.

May throw AccessDenied. May throw CannotDeleteEntityWhileInUse. May throw EntityNotFound. May throw InvalidArgument. May throw InvalidIfMatchVersion. May throw PreconditionFailed. May throw UnsupportedOperation.

Parameter id : The connection function's ID.

Parameter ifMatch : The current version (ETag value) of the connection function you are deleting.

Implementation

Future<void> deleteConnectionFunction({
  required String id,
  required String ifMatch,
}) async {
  final headers = <String, String>{
    'If-Match': ifMatch.toString(),
  };
  await _protocol.send(
    method: 'DELETE',
    requestUri: '/2020-05-31/connection-function/${Uri.encodeComponent(id)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
}