describeVocabulary method

Future<DescribeVocabularyResponse> describeVocabulary({
  1. required String instanceId,
  2. required String vocabularyId,
})

Describes the specified vocabulary.

May throw AccessDeniedException. May throw InternalServiceException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Parameter vocabularyId : The identifier of the custom vocabulary.

Implementation

Future<DescribeVocabularyResponse> describeVocabulary({
  required String instanceId,
  required String vocabularyId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/vocabulary/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(vocabularyId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeVocabularyResponse.fromJson(response);
}