getMedicalTranscriptionJob method
Future<GetMedicalTranscriptionJobResponse>
getMedicalTranscriptionJob({
- required String medicalTranscriptionJobName,
Returns information about a transcription job from Amazon Transcribe
Medical. To see the status of the job, check the
TranscriptionJobStatus
field. If the status is
COMPLETED
, the job is finished. You find the results of the
completed job in the TranscriptFileUri
field.
May throw BadRequestException. May throw LimitExceededException. May throw InternalFailureException. May throw NotFoundException.
Parameter medicalTranscriptionJobName
:
The name of the medical transcription job.
Implementation
Future<GetMedicalTranscriptionJobResponse> getMedicalTranscriptionJob({
required String medicalTranscriptionJobName,
}) async {
ArgumentError.checkNotNull(
medicalTranscriptionJobName, 'medicalTranscriptionJobName');
_s.validateStringLength(
'medicalTranscriptionJobName',
medicalTranscriptionJobName,
1,
200,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Transcribe.GetMedicalTranscriptionJob'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'MedicalTranscriptionJobName': medicalTranscriptionJobName,
},
);
return GetMedicalTranscriptionJobResponse.fromJson(jsonResponse.body);
}