deleteTranscriptionJob method
Deletes a previously submitted transcription job along with any other generated results such as the transcription, models, and so on.
May throw LimitExceededException. May throw BadRequestException. May throw InternalFailureException.
Parameter transcriptionJobName
:
The name of the transcription job to be deleted.
Implementation
Future<void> deleteTranscriptionJob({
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.DeleteTranscriptionJob'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'TranscriptionJobName': transcriptionJobName,
},
);
}