stopEntitiesDetectionV2Job method
Stops a medical entities detection job in progress.
May throw InvalidRequestException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter jobId
:
The identifier of the medical entities job to stop.
Implementation
Future<StopEntitiesDetectionV2JobResponse> stopEntitiesDetectionV2Job({
required String jobId,
}) async {
ArgumentError.checkNotNull(jobId, 'jobId');
_s.validateStringLength(
'jobId',
jobId,
1,
32,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ComprehendMedical_20181030.StopEntitiesDetectionV2Job'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'JobId': jobId,
},
);
return StopEntitiesDetectionV2JobResponse.fromJson(jsonResponse.body);
}