batchDeleteKnowledgeBase method

Future<BatchDeleteKnowledgeBaseResponse> batchDeleteKnowledgeBase({
  1. required String awsAccountId,
  2. required List<String> knowledgeBaseIds,
})

Deletes one or more knowledge bases.

May throw AccessDeniedException. May throw InternalFailureException. May throw InvalidParameterValueException. May throw InvalidRequestException. May throw LimitExceededException. May throw PreconditionNotMetException. May throw ThrottlingException.

Parameter awsAccountId : The ID of the Amazon Web Services account that contains the knowledge base.

Parameter knowledgeBaseIds : A list of knowledge base identifiers to delete.

Implementation

Future<BatchDeleteKnowledgeBaseResponse> batchDeleteKnowledgeBase({
  required String awsAccountId,
  required List<String> knowledgeBaseIds,
}) async {
  final $payload = <String, dynamic>{
    'KnowledgeBaseIds': knowledgeBaseIds,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/v1/accounts/${Uri.encodeComponent(awsAccountId)}/knowledge-bases/batch-delete',
    exceptionFnMap: _exceptionFns,
  );
  return BatchDeleteKnowledgeBaseResponse.fromJson(response);
}