describeICD10CMInferenceJob method
Gets the properties associated with an InferICD10CM job. Use this operation to get the status of an inference job.
May throw InvalidRequestException. May throw TooManyRequestsException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter jobId
:
The identifier that Amazon Comprehend Medical generated for the job.
The StartICD10CMInferenceJob
operation returns this
identifier in its response.
Implementation
Future<DescribeICD10CMInferenceJobResponse> describeICD10CMInferenceJob({
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.DescribeICD10CMInferenceJob'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'JobId': jobId,
},
);
return DescribeICD10CMInferenceJobResponse.fromJson(jsonResponse.body);
}