getTranscriptionJob method

Future<GetTranscriptionJobResponse> getTranscriptionJob({
  1. required String transcriptionJobName,
})

Returns information about a transcription job. To see the status of the job, check the TranscriptionJobStatus field. If the status is COMPLETED, the job is finished and you can find the results at the location specified in the TranscriptFileUri field. If you enable content redaction, the redacted transcript appears in RedactedTranscriptFileUri.

May throw BadRequestException. May throw LimitExceededException. May throw InternalFailureException. May throw NotFoundException.

Parameter transcriptionJobName : The name of the job.

Implementation

Future<GetTranscriptionJobResponse> getTranscriptionJob({
  required String transcriptionJobName,
}) async {
  ArgumentError.checkNotNull(transcriptionJobName, 'transcriptionJobName');
  _s.validateStringLength(
    'transcriptionJobName',
    transcriptionJobName,
    1,
    200,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Transcribe.GetTranscriptionJob'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'TranscriptionJobName': transcriptionJobName,
    },
  );

  return GetTranscriptionJobResponse.fromJson(jsonResponse.body);
}