@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBedrockAgentAsyncClient extends AWSBedrockAgentClient implements AWSBedrockAgentAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Describes the API operations for creating and managing Amazon Bedrock agents.
configFactoryclient, clientConfiguration, endpoint, isEndpointOverridden, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffsetENDPOINT_PREFIXassociateAgentKnowledgeBase, builder, createAgent, createAgentActionGroup, createAgentAlias, createDataSource, createKnowledgeBase, deleteAgent, deleteAgentActionGroup, deleteAgentAlias, deleteAgentVersion, deleteDataSource, deleteKnowledgeBase, disassociateAgentKnowledgeBase, getAgent, getAgentActionGroup, getAgentAlias, getAgentKnowledgeBase, getAgentVersion, getCachedResponseMetadata, getDataSource, getIngestionJob, getKnowledgeBase, listAgentActionGroups, listAgentAliases, listAgentKnowledgeBases, listAgents, listAgentVersions, listDataSources, listIngestionJobs, listKnowledgeBases, listTagsForResource, prepareAgent, startIngestionJob, tagResource, untagResource, updateAgent, updateAgentActionGroup, updateAgentAlias, updateAgentKnowledgeBase, updateDataSource, updateKnowledgeBaseaddRequestHandler, addRequestHandler, beforeClientExecution, beforeMarshalling, calculateCRC32FromCompressedData, checkMutability, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, createSignerProvider, endClientExecution, endClientExecution, getClientConfiguration, getClientId, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerOverride, getSignerProvider, getSignerRegionOverride, getSigningRegion, getTimeOffset, isCsmEnabled, isEndpointOverridden, isProfilingEnabled, isRequestMetricsEnabled, makeImmutable, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shouldGenerateClientSideMonitoringEvents, useStrictHostNameVerification, withEndpoint, withRegion, withRegion, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassociateAgentKnowledgeBase, createAgent, createAgentActionGroup, createAgentAlias, createDataSource, createKnowledgeBase, deleteAgent, deleteAgentActionGroup, deleteAgentAlias, deleteAgentVersion, deleteDataSource, deleteKnowledgeBase, disassociateAgentKnowledgeBase, getAgent, getAgentActionGroup, getAgentAlias, getAgentKnowledgeBase, getAgentVersion, getCachedResponseMetadata, getDataSource, getIngestionJob, getKnowledgeBase, listAgentActionGroups, listAgentAliases, listAgentKnowledgeBases, listAgents, listAgentVersions, listDataSources, listIngestionJobs, listKnowledgeBases, listTagsForResource, prepareAgent, startIngestionJob, tagResource, untagResource, updateAgent, updateAgentActionGroup, updateAgentAlias, updateAgentKnowledgeBase, updateDataSource, updateKnowledgeBasepublic static AWSBedrockAgentAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<AssociateAgentKnowledgeBaseResult> associateAgentKnowledgeBaseAsync(AssociateAgentKnowledgeBaseRequest request)
AWSBedrockAgentAsync
Associates a knowledge base with an agent. If a knowledge base is associated and its indexState is
set to Enabled, the agent queries the knowledge base for information to augment its response to the
user.
associateAgentKnowledgeBaseAsync in interface AWSBedrockAgentAsyncpublic Future<AssociateAgentKnowledgeBaseResult> associateAgentKnowledgeBaseAsync(AssociateAgentKnowledgeBaseRequest request, AsyncHandler<AssociateAgentKnowledgeBaseRequest,AssociateAgentKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Associates a knowledge base with an agent. If a knowledge base is associated and its indexState is
set to Enabled, the agent queries the knowledge base for information to augment its response to the
user.
associateAgentKnowledgeBaseAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateAgentResult> createAgentAsync(CreateAgentRequest request)
AWSBedrockAgentAsyncCreates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers.
Specify the following fields for security purposes.
agentResourceRoleArn – The Amazon Resource Name (ARN) of the role with permissions to invoke API
operations on an agent.
(Optional) customerEncryptionKeyArn – The Amazon Resource Name (ARN) of a KMS key to encrypt the
creation of the agent.
(Optional) idleSessionTTLinSeconds – Specify the number of seconds for which the agent should
maintain session information. After this time expires, the subsequent InvokeAgent request begins a
new session.
To override the default prompt behavior for agent orchestration and to use advanced prompts, include a
promptOverrideConfiguration object. For more information, see Advanced prompts.
If you agent fails to be created, the response returns a list of failureReasons alongside a list of
recommendedActions for you to troubleshoot.
createAgentAsync in interface AWSBedrockAgentAsyncpublic Future<CreateAgentResult> createAgentAsync(CreateAgentRequest request, AsyncHandler<CreateAgentRequest,CreateAgentResult> asyncHandler)
AWSBedrockAgentAsyncCreates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers.
Specify the following fields for security purposes.
agentResourceRoleArn – The Amazon Resource Name (ARN) of the role with permissions to invoke API
operations on an agent.
(Optional) customerEncryptionKeyArn – The Amazon Resource Name (ARN) of a KMS key to encrypt the
creation of the agent.
(Optional) idleSessionTTLinSeconds – Specify the number of seconds for which the agent should
maintain session information. After this time expires, the subsequent InvokeAgent request begins a
new session.
To override the default prompt behavior for agent orchestration and to use advanced prompts, include a
promptOverrideConfiguration object. For more information, see Advanced prompts.
If you agent fails to be created, the response returns a list of failureReasons alongside a list of
recommendedActions for you to troubleshoot.
createAgentAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateAgentActionGroupResult> createAgentActionGroupAsync(CreateAgentActionGroupRequest request)
AWSBedrockAgentAsyncCreates an action group for an agent. An action group represents the actions that an agent can carry out for the customer by defining the APIs that an agent can call and the logic for calling them.
To allow your agent to request the user for additional information when trying to complete a task, add an action
group with the parentActionGroupSignature field set to AMAZON.UserInput. You must leave
the description, apiSchema, and actionGroupExecutor fields blank for this
action group. During orchestration, if your agent determines that it needs to invoke an API in an action group,
but doesn't have enough information to complete the API request, it will invoke this action group instead and
return an Observation
reprompting the user for more information.
createAgentActionGroupAsync in interface AWSBedrockAgentAsyncpublic Future<CreateAgentActionGroupResult> createAgentActionGroupAsync(CreateAgentActionGroupRequest request, AsyncHandler<CreateAgentActionGroupRequest,CreateAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsyncCreates an action group for an agent. An action group represents the actions that an agent can carry out for the customer by defining the APIs that an agent can call and the logic for calling them.
To allow your agent to request the user for additional information when trying to complete a task, add an action
group with the parentActionGroupSignature field set to AMAZON.UserInput. You must leave
the description, apiSchema, and actionGroupExecutor fields blank for this
action group. During orchestration, if your agent determines that it needs to invoke an API in an action group,
but doesn't have enough information to complete the API request, it will invoke this action group instead and
return an Observation
reprompting the user for more information.
createAgentActionGroupAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateAgentAliasResult> createAgentAliasAsync(CreateAgentAliasRequest request)
AWSBedrockAgentAsyncCreates an alias of an agent that can be used to deploy the agent.
createAgentAliasAsync in interface AWSBedrockAgentAsyncpublic Future<CreateAgentAliasResult> createAgentAliasAsync(CreateAgentAliasRequest request, AsyncHandler<CreateAgentAliasRequest,CreateAgentAliasResult> asyncHandler)
AWSBedrockAgentAsyncCreates an alias of an agent that can be used to deploy the agent.
createAgentAliasAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateDataSourceResult> createDataSourceAsync(CreateDataSourceRequest request)
AWSBedrockAgentAsyncSets up a data source to be added to a knowledge base.
You can't change the chunkingConfiguration after you create the data source.
createDataSourceAsync in interface AWSBedrockAgentAsyncpublic Future<CreateDataSourceResult> createDataSourceAsync(CreateDataSourceRequest request, AsyncHandler<CreateDataSourceRequest,CreateDataSourceResult> asyncHandler)
AWSBedrockAgentAsyncSets up a data source to be added to a knowledge base.
You can't change the chunkingConfiguration after you create the data source.
createDataSourceAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateKnowledgeBaseResult> createKnowledgeBaseAsync(CreateKnowledgeBaseRequest request)
AWSBedrockAgentAsyncCreates a knowledge base that contains data sources from which information can be queried and used by LLMs. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see Set up your data for ingestion.
If you prefer to let Amazon Bedrock create and manage a vector store for you in Amazon OpenSearch Service, use the console. For more information, see Create a knowledge base.
Provide the name and an optional description.
Provide the Amazon Resource Name (ARN) with permissions to create a knowledge base in the roleArn
field.
Provide the embedding model to use in the embeddingModelArn field in the
knowledgeBaseConfiguration object.
Provide the configuration for your vector store in the storageConfiguration object.
For an Amazon OpenSearch Service database, use the opensearchServerlessConfiguration object. For
more information, see Create a vector store
in Amazon OpenSearch Service.
For an Amazon Aurora database, use the RdsConfiguration object. For more information, see Create a vector store
in Amazon Aurora.
For a Pinecone database, use the pineconeConfiguration object. For more information, see Create a vector
store in Pinecone.
For a Redis Enterprise Cloud database, use the redisEnterpriseCloudConfiguration object. For more
information, see Create a vector store
in Redis Enterprise Cloud.
createKnowledgeBaseAsync in interface AWSBedrockAgentAsyncpublic Future<CreateKnowledgeBaseResult> createKnowledgeBaseAsync(CreateKnowledgeBaseRequest request, AsyncHandler<CreateKnowledgeBaseRequest,CreateKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsyncCreates a knowledge base that contains data sources from which information can be queried and used by LLMs. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see Set up your data for ingestion.
If you prefer to let Amazon Bedrock create and manage a vector store for you in Amazon OpenSearch Service, use the console. For more information, see Create a knowledge base.
Provide the name and an optional description.
Provide the Amazon Resource Name (ARN) with permissions to create a knowledge base in the roleArn
field.
Provide the embedding model to use in the embeddingModelArn field in the
knowledgeBaseConfiguration object.
Provide the configuration for your vector store in the storageConfiguration object.
For an Amazon OpenSearch Service database, use the opensearchServerlessConfiguration object. For
more information, see Create a vector store
in Amazon OpenSearch Service.
For an Amazon Aurora database, use the RdsConfiguration object. For more information, see Create a vector store
in Amazon Aurora.
For a Pinecone database, use the pineconeConfiguration object. For more information, see Create a vector
store in Pinecone.
For a Redis Enterprise Cloud database, use the redisEnterpriseCloudConfiguration object. For more
information, see Create a vector store
in Redis Enterprise Cloud.
createKnowledgeBaseAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteAgentResult> deleteAgentAsync(DeleteAgentRequest request)
AWSBedrockAgentAsyncDeletes an agent.
deleteAgentAsync in interface AWSBedrockAgentAsyncpublic Future<DeleteAgentResult> deleteAgentAsync(DeleteAgentRequest request, AsyncHandler<DeleteAgentRequest,DeleteAgentResult> asyncHandler)
AWSBedrockAgentAsyncDeletes an agent.
deleteAgentAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteAgentActionGroupResult> deleteAgentActionGroupAsync(DeleteAgentActionGroupRequest request)
AWSBedrockAgentAsyncDeletes an action group in an agent.
deleteAgentActionGroupAsync in interface AWSBedrockAgentAsyncpublic Future<DeleteAgentActionGroupResult> deleteAgentActionGroupAsync(DeleteAgentActionGroupRequest request, AsyncHandler<DeleteAgentActionGroupRequest,DeleteAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsyncDeletes an action group in an agent.
deleteAgentActionGroupAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteAgentAliasResult> deleteAgentAliasAsync(DeleteAgentAliasRequest request)
AWSBedrockAgentAsyncDeletes an alias of an agent.
deleteAgentAliasAsync in interface AWSBedrockAgentAsyncpublic Future<DeleteAgentAliasResult> deleteAgentAliasAsync(DeleteAgentAliasRequest request, AsyncHandler<DeleteAgentAliasRequest,DeleteAgentAliasResult> asyncHandler)
AWSBedrockAgentAsyncDeletes an alias of an agent.
deleteAgentAliasAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteAgentVersionResult> deleteAgentVersionAsync(DeleteAgentVersionRequest request)
AWSBedrockAgentAsyncDeletes a version of an agent.
deleteAgentVersionAsync in interface AWSBedrockAgentAsyncpublic Future<DeleteAgentVersionResult> deleteAgentVersionAsync(DeleteAgentVersionRequest request, AsyncHandler<DeleteAgentVersionRequest,DeleteAgentVersionResult> asyncHandler)
AWSBedrockAgentAsyncDeletes a version of an agent.
deleteAgentVersionAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteDataSourceResult> deleteDataSourceAsync(DeleteDataSourceRequest request)
AWSBedrockAgentAsyncDeletes a data source from a knowledge base.
deleteDataSourceAsync in interface AWSBedrockAgentAsyncpublic Future<DeleteDataSourceResult> deleteDataSourceAsync(DeleteDataSourceRequest request, AsyncHandler<DeleteDataSourceRequest,DeleteDataSourceResult> asyncHandler)
AWSBedrockAgentAsyncDeletes a data source from a knowledge base.
deleteDataSourceAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteKnowledgeBaseResult> deleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest request)
AWSBedrockAgentAsyncDeletes a knowledge base. Before deleting a knowledge base, you should disassociate the knowledge base from any agents that it is associated with by making a DisassociateAgentKnowledgeBase request.
deleteKnowledgeBaseAsync in interface AWSBedrockAgentAsyncpublic Future<DeleteKnowledgeBaseResult> deleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest request, AsyncHandler<DeleteKnowledgeBaseRequest,DeleteKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsyncDeletes a knowledge base. Before deleting a knowledge base, you should disassociate the knowledge base from any agents that it is associated with by making a DisassociateAgentKnowledgeBase request.
deleteKnowledgeBaseAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DisassociateAgentKnowledgeBaseResult> disassociateAgentKnowledgeBaseAsync(DisassociateAgentKnowledgeBaseRequest request)
AWSBedrockAgentAsyncDisassociates a knowledge base from an agent.
disassociateAgentKnowledgeBaseAsync in interface AWSBedrockAgentAsyncpublic Future<DisassociateAgentKnowledgeBaseResult> disassociateAgentKnowledgeBaseAsync(DisassociateAgentKnowledgeBaseRequest request, AsyncHandler<DisassociateAgentKnowledgeBaseRequest,DisassociateAgentKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsyncDisassociates a knowledge base from an agent.
disassociateAgentKnowledgeBaseAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetAgentResult> getAgentAsync(GetAgentRequest request)
AWSBedrockAgentAsyncGets information about an agent.
getAgentAsync in interface AWSBedrockAgentAsyncpublic Future<GetAgentResult> getAgentAsync(GetAgentRequest request, AsyncHandler<GetAgentRequest,GetAgentResult> asyncHandler)
AWSBedrockAgentAsyncGets information about an agent.
getAgentAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetAgentActionGroupResult> getAgentActionGroupAsync(GetAgentActionGroupRequest request)
AWSBedrockAgentAsyncGets information about an action group for an agent.
getAgentActionGroupAsync in interface AWSBedrockAgentAsyncpublic Future<GetAgentActionGroupResult> getAgentActionGroupAsync(GetAgentActionGroupRequest request, AsyncHandler<GetAgentActionGroupRequest,GetAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsyncGets information about an action group for an agent.
getAgentActionGroupAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetAgentAliasResult> getAgentAliasAsync(GetAgentAliasRequest request)
AWSBedrockAgentAsyncGets information about an alias of an agent.
getAgentAliasAsync in interface AWSBedrockAgentAsyncpublic Future<GetAgentAliasResult> getAgentAliasAsync(GetAgentAliasRequest request, AsyncHandler<GetAgentAliasRequest,GetAgentAliasResult> asyncHandler)
AWSBedrockAgentAsyncGets information about an alias of an agent.
getAgentAliasAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetAgentKnowledgeBaseResult> getAgentKnowledgeBaseAsync(GetAgentKnowledgeBaseRequest request)
AWSBedrockAgentAsyncGets information about a knowledge base associated with an agent.
getAgentKnowledgeBaseAsync in interface AWSBedrockAgentAsyncpublic Future<GetAgentKnowledgeBaseResult> getAgentKnowledgeBaseAsync(GetAgentKnowledgeBaseRequest request, AsyncHandler<GetAgentKnowledgeBaseRequest,GetAgentKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsyncGets information about a knowledge base associated with an agent.
getAgentKnowledgeBaseAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetAgentVersionResult> getAgentVersionAsync(GetAgentVersionRequest request)
AWSBedrockAgentAsyncGets details about a version of an agent.
getAgentVersionAsync in interface AWSBedrockAgentAsyncpublic Future<GetAgentVersionResult> getAgentVersionAsync(GetAgentVersionRequest request, AsyncHandler<GetAgentVersionRequest,GetAgentVersionResult> asyncHandler)
AWSBedrockAgentAsyncGets details about a version of an agent.
getAgentVersionAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetDataSourceResult> getDataSourceAsync(GetDataSourceRequest request)
AWSBedrockAgentAsyncGets information about a data source.
getDataSourceAsync in interface AWSBedrockAgentAsyncpublic Future<GetDataSourceResult> getDataSourceAsync(GetDataSourceRequest request, AsyncHandler<GetDataSourceRequest,GetDataSourceResult> asyncHandler)
AWSBedrockAgentAsyncGets information about a data source.
getDataSourceAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetIngestionJobResult> getIngestionJobAsync(GetIngestionJobRequest request)
AWSBedrockAgentAsyncGets information about a ingestion job, in which a data source is added to a knowledge base.
getIngestionJobAsync in interface AWSBedrockAgentAsyncpublic Future<GetIngestionJobResult> getIngestionJobAsync(GetIngestionJobRequest request, AsyncHandler<GetIngestionJobRequest,GetIngestionJobResult> asyncHandler)
AWSBedrockAgentAsyncGets information about a ingestion job, in which a data source is added to a knowledge base.
getIngestionJobAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetKnowledgeBaseResult> getKnowledgeBaseAsync(GetKnowledgeBaseRequest request)
AWSBedrockAgentAsyncGets information about a knoweldge base.
getKnowledgeBaseAsync in interface AWSBedrockAgentAsyncpublic Future<GetKnowledgeBaseResult> getKnowledgeBaseAsync(GetKnowledgeBaseRequest request, AsyncHandler<GetKnowledgeBaseRequest,GetKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsyncGets information about a knoweldge base.
getKnowledgeBaseAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListAgentActionGroupsResult> listAgentActionGroupsAsync(ListAgentActionGroupsRequest request)
AWSBedrockAgentAsyncLists the action groups for an agent and information about each one.
listAgentActionGroupsAsync in interface AWSBedrockAgentAsyncpublic Future<ListAgentActionGroupsResult> listAgentActionGroupsAsync(ListAgentActionGroupsRequest request, AsyncHandler<ListAgentActionGroupsRequest,ListAgentActionGroupsResult> asyncHandler)
AWSBedrockAgentAsyncLists the action groups for an agent and information about each one.
listAgentActionGroupsAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListAgentAliasesResult> listAgentAliasesAsync(ListAgentAliasesRequest request)
AWSBedrockAgentAsyncLists the aliases of an agent and information about each one.
listAgentAliasesAsync in interface AWSBedrockAgentAsyncpublic Future<ListAgentAliasesResult> listAgentAliasesAsync(ListAgentAliasesRequest request, AsyncHandler<ListAgentAliasesRequest,ListAgentAliasesResult> asyncHandler)
AWSBedrockAgentAsyncLists the aliases of an agent and information about each one.
listAgentAliasesAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListAgentKnowledgeBasesResult> listAgentKnowledgeBasesAsync(ListAgentKnowledgeBasesRequest request)
AWSBedrockAgentAsyncLists knowledge bases associated with an agent and information about each one.
listAgentKnowledgeBasesAsync in interface AWSBedrockAgentAsyncpublic Future<ListAgentKnowledgeBasesResult> listAgentKnowledgeBasesAsync(ListAgentKnowledgeBasesRequest request, AsyncHandler<ListAgentKnowledgeBasesRequest,ListAgentKnowledgeBasesResult> asyncHandler)
AWSBedrockAgentAsyncLists knowledge bases associated with an agent and information about each one.
listAgentKnowledgeBasesAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListAgentVersionsResult> listAgentVersionsAsync(ListAgentVersionsRequest request)
AWSBedrockAgentAsyncLists the versions of an agent and information about each version.
listAgentVersionsAsync in interface AWSBedrockAgentAsyncpublic Future<ListAgentVersionsResult> listAgentVersionsAsync(ListAgentVersionsRequest request, AsyncHandler<ListAgentVersionsRequest,ListAgentVersionsResult> asyncHandler)
AWSBedrockAgentAsyncLists the versions of an agent and information about each version.
listAgentVersionsAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListAgentsResult> listAgentsAsync(ListAgentsRequest request)
AWSBedrockAgentAsyncLists the agents belonging to an account and information about each agent.
listAgentsAsync in interface AWSBedrockAgentAsyncpublic Future<ListAgentsResult> listAgentsAsync(ListAgentsRequest request, AsyncHandler<ListAgentsRequest,ListAgentsResult> asyncHandler)
AWSBedrockAgentAsyncLists the agents belonging to an account and information about each agent.
listAgentsAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListDataSourcesResult> listDataSourcesAsync(ListDataSourcesRequest request)
AWSBedrockAgentAsyncLists the data sources in a knowledge base and information about each one.
listDataSourcesAsync in interface AWSBedrockAgentAsyncpublic Future<ListDataSourcesResult> listDataSourcesAsync(ListDataSourcesRequest request, AsyncHandler<ListDataSourcesRequest,ListDataSourcesResult> asyncHandler)
AWSBedrockAgentAsyncLists the data sources in a knowledge base and information about each one.
listDataSourcesAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListIngestionJobsResult> listIngestionJobsAsync(ListIngestionJobsRequest request)
AWSBedrockAgentAsyncLists the ingestion jobs for a data source and information about each of them.
listIngestionJobsAsync in interface AWSBedrockAgentAsyncpublic Future<ListIngestionJobsResult> listIngestionJobsAsync(ListIngestionJobsRequest request, AsyncHandler<ListIngestionJobsRequest,ListIngestionJobsResult> asyncHandler)
AWSBedrockAgentAsyncLists the ingestion jobs for a data source and information about each of them.
listIngestionJobsAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListKnowledgeBasesResult> listKnowledgeBasesAsync(ListKnowledgeBasesRequest request)
AWSBedrockAgentAsyncLists the knowledge bases in an account and information about each of them.
listKnowledgeBasesAsync in interface AWSBedrockAgentAsyncpublic Future<ListKnowledgeBasesResult> listKnowledgeBasesAsync(ListKnowledgeBasesRequest request, AsyncHandler<ListKnowledgeBasesRequest,ListKnowledgeBasesResult> asyncHandler)
AWSBedrockAgentAsyncLists the knowledge bases in an account and information about each of them.
listKnowledgeBasesAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSBedrockAgentAsyncList all the tags for the resource you specify.
listTagsForResourceAsync in interface AWSBedrockAgentAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSBedrockAgentAsyncList all the tags for the resource you specify.
listTagsForResourceAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PrepareAgentResult> prepareAgentAsync(PrepareAgentRequest request)
AWSBedrockAgentAsync
Creates a DRAFT version of the agent that can be used for internal testing.
prepareAgentAsync in interface AWSBedrockAgentAsyncpublic Future<PrepareAgentResult> prepareAgentAsync(PrepareAgentRequest request, AsyncHandler<PrepareAgentRequest,PrepareAgentResult> asyncHandler)
AWSBedrockAgentAsync
Creates a DRAFT version of the agent that can be used for internal testing.
prepareAgentAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartIngestionJobResult> startIngestionJobAsync(StartIngestionJobRequest request)
AWSBedrockAgentAsyncBegins an ingestion job, in which a data source is added to a knowledge base.
startIngestionJobAsync in interface AWSBedrockAgentAsyncpublic Future<StartIngestionJobResult> startIngestionJobAsync(StartIngestionJobRequest request, AsyncHandler<StartIngestionJobRequest,StartIngestionJobResult> asyncHandler)
AWSBedrockAgentAsyncBegins an ingestion job, in which a data source is added to a knowledge base.
startIngestionJobAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSBedrockAgentAsyncAssociate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
tagResourceAsync in interface AWSBedrockAgentAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSBedrockAgentAsyncAssociate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
tagResourceAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSBedrockAgentAsyncRemove tags from a resource.
untagResourceAsync in interface AWSBedrockAgentAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSBedrockAgentAsyncRemove tags from a resource.
untagResourceAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateAgentResult> updateAgentAsync(UpdateAgentRequest request)
AWSBedrockAgentAsyncUpdates the configuration of an agent.
updateAgentAsync in interface AWSBedrockAgentAsyncpublic Future<UpdateAgentResult> updateAgentAsync(UpdateAgentRequest request, AsyncHandler<UpdateAgentRequest,UpdateAgentResult> asyncHandler)
AWSBedrockAgentAsyncUpdates the configuration of an agent.
updateAgentAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateAgentActionGroupResult> updateAgentActionGroupAsync(UpdateAgentActionGroupRequest request)
AWSBedrockAgentAsyncUpdates the configuration for an action group for an agent.
updateAgentActionGroupAsync in interface AWSBedrockAgentAsyncpublic Future<UpdateAgentActionGroupResult> updateAgentActionGroupAsync(UpdateAgentActionGroupRequest request, AsyncHandler<UpdateAgentActionGroupRequest,UpdateAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsyncUpdates the configuration for an action group for an agent.
updateAgentActionGroupAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateAgentAliasResult> updateAgentAliasAsync(UpdateAgentAliasRequest request)
AWSBedrockAgentAsyncUpdates configurations for an alias of an agent.
updateAgentAliasAsync in interface AWSBedrockAgentAsyncpublic Future<UpdateAgentAliasResult> updateAgentAliasAsync(UpdateAgentAliasRequest request, AsyncHandler<UpdateAgentAliasRequest,UpdateAgentAliasResult> asyncHandler)
AWSBedrockAgentAsyncUpdates configurations for an alias of an agent.
updateAgentAliasAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateAgentKnowledgeBaseResult> updateAgentKnowledgeBaseAsync(UpdateAgentKnowledgeBaseRequest request)
AWSBedrockAgentAsyncUpdates the configuration for a knowledge base that has been associated with an agent.
updateAgentKnowledgeBaseAsync in interface AWSBedrockAgentAsyncpublic Future<UpdateAgentKnowledgeBaseResult> updateAgentKnowledgeBaseAsync(UpdateAgentKnowledgeBaseRequest request, AsyncHandler<UpdateAgentKnowledgeBaseRequest,UpdateAgentKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsyncUpdates the configuration for a knowledge base that has been associated with an agent.
updateAgentKnowledgeBaseAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateDataSourceResult> updateDataSourceAsync(UpdateDataSourceRequest request)
AWSBedrockAgentAsyncUpdates configurations for a data source.
You can't change the chunkingConfiguration after you create the data source. Specify the existing
chunkingConfiguration.
updateDataSourceAsync in interface AWSBedrockAgentAsyncpublic Future<UpdateDataSourceResult> updateDataSourceAsync(UpdateDataSourceRequest request, AsyncHandler<UpdateDataSourceRequest,UpdateDataSourceResult> asyncHandler)
AWSBedrockAgentAsyncUpdates configurations for a data source.
You can't change the chunkingConfiguration after you create the data source. Specify the existing
chunkingConfiguration.
updateDataSourceAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateKnowledgeBaseResult> updateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest request)
AWSBedrockAgentAsyncUpdates the configuration of a knowledge base with the fields that you specify. Because all fields will be overwritten, you must include the same values for fields that you want to keep the same.
You can change the following fields:
name
description
roleArn
You can't change the knowledgeBaseConfiguration or storageConfiguration fields, so you
must specify the same configurations as when you created the knowledge base. You can send a GetKnowledgeBase request and copy the same configurations.
updateKnowledgeBaseAsync in interface AWSBedrockAgentAsyncpublic Future<UpdateKnowledgeBaseResult> updateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest request, AsyncHandler<UpdateKnowledgeBaseRequest,UpdateKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsyncUpdates the configuration of a knowledge base with the fields that you specify. Because all fields will be overwritten, you must include the same values for fields that you want to keep the same.
You can change the following fields:
name
description
roleArn
You can't change the knowledgeBaseConfiguration or storageConfiguration fields, so you
must specify the same configurations as when you created the knowledge base. You can send a GetKnowledgeBase request and copy the same configurations.
updateKnowledgeBaseAsync in interface AWSBedrockAgentAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AWSBedrockAgentshutdown in class AWSBedrockAgentClientCopyright © 2024. All rights reserved.