@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAWSBedrockAgentAsync extends AbstractAWSBedrockAgent implements AWSBedrockAgentAsync
AWSBedrockAgentAsync
. Convenient method forms pass through to the corresponding
overload that takes a request object and an AsyncHandler
, which throws an
UnsupportedOperationException
.ENDPOINT_PREFIX
associateAgentKnowledgeBase, createAgent, createAgentActionGroup, createAgentAlias, createDataSource, createFlow, createFlowAlias, createFlowVersion, createKnowledgeBase, createPrompt, createPromptVersion, deleteAgent, deleteAgentActionGroup, deleteAgentAlias, deleteAgentVersion, deleteDataSource, deleteFlow, deleteFlowAlias, deleteFlowVersion, deleteKnowledgeBase, deletePrompt, disassociateAgentKnowledgeBase, getAgent, getAgentActionGroup, getAgentAlias, getAgentKnowledgeBase, getAgentVersion, getCachedResponseMetadata, getDataSource, getFlow, getFlowAlias, getFlowVersion, getIngestionJob, getKnowledgeBase, getPrompt, listAgentActionGroups, listAgentAliases, listAgentKnowledgeBases, listAgents, listAgentVersions, listDataSources, listFlowAliases, listFlows, listFlowVersions, listIngestionJobs, listKnowledgeBases, listPrompts, listTagsForResource, prepareAgent, prepareFlow, shutdown, startIngestionJob, tagResource, untagResource, updateAgent, updateAgentActionGroup, updateAgentAlias, updateAgentKnowledgeBase, updateDataSource, updateFlow, updateFlowAlias, updateKnowledgeBase, updatePrompt
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
associateAgentKnowledgeBase, createAgent, createAgentActionGroup, createAgentAlias, createDataSource, createFlow, createFlowAlias, createFlowVersion, createKnowledgeBase, createPrompt, createPromptVersion, deleteAgent, deleteAgentActionGroup, deleteAgentAlias, deleteAgentVersion, deleteDataSource, deleteFlow, deleteFlowAlias, deleteFlowVersion, deleteKnowledgeBase, deletePrompt, disassociateAgentKnowledgeBase, getAgent, getAgentActionGroup, getAgentAlias, getAgentKnowledgeBase, getAgentVersion, getCachedResponseMetadata, getDataSource, getFlow, getFlowAlias, getFlowVersion, getIngestionJob, getKnowledgeBase, getPrompt, listAgentActionGroups, listAgentAliases, listAgentKnowledgeBases, listAgents, listAgentVersions, listDataSources, listFlowAliases, listFlows, listFlowVersions, listIngestionJobs, listKnowledgeBases, listPrompts, listTagsForResource, prepareAgent, prepareFlow, shutdown, startIngestionJob, tagResource, untagResource, updateAgent, updateAgentActionGroup, updateAgentAlias, updateAgentKnowledgeBase, updateDataSource, updateFlow, updateFlowAlias, updateKnowledgeBase, updatePrompt
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 AWSBedrockAgentAsync
public 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 AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Creates 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 enable your agent to retain conversational context across multiple sessions, include a
memoryConfiguration
object. For more information, see Configure memory.
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 AWSBedrockAgentAsync
public Future<CreateAgentResult> createAgentAsync(CreateAgentRequest request, AsyncHandler<CreateAgentRequest,CreateAgentResult> asyncHandler)
AWSBedrockAgentAsync
Creates 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 enable your agent to retain conversational context across multiple sessions, include a
memoryConfiguration
object. For more information, see Configure memory.
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 AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Creates 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
.
To allow your agent to generate, run, and troubleshoot code when trying to complete a task, add an action group
with the parentActionGroupSignature
field set to AMAZON.CodeInterpreter
.
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 AWSBedrockAgentAsync
public Future<CreateAgentActionGroupResult> createAgentActionGroupAsync(CreateAgentActionGroupRequest request, AsyncHandler<CreateAgentActionGroupRequest,CreateAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsync
Creates 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
.
To allow your agent to generate, run, and troubleshoot code when trying to complete a task, add an action group
with the parentActionGroupSignature
field set to AMAZON.CodeInterpreter
.
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 AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Creates an alias of an agent that can be used to deploy the agent.
createAgentAliasAsync
in interface AWSBedrockAgentAsync
public Future<CreateAgentAliasResult> createAgentAliasAsync(CreateAgentAliasRequest request, AsyncHandler<CreateAgentAliasRequest,CreateAgentAliasResult> asyncHandler)
AWSBedrockAgentAsync
Creates an alias of an agent that can be used to deploy the agent.
createAgentAliasAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Creates a data source connector for a knowledge base.
You can't change the chunkingConfiguration
after you create the data source connector.
createDataSourceAsync
in interface AWSBedrockAgentAsync
public Future<CreateDataSourceResult> createDataSourceAsync(CreateDataSourceRequest request, AsyncHandler<CreateDataSourceRequest,CreateDataSourceResult> asyncHandler)
AWSBedrockAgentAsync
Creates a data source connector for a knowledge base.
You can't change the chunkingConfiguration
after you create the data source connector.
createDataSourceAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<CreateFlowResult> createFlowAsync(CreateFlowRequest request)
AWSBedrockAgentAsync
Creates a prompt flow that you can use to send an input through various steps to yield an output. Configure nodes, each of which corresponds to a step of the flow, and create connections between the nodes to create paths to different outputs. For more information, see How it works and Create a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
createFlowAsync
in interface AWSBedrockAgentAsync
public Future<CreateFlowResult> createFlowAsync(CreateFlowRequest request, AsyncHandler<CreateFlowRequest,CreateFlowResult> asyncHandler)
AWSBedrockAgentAsync
Creates a prompt flow that you can use to send an input through various steps to yield an output. Configure nodes, each of which corresponds to a step of the flow, and create connections between the nodes to create paths to different outputs. For more information, see How it works and Create a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
createFlowAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<CreateFlowAliasResult> createFlowAliasAsync(CreateFlowAliasRequest request)
AWSBedrockAgentAsync
Creates an alias of a flow for deployment. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
createFlowAliasAsync
in interface AWSBedrockAgentAsync
public Future<CreateFlowAliasResult> createFlowAliasAsync(CreateFlowAliasRequest request, AsyncHandler<CreateFlowAliasRequest,CreateFlowAliasResult> asyncHandler)
AWSBedrockAgentAsync
Creates an alias of a flow for deployment. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
createFlowAliasAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<CreateFlowVersionResult> createFlowVersionAsync(CreateFlowVersionRequest request)
AWSBedrockAgentAsync
Creates a version of the flow that you can deploy. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
createFlowVersionAsync
in interface AWSBedrockAgentAsync
public Future<CreateFlowVersionResult> createFlowVersionAsync(CreateFlowVersionRequest request, AsyncHandler<CreateFlowVersionRequest,CreateFlowVersionResult> asyncHandler)
AWSBedrockAgentAsync
Creates a version of the flow that you can deploy. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
createFlowVersionAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Creates 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 AWSBedrockAgentAsync
public Future<CreateKnowledgeBaseResult> createKnowledgeBaseAsync(CreateKnowledgeBaseRequest request, AsyncHandler<CreateKnowledgeBaseRequest,CreateKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Creates 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 AWSBedrockAgentAsync
asyncHandler
- 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<CreatePromptResult> createPromptAsync(CreatePromptRequest request)
AWSBedrockAgentAsync
Creates a prompt in your prompt library that you can add to a flow. For more information, see Prompt management in Amazon Bedrock, Create a prompt using Prompt management and Prompt flows in Amazon Bedrock in the Amazon Bedrock User Guide.
createPromptAsync
in interface AWSBedrockAgentAsync
public Future<CreatePromptResult> createPromptAsync(CreatePromptRequest request, AsyncHandler<CreatePromptRequest,CreatePromptResult> asyncHandler)
AWSBedrockAgentAsync
Creates a prompt in your prompt library that you can add to a flow. For more information, see Prompt management in Amazon Bedrock, Create a prompt using Prompt management and Prompt flows in Amazon Bedrock in the Amazon Bedrock User Guide.
createPromptAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<CreatePromptVersionResult> createPromptVersionAsync(CreatePromptVersionRequest request)
AWSBedrockAgentAsync
Creates a static snapshot of your prompt that can be deployed to production. For more information, see Deploy prompts using Prompt management by creating versions in the Amazon Bedrock User Guide.
createPromptVersionAsync
in interface AWSBedrockAgentAsync
public Future<CreatePromptVersionResult> createPromptVersionAsync(CreatePromptVersionRequest request, AsyncHandler<CreatePromptVersionRequest,CreatePromptVersionResult> asyncHandler)
AWSBedrockAgentAsync
Creates a static snapshot of your prompt that can be deployed to production. For more information, see Deploy prompts using Prompt management by creating versions in the Amazon Bedrock User Guide.
createPromptVersionAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Deletes an agent.
deleteAgentAsync
in interface AWSBedrockAgentAsync
public Future<DeleteAgentResult> deleteAgentAsync(DeleteAgentRequest request, AsyncHandler<DeleteAgentRequest,DeleteAgentResult> asyncHandler)
AWSBedrockAgentAsync
Deletes an agent.
deleteAgentAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Deletes an action group in an agent.
deleteAgentActionGroupAsync
in interface AWSBedrockAgentAsync
public Future<DeleteAgentActionGroupResult> deleteAgentActionGroupAsync(DeleteAgentActionGroupRequest request, AsyncHandler<DeleteAgentActionGroupRequest,DeleteAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsync
Deletes an action group in an agent.
deleteAgentActionGroupAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Deletes an alias of an agent.
deleteAgentAliasAsync
in interface AWSBedrockAgentAsync
public Future<DeleteAgentAliasResult> deleteAgentAliasAsync(DeleteAgentAliasRequest request, AsyncHandler<DeleteAgentAliasRequest,DeleteAgentAliasResult> asyncHandler)
AWSBedrockAgentAsync
Deletes an alias of an agent.
deleteAgentAliasAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Deletes a version of an agent.
deleteAgentVersionAsync
in interface AWSBedrockAgentAsync
public Future<DeleteAgentVersionResult> deleteAgentVersionAsync(DeleteAgentVersionRequest request, AsyncHandler<DeleteAgentVersionRequest,DeleteAgentVersionResult> asyncHandler)
AWSBedrockAgentAsync
Deletes a version of an agent.
deleteAgentVersionAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Deletes a data source from a knowledge base.
deleteDataSourceAsync
in interface AWSBedrockAgentAsync
public Future<DeleteDataSourceResult> deleteDataSourceAsync(DeleteDataSourceRequest request, AsyncHandler<DeleteDataSourceRequest,DeleteDataSourceResult> asyncHandler)
AWSBedrockAgentAsync
Deletes a data source from a knowledge base.
deleteDataSourceAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<DeleteFlowResult> deleteFlowAsync(DeleteFlowRequest request)
AWSBedrockAgentAsync
Deletes a flow.
deleteFlowAsync
in interface AWSBedrockAgentAsync
public Future<DeleteFlowResult> deleteFlowAsync(DeleteFlowRequest request, AsyncHandler<DeleteFlowRequest,DeleteFlowResult> asyncHandler)
AWSBedrockAgentAsync
Deletes a flow.
deleteFlowAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<DeleteFlowAliasResult> deleteFlowAliasAsync(DeleteFlowAliasRequest request)
AWSBedrockAgentAsync
Deletes an alias of a flow.
deleteFlowAliasAsync
in interface AWSBedrockAgentAsync
public Future<DeleteFlowAliasResult> deleteFlowAliasAsync(DeleteFlowAliasRequest request, AsyncHandler<DeleteFlowAliasRequest,DeleteFlowAliasResult> asyncHandler)
AWSBedrockAgentAsync
Deletes an alias of a flow.
deleteFlowAliasAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<DeleteFlowVersionResult> deleteFlowVersionAsync(DeleteFlowVersionRequest request)
AWSBedrockAgentAsync
Deletes a version of a flow.
deleteFlowVersionAsync
in interface AWSBedrockAgentAsync
public Future<DeleteFlowVersionResult> deleteFlowVersionAsync(DeleteFlowVersionRequest request, AsyncHandler<DeleteFlowVersionRequest,DeleteFlowVersionResult> asyncHandler)
AWSBedrockAgentAsync
Deletes a version of a flow.
deleteFlowVersionAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Deletes 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 AWSBedrockAgentAsync
public Future<DeleteKnowledgeBaseResult> deleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest request, AsyncHandler<DeleteKnowledgeBaseRequest,DeleteKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Deletes 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 AWSBedrockAgentAsync
asyncHandler
- 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<DeletePromptResult> deletePromptAsync(DeletePromptRequest request)
AWSBedrockAgentAsync
Deletes a prompt or a prompt version from the Prompt management tool. For more information, see Delete prompts from the Prompt management tool and Delete a version of a prompt from the Prompt management tool in the Amazon Bedrock User Guide.
deletePromptAsync
in interface AWSBedrockAgentAsync
public Future<DeletePromptResult> deletePromptAsync(DeletePromptRequest request, AsyncHandler<DeletePromptRequest,DeletePromptResult> asyncHandler)
AWSBedrockAgentAsync
Deletes a prompt or a prompt version from the Prompt management tool. For more information, see Delete prompts from the Prompt management tool and Delete a version of a prompt from the Prompt management tool in the Amazon Bedrock User Guide.
deletePromptAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Disassociates a knowledge base from an agent.
disassociateAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<DisassociateAgentKnowledgeBaseResult> disassociateAgentKnowledgeBaseAsync(DisassociateAgentKnowledgeBaseRequest request, AsyncHandler<DisassociateAgentKnowledgeBaseRequest,DisassociateAgentKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Disassociates a knowledge base from an agent.
disassociateAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Gets information about an agent.
getAgentAsync
in interface AWSBedrockAgentAsync
public Future<GetAgentResult> getAgentAsync(GetAgentRequest request, AsyncHandler<GetAgentRequest,GetAgentResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about an agent.
getAgentAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Gets information about an action group for an agent.
getAgentActionGroupAsync
in interface AWSBedrockAgentAsync
public Future<GetAgentActionGroupResult> getAgentActionGroupAsync(GetAgentActionGroupRequest request, AsyncHandler<GetAgentActionGroupRequest,GetAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about an action group for an agent.
getAgentActionGroupAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Gets information about an alias of an agent.
getAgentAliasAsync
in interface AWSBedrockAgentAsync
public Future<GetAgentAliasResult> getAgentAliasAsync(GetAgentAliasRequest request, AsyncHandler<GetAgentAliasRequest,GetAgentAliasResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about an alias of an agent.
getAgentAliasAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Gets information about a knowledge base associated with an agent.
getAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<GetAgentKnowledgeBaseResult> getAgentKnowledgeBaseAsync(GetAgentKnowledgeBaseRequest request, AsyncHandler<GetAgentKnowledgeBaseRequest,GetAgentKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about a knowledge base associated with an agent.
getAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Gets details about a version of an agent.
getAgentVersionAsync
in interface AWSBedrockAgentAsync
public Future<GetAgentVersionResult> getAgentVersionAsync(GetAgentVersionRequest request, AsyncHandler<GetAgentVersionRequest,GetAgentVersionResult> asyncHandler)
AWSBedrockAgentAsync
Gets details about a version of an agent.
getAgentVersionAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Gets information about a data source.
getDataSourceAsync
in interface AWSBedrockAgentAsync
public Future<GetDataSourceResult> getDataSourceAsync(GetDataSourceRequest request, AsyncHandler<GetDataSourceRequest,GetDataSourceResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about a data source.
getDataSourceAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<GetFlowResult> getFlowAsync(GetFlowRequest request)
AWSBedrockAgentAsync
Retrieves information about a flow. For more information, see Manage a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
getFlowAsync
in interface AWSBedrockAgentAsync
public Future<GetFlowResult> getFlowAsync(GetFlowRequest request, AsyncHandler<GetFlowRequest,GetFlowResult> asyncHandler)
AWSBedrockAgentAsync
Retrieves information about a flow. For more information, see Manage a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
getFlowAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<GetFlowAliasResult> getFlowAliasAsync(GetFlowAliasRequest request)
AWSBedrockAgentAsync
Retrieves information about a flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
getFlowAliasAsync
in interface AWSBedrockAgentAsync
public Future<GetFlowAliasResult> getFlowAliasAsync(GetFlowAliasRequest request, AsyncHandler<GetFlowAliasRequest,GetFlowAliasResult> asyncHandler)
AWSBedrockAgentAsync
Retrieves information about a flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
getFlowAliasAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<GetFlowVersionResult> getFlowVersionAsync(GetFlowVersionRequest request)
AWSBedrockAgentAsync
Retrieves information about a version of a flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
getFlowVersionAsync
in interface AWSBedrockAgentAsync
public Future<GetFlowVersionResult> getFlowVersionAsync(GetFlowVersionRequest request, AsyncHandler<GetFlowVersionRequest,GetFlowVersionResult> asyncHandler)
AWSBedrockAgentAsync
Retrieves information about a version of a flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
getFlowVersionAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Gets information about a ingestion job, in which a data source is added to a knowledge base.
getIngestionJobAsync
in interface AWSBedrockAgentAsync
public Future<GetIngestionJobResult> getIngestionJobAsync(GetIngestionJobRequest request, AsyncHandler<GetIngestionJobRequest,GetIngestionJobResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about a ingestion job, in which a data source is added to a knowledge base.
getIngestionJobAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Gets information about a knoweldge base.
getKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<GetKnowledgeBaseResult> getKnowledgeBaseAsync(GetKnowledgeBaseRequest request, AsyncHandler<GetKnowledgeBaseRequest,GetKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about a knoweldge base.
getKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<GetPromptResult> getPromptAsync(GetPromptRequest request)
AWSBedrockAgentAsync
Retrieves information about a prompt or a version of it. For more information, see View information about prompts using Prompt management and View information about a version of your prompt in the Amazon Bedrock User Guide.
getPromptAsync
in interface AWSBedrockAgentAsync
public Future<GetPromptResult> getPromptAsync(GetPromptRequest request, AsyncHandler<GetPromptRequest,GetPromptResult> asyncHandler)
AWSBedrockAgentAsync
Retrieves information about a prompt or a version of it. For more information, see View information about prompts using Prompt management and View information about a version of your prompt in the Amazon Bedrock User Guide.
getPromptAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Lists the action groups for an agent and information about each one.
listAgentActionGroupsAsync
in interface AWSBedrockAgentAsync
public Future<ListAgentActionGroupsResult> listAgentActionGroupsAsync(ListAgentActionGroupsRequest request, AsyncHandler<ListAgentActionGroupsRequest,ListAgentActionGroupsResult> asyncHandler)
AWSBedrockAgentAsync
Lists the action groups for an agent and information about each one.
listAgentActionGroupsAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Lists the aliases of an agent and information about each one.
listAgentAliasesAsync
in interface AWSBedrockAgentAsync
public Future<ListAgentAliasesResult> listAgentAliasesAsync(ListAgentAliasesRequest request, AsyncHandler<ListAgentAliasesRequest,ListAgentAliasesResult> asyncHandler)
AWSBedrockAgentAsync
Lists the aliases of an agent and information about each one.
listAgentAliasesAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Lists knowledge bases associated with an agent and information about each one.
listAgentKnowledgeBasesAsync
in interface AWSBedrockAgentAsync
public Future<ListAgentKnowledgeBasesResult> listAgentKnowledgeBasesAsync(ListAgentKnowledgeBasesRequest request, AsyncHandler<ListAgentKnowledgeBasesRequest,ListAgentKnowledgeBasesResult> asyncHandler)
AWSBedrockAgentAsync
Lists knowledge bases associated with an agent and information about each one.
listAgentKnowledgeBasesAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Lists the versions of an agent and information about each version.
listAgentVersionsAsync
in interface AWSBedrockAgentAsync
public Future<ListAgentVersionsResult> listAgentVersionsAsync(ListAgentVersionsRequest request, AsyncHandler<ListAgentVersionsRequest,ListAgentVersionsResult> asyncHandler)
AWSBedrockAgentAsync
Lists the versions of an agent and information about each version.
listAgentVersionsAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Lists the agents belonging to an account and information about each agent.
listAgentsAsync
in interface AWSBedrockAgentAsync
public Future<ListAgentsResult> listAgentsAsync(ListAgentsRequest request, AsyncHandler<ListAgentsRequest,ListAgentsResult> asyncHandler)
AWSBedrockAgentAsync
Lists the agents belonging to an account and information about each agent.
listAgentsAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Lists the data sources in a knowledge base and information about each one.
listDataSourcesAsync
in interface AWSBedrockAgentAsync
public Future<ListDataSourcesResult> listDataSourcesAsync(ListDataSourcesRequest request, AsyncHandler<ListDataSourcesRequest,ListDataSourcesResult> asyncHandler)
AWSBedrockAgentAsync
Lists the data sources in a knowledge base and information about each one.
listDataSourcesAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<ListFlowAliasesResult> listFlowAliasesAsync(ListFlowAliasesRequest request)
AWSBedrockAgentAsync
Returns a list of aliases for a flow.
listFlowAliasesAsync
in interface AWSBedrockAgentAsync
public Future<ListFlowAliasesResult> listFlowAliasesAsync(ListFlowAliasesRequest request, AsyncHandler<ListFlowAliasesRequest,ListFlowAliasesResult> asyncHandler)
AWSBedrockAgentAsync
Returns a list of aliases for a flow.
listFlowAliasesAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<ListFlowVersionsResult> listFlowVersionsAsync(ListFlowVersionsRequest request)
AWSBedrockAgentAsync
Returns a list of information about each flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
listFlowVersionsAsync
in interface AWSBedrockAgentAsync
public Future<ListFlowVersionsResult> listFlowVersionsAsync(ListFlowVersionsRequest request, AsyncHandler<ListFlowVersionsRequest,ListFlowVersionsResult> asyncHandler)
AWSBedrockAgentAsync
Returns a list of information about each flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
listFlowVersionsAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<ListFlowsResult> listFlowsAsync(ListFlowsRequest request)
AWSBedrockAgentAsync
Returns a list of flows and information about each flow. For more information, see Manage a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
listFlowsAsync
in interface AWSBedrockAgentAsync
public Future<ListFlowsResult> listFlowsAsync(ListFlowsRequest request, AsyncHandler<ListFlowsRequest,ListFlowsResult> asyncHandler)
AWSBedrockAgentAsync
Returns a list of flows and information about each flow. For more information, see Manage a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
listFlowsAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Lists the ingestion jobs for a data source and information about each of them.
listIngestionJobsAsync
in interface AWSBedrockAgentAsync
public Future<ListIngestionJobsResult> listIngestionJobsAsync(ListIngestionJobsRequest request, AsyncHandler<ListIngestionJobsRequest,ListIngestionJobsResult> asyncHandler)
AWSBedrockAgentAsync
Lists the ingestion jobs for a data source and information about each of them.
listIngestionJobsAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Lists the knowledge bases in an account and information about each of them.
listKnowledgeBasesAsync
in interface AWSBedrockAgentAsync
public Future<ListKnowledgeBasesResult> listKnowledgeBasesAsync(ListKnowledgeBasesRequest request, AsyncHandler<ListKnowledgeBasesRequest,ListKnowledgeBasesResult> asyncHandler)
AWSBedrockAgentAsync
Lists the knowledge bases in an account and information about each of them.
listKnowledgeBasesAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<ListPromptsResult> listPromptsAsync(ListPromptsRequest request)
AWSBedrockAgentAsync
Returns a list of prompts from the Prompt management tool and information about each prompt. For more information, see View information about prompts using Prompt management in the Amazon Bedrock User Guide.
listPromptsAsync
in interface AWSBedrockAgentAsync
public Future<ListPromptsResult> listPromptsAsync(ListPromptsRequest request, AsyncHandler<ListPromptsRequest,ListPromptsResult> asyncHandler)
AWSBedrockAgentAsync
Returns a list of prompts from the Prompt management tool and information about each prompt. For more information, see View information about prompts using Prompt management in the Amazon Bedrock User Guide.
listPromptsAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
List all the tags for the resource you specify.
listTagsForResourceAsync
in interface AWSBedrockAgentAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSBedrockAgentAsync
List all the tags for the resource you specify.
listTagsForResourceAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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 AWSBedrockAgentAsync
public 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 AWSBedrockAgentAsync
asyncHandler
- 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<PrepareFlowResult> prepareFlowAsync(PrepareFlowRequest request)
AWSBedrockAgentAsync
Prepares the DRAFT
version of a flow so that it can be invoked. For more information, see Test a flow in Amazon Bedrock in
the Amazon Bedrock User Guide.
prepareFlowAsync
in interface AWSBedrockAgentAsync
public Future<PrepareFlowResult> prepareFlowAsync(PrepareFlowRequest request, AsyncHandler<PrepareFlowRequest,PrepareFlowResult> asyncHandler)
AWSBedrockAgentAsync
Prepares the DRAFT
version of a flow so that it can be invoked. For more information, see Test a flow in Amazon Bedrock in
the Amazon Bedrock User Guide.
prepareFlowAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Begins an ingestion job, in which a data source is added to a knowledge base.
startIngestionJobAsync
in interface AWSBedrockAgentAsync
public Future<StartIngestionJobResult> startIngestionJobAsync(StartIngestionJobRequest request, AsyncHandler<StartIngestionJobRequest,StartIngestionJobResult> asyncHandler)
AWSBedrockAgentAsync
Begins an ingestion job, in which a data source is added to a knowledge base.
startIngestionJobAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
tagResourceAsync
in interface AWSBedrockAgentAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSBedrockAgentAsync
Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
tagResourceAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Remove tags from a resource.
untagResourceAsync
in interface AWSBedrockAgentAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSBedrockAgentAsync
Remove tags from a resource.
untagResourceAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Updates the configuration of an agent.
updateAgentAsync
in interface AWSBedrockAgentAsync
public Future<UpdateAgentResult> updateAgentAsync(UpdateAgentRequest request, AsyncHandler<UpdateAgentRequest,UpdateAgentResult> asyncHandler)
AWSBedrockAgentAsync
Updates the configuration of an agent.
updateAgentAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Updates the configuration for an action group for an agent.
updateAgentActionGroupAsync
in interface AWSBedrockAgentAsync
public Future<UpdateAgentActionGroupResult> updateAgentActionGroupAsync(UpdateAgentActionGroupRequest request, AsyncHandler<UpdateAgentActionGroupRequest,UpdateAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsync
Updates the configuration for an action group for an agent.
updateAgentActionGroupAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Updates configurations for an alias of an agent.
updateAgentAliasAsync
in interface AWSBedrockAgentAsync
public Future<UpdateAgentAliasResult> updateAgentAliasAsync(UpdateAgentAliasRequest request, AsyncHandler<UpdateAgentAliasRequest,UpdateAgentAliasResult> asyncHandler)
AWSBedrockAgentAsync
Updates configurations for an alias of an agent.
updateAgentAliasAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Updates the configuration for a knowledge base that has been associated with an agent.
updateAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<UpdateAgentKnowledgeBaseResult> updateAgentKnowledgeBaseAsync(UpdateAgentKnowledgeBaseRequest request, AsyncHandler<UpdateAgentKnowledgeBaseRequest,UpdateAgentKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Updates the configuration for a knowledge base that has been associated with an agent.
updateAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Updates the configurations for a data source connector.
You can't change the chunkingConfiguration
after you create the data source connector. Specify the
existing chunkingConfiguration
.
updateDataSourceAsync
in interface AWSBedrockAgentAsync
public Future<UpdateDataSourceResult> updateDataSourceAsync(UpdateDataSourceRequest request, AsyncHandler<UpdateDataSourceRequest,UpdateDataSourceResult> asyncHandler)
AWSBedrockAgentAsync
Updates the configurations for a data source connector.
You can't change the chunkingConfiguration
after you create the data source connector. Specify the
existing chunkingConfiguration
.
updateDataSourceAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<UpdateFlowResult> updateFlowAsync(UpdateFlowRequest request)
AWSBedrockAgentAsync
Modifies a flow. Include both fields that you want to keep and fields that you want to change. For more information, see How it works and Create a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
updateFlowAsync
in interface AWSBedrockAgentAsync
public Future<UpdateFlowResult> updateFlowAsync(UpdateFlowRequest request, AsyncHandler<UpdateFlowRequest,UpdateFlowResult> asyncHandler)
AWSBedrockAgentAsync
Modifies a flow. Include both fields that you want to keep and fields that you want to change. For more information, see How it works and Create a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
updateFlowAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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<UpdateFlowAliasResult> updateFlowAliasAsync(UpdateFlowAliasRequest request)
AWSBedrockAgentAsync
Modifies the alias of a flow. Include both fields that you want to keep and ones that you want to change. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
updateFlowAliasAsync
in interface AWSBedrockAgentAsync
public Future<UpdateFlowAliasResult> updateFlowAliasAsync(UpdateFlowAliasRequest request, AsyncHandler<UpdateFlowAliasRequest,UpdateFlowAliasResult> asyncHandler)
AWSBedrockAgentAsync
Modifies the alias of a flow. Include both fields that you want to keep and ones that you want to change. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
updateFlowAliasAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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)
AWSBedrockAgentAsync
Updates 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 AWSBedrockAgentAsync
public Future<UpdateKnowledgeBaseResult> updateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest request, AsyncHandler<UpdateKnowledgeBaseRequest,UpdateKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Updates 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 AWSBedrockAgentAsync
asyncHandler
- 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<UpdatePromptResult> updatePromptAsync(UpdatePromptRequest request)
AWSBedrockAgentAsync
Modifies a prompt in your prompt library. Include both fields that you want to keep and fields that you want to replace. For more information, see Prompt management in Amazon Bedrock and Edit prompts in your prompt library in the Amazon Bedrock User Guide.
updatePromptAsync
in interface AWSBedrockAgentAsync
public Future<UpdatePromptResult> updatePromptAsync(UpdatePromptRequest request, AsyncHandler<UpdatePromptRequest,UpdatePromptResult> asyncHandler)
AWSBedrockAgentAsync
Modifies a prompt in your prompt library. Include both fields that you want to keep and fields that you want to replace. For more information, see Prompt management in Amazon Bedrock and Edit prompts in your prompt library in the Amazon Bedrock User Guide.
updatePromptAsync
in interface AWSBedrockAgentAsync
asyncHandler
- 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.