deleteMedicalVocabulary method
Deletes a vocabulary from Amazon Transcribe Medical.
May throw NotFoundException. May throw LimitExceededException. May throw BadRequestException. May throw InternalFailureException.
Parameter vocabularyName
:
The name of the vocabulary that you want to delete.
Implementation
Future<void> deleteMedicalVocabulary({
required String vocabularyName,
}) async {
ArgumentError.checkNotNull(vocabularyName, 'vocabularyName');
_s.validateStringLength(
'vocabularyName',
vocabularyName,
1,
200,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Transcribe.DeleteMedicalVocabulary'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'VocabularyName': vocabularyName,
},
);
}