stopRxNormInferenceJob method

Future<StopRxNormInferenceJobResponse> stopRxNormInferenceJob({
  1. required String jobId,
})

Stops an InferRxNorm inference job in progress.

May throw InternalServerException. May throw InvalidRequestException. May throw ResourceNotFoundException.

Parameter jobId : The identifier of the job.

Implementation

Future<StopRxNormInferenceJobResponse> stopRxNormInferenceJob({
  required String jobId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'ComprehendMedical_20181030.StopRxNormInferenceJob'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'JobId': jobId,
    },
  );

  return StopRxNormInferenceJobResponse.fromJson(jsonResponse.body);
}