getVocabularyFilter method
Returns information about a vocabulary filter.
May throw NotFoundException. May throw LimitExceededException. May throw InternalFailureException. May throw BadRequestException.
Parameter vocabularyFilterName
:
The name of the vocabulary filter for which to return information.
Implementation
Future<GetVocabularyFilterResponse> getVocabularyFilter({
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.GetVocabularyFilter'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'VocabularyFilterName': vocabularyFilterName,
},
);
return GetVocabularyFilterResponse.fromJson(jsonResponse.body);
}