getKnowledgeBase method
Gets information about a knowledge base.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter knowledgeBaseId :
The unique identifier of the knowledge base you want to get information
on.
Implementation
Future<GetKnowledgeBaseResponse> getKnowledgeBase({
required String knowledgeBaseId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/knowledgebases/${Uri.encodeComponent(knowledgeBaseId)}',
exceptionFnMap: _exceptionFns,
);
return GetKnowledgeBaseResponse.fromJson(response);
}