getMedicalVocabulary method

Future<GetMedicalVocabularyResponse> getMedicalVocabulary({
  1. required String vocabularyName,
})

Retrieves information about a medical vocabulary.

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

Parameter vocabularyName : The name of the vocabulary that you want information about. The value is case sensitive.

Implementation

Future<GetMedicalVocabularyResponse> getMedicalVocabulary({
  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.GetMedicalVocabulary'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'VocabularyName': vocabularyName,
    },
  );

  return GetMedicalVocabularyResponse.fromJson(jsonResponse.body);
}