deleteServiceFunction method

Future<DeleteServiceFunctionResponse> deleteServiceFunction({
  1. required String serviceArn,
  2. required String serviceFunctionId,
})

Deletes a service function.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter serviceFunctionId : The identifier of the service function to delete.

Implementation

Future<DeleteServiceFunctionResponse> deleteServiceFunction({
  required String serviceArn,
  required String serviceFunctionId,
}) async {
  final $payload = <String, dynamic>{
    'serviceArn': serviceArn,
    'serviceFunctionId': serviceFunctionId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/v2/delete-function',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteServiceFunctionResponse.fromJson(response);
}