deleteVocabularyFilter method

Future<void> deleteVocabularyFilter({
  1. required String vocabularyFilterName,
})

Removes a vocabulary filter.

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

Parameter vocabularyFilterName : The name of the vocabulary filter to remove.

Implementation

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