deleteVocabulary method

Future<void> deleteVocabulary({
  1. required String vocabularyName,
})

Deletes a vocabulary from Amazon Transcribe.

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

Parameter vocabularyName : The name of the vocabulary to delete.

Implementation

Future<void> deleteVocabulary({
  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.DeleteVocabulary'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'VocabularyName': vocabularyName,
    },
  );
}