deleteKnowledgeBase method
Deletes a knowledge base.
May throw AccessDeniedException.
May throw ConflictException.
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<DeleteKnowledgeBaseResponse> deleteKnowledgeBase({
required String awsAccountId,
required String knowledgeBaseId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/v1/accounts/${Uri.encodeComponent(awsAccountId)}/knowledge-bases/${Uri.encodeComponent(knowledgeBaseId)}',
exceptionFnMap: _exceptionFns,
);
return DeleteKnowledgeBaseResponse.fromJson(response);
}