describeKnowledgeBase method
Describes a knowledge base.
May throw AccessDeniedException.
May throw InternalFailureException.
May throw InvalidParameterValueException.
May throw InvalidRequestException.
May throw LimitExceededException.
May throw PreconditionNotMetException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter awsAccountId :
The ID of the Amazon Web Services account that contains the knowledge
base.
Parameter knowledgeBaseId :
The unique identifier for the knowledge base.
Implementation
Future<DescribeKnowledgeBaseResponse> describeKnowledgeBase({
required String awsAccountId,
required String knowledgeBaseId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v1/accounts/${Uri.encodeComponent(awsAccountId)}/knowledge-bases/${Uri.encodeComponent(knowledgeBaseId)}',
exceptionFnMap: _exceptionFns,
);
return DescribeKnowledgeBaseResponse.fromJson(response);
}