Interface BedrockAgentCoreAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
Welcome to the Amazon Bedrock AgentCore Data Plane API reference. Data Plane actions process and handle data or workloads within Amazon Web Services services.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbatchCreateMemoryRecords(Consumer<BatchCreateMemoryRecordsRequest.Builder> batchCreateMemoryRecordsRequest) Creates multiple memory records in a single batch operation for the specified memory with custom content.batchCreateMemoryRecords(BatchCreateMemoryRecordsRequest batchCreateMemoryRecordsRequest) Creates multiple memory records in a single batch operation for the specified memory with custom content.batchDeleteMemoryRecords(Consumer<BatchDeleteMemoryRecordsRequest.Builder> batchDeleteMemoryRecordsRequest) Deletes multiple memory records in a single batch operation from the specified memory.batchDeleteMemoryRecords(BatchDeleteMemoryRecordsRequest batchDeleteMemoryRecordsRequest) Deletes multiple memory records in a single batch operation from the specified memory.batchUpdateMemoryRecords(Consumer<BatchUpdateMemoryRecordsRequest.Builder> batchUpdateMemoryRecordsRequest) Updates multiple memory records with custom content in a single batch operation within the specified memory.batchUpdateMemoryRecords(BatchUpdateMemoryRecordsRequest batchUpdateMemoryRecordsRequest) Updates multiple memory records with custom content in a single batch operation within the specified memory.builder()Create a builder that can be used to configure and create aBedrockAgentCoreAsyncClient.completeResourceTokenAuth(Consumer<CompleteResourceTokenAuthRequest.Builder> completeResourceTokenAuthRequest) Confirms the user authentication session for obtaining OAuth2.0 tokens for a resource.completeResourceTokenAuth(CompleteResourceTokenAuthRequest completeResourceTokenAuthRequest) Confirms the user authentication session for obtaining OAuth2.0 tokens for a resource.static BedrockAgentCoreAsyncClientcreate()Create aBedrockAgentCoreAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<CreateAbTestResponse> createABTest(Consumer<CreateAbTestRequest.Builder> createAbTestRequest) Creates an A/B test for comparing agent configurations.default CompletableFuture<CreateAbTestResponse> createABTest(CreateAbTestRequest createAbTestRequest) Creates an A/B test for comparing agent configurations.default CompletableFuture<CreateEventResponse> createEvent(Consumer<CreateEventRequest.Builder> createEventRequest) Creates an event in an AgentCore Memory resource.default CompletableFuture<CreateEventResponse> createEvent(CreateEventRequest createEventRequest) Creates an event in an AgentCore Memory resource.createPaymentInstrument(Consumer<CreatePaymentInstrumentRequest.Builder> createPaymentInstrumentRequest) Create a new payment instrument for a connector.createPaymentInstrument(CreatePaymentInstrumentRequest createPaymentInstrumentRequest) Create a new payment instrument for a connector.createPaymentSession(Consumer<CreatePaymentSessionRequest.Builder> createPaymentSessionRequest) Create a new payment session.createPaymentSession(CreatePaymentSessionRequest createPaymentSessionRequest) Create a new payment session.default CompletableFuture<DeleteAbTestResponse> deleteABTest(Consumer<DeleteAbTestRequest.Builder> deleteAbTestRequest) Deletes an A/B test and its associated gateway rules.default CompletableFuture<DeleteAbTestResponse> deleteABTest(DeleteAbTestRequest deleteAbTestRequest) Deletes an A/B test and its associated gateway rules.deleteBatchEvaluation(Consumer<DeleteBatchEvaluationRequest.Builder> deleteBatchEvaluationRequest) Deletes a batch evaluation and its associated results.deleteBatchEvaluation(DeleteBatchEvaluationRequest deleteBatchEvaluationRequest) Deletes a batch evaluation and its associated results.default CompletableFuture<DeleteEventResponse> deleteEvent(Consumer<DeleteEventRequest.Builder> deleteEventRequest) Deletes an event from an AgentCore Memory resource.default CompletableFuture<DeleteEventResponse> deleteEvent(DeleteEventRequest deleteEventRequest) Deletes an event from an AgentCore Memory resource.deleteMemoryRecord(Consumer<DeleteMemoryRecordRequest.Builder> deleteMemoryRecordRequest) Deletes a memory record from an AgentCore Memory resource.deleteMemoryRecord(DeleteMemoryRecordRequest deleteMemoryRecordRequest) Deletes a memory record from an AgentCore Memory resource.deletePaymentInstrument(Consumer<DeletePaymentInstrumentRequest.Builder> deletePaymentInstrumentRequest) Deletes a payment instrument.deletePaymentInstrument(DeletePaymentInstrumentRequest deletePaymentInstrumentRequest) Deletes a payment instrument.deletePaymentSession(Consumer<DeletePaymentSessionRequest.Builder> deletePaymentSessionRequest) Deletes a payment session.deletePaymentSession(DeletePaymentSessionRequest deletePaymentSessionRequest) Deletes a payment session.deleteRecommendation(Consumer<DeleteRecommendationRequest.Builder> deleteRecommendationRequest) Deletes a recommendation and its associated results.deleteRecommendation(DeleteRecommendationRequest deleteRecommendationRequest) Deletes a recommendation and its associated results.default CompletableFuture<EvaluateResponse> evaluate(Consumer<EvaluateRequest.Builder> evaluateRequest) Performs on-demand evaluation of agent traces using a specified evaluator.default CompletableFuture<EvaluateResponse> evaluate(EvaluateRequest evaluateRequest) Performs on-demand evaluation of agent traces using a specified evaluator.default CompletableFuture<GetAbTestResponse> getABTest(Consumer<GetAbTestRequest.Builder> getAbTestRequest) Retrieves detailed information about an A/B test, including its configuration, status, and statistical results.default CompletableFuture<GetAbTestResponse> getABTest(GetAbTestRequest getAbTestRequest) Retrieves detailed information about an A/B test, including its configuration, status, and statistical results.default CompletableFuture<GetAgentCardResponse> getAgentCard(Consumer<GetAgentCardRequest.Builder> getAgentCardRequest) Retrieves the A2A agent card associated with an AgentCore Runtime agent.default CompletableFuture<GetAgentCardResponse> getAgentCard(GetAgentCardRequest getAgentCardRequest) Retrieves the A2A agent card associated with an AgentCore Runtime agent.getBatchEvaluation(Consumer<GetBatchEvaluationRequest.Builder> getBatchEvaluationRequest) Retrieves detailed information about a batch evaluation, including its status, configuration, results, and any error details.getBatchEvaluation(GetBatchEvaluationRequest getBatchEvaluationRequest) Retrieves detailed information about a batch evaluation, including its status, configuration, results, and any error details.getBrowserSession(Consumer<GetBrowserSessionRequest.Builder> getBrowserSessionRequest) Retrieves detailed information about a specific browser session in Amazon Bedrock AgentCore.getBrowserSession(GetBrowserSessionRequest getBrowserSessionRequest) Retrieves detailed information about a specific browser session in Amazon Bedrock AgentCore.getCodeInterpreterSession(Consumer<GetCodeInterpreterSessionRequest.Builder> getCodeInterpreterSessionRequest) Retrieves detailed information about a specific code interpreter session in Amazon Bedrock AgentCore.getCodeInterpreterSession(GetCodeInterpreterSessionRequest getCodeInterpreterSessionRequest) Retrieves detailed information about a specific code interpreter session in Amazon Bedrock AgentCore.default CompletableFuture<GetEventResponse> getEvent(Consumer<GetEventRequest.Builder> getEventRequest) Retrieves information about a specific event in an AgentCore Memory resource.default CompletableFuture<GetEventResponse> getEvent(GetEventRequest getEventRequest) Retrieves information about a specific event in an AgentCore Memory resource.default CompletableFuture<GetMemoryRecordResponse> getMemoryRecord(Consumer<GetMemoryRecordRequest.Builder> getMemoryRecordRequest) Retrieves a specific memory record from an AgentCore Memory resource.default CompletableFuture<GetMemoryRecordResponse> getMemoryRecord(GetMemoryRecordRequest getMemoryRecordRequest) Retrieves a specific memory record from an AgentCore Memory resource.getPaymentInstrument(Consumer<GetPaymentInstrumentRequest.Builder> getPaymentInstrumentRequest) Get a payment instrument by ID.getPaymentInstrument(GetPaymentInstrumentRequest getPaymentInstrumentRequest) Get a payment instrument by ID.getPaymentInstrumentBalance(Consumer<GetPaymentInstrumentBalanceRequest.Builder> getPaymentInstrumentBalanceRequest) Get the balance of a payment instrument.getPaymentInstrumentBalance(GetPaymentInstrumentBalanceRequest getPaymentInstrumentBalanceRequest) Get the balance of a payment instrument.getPaymentSession(Consumer<GetPaymentSessionRequest.Builder> getPaymentSessionRequest) Get a payment session.getPaymentSession(GetPaymentSessionRequest getPaymentSessionRequest) Get a payment session.getRecommendation(Consumer<GetRecommendationRequest.Builder> getRecommendationRequest) Retrieves detailed information about a recommendation, including its configuration, status, and results.getRecommendation(GetRecommendationRequest getRecommendationRequest) Retrieves detailed information about a recommendation, including its configuration, status, and results.getResourceApiKey(Consumer<GetResourceApiKeyRequest.Builder> getResourceApiKeyRequest) Retrieves the API key associated with an API key credential provider.getResourceApiKey(GetResourceApiKeyRequest getResourceApiKeyRequest) Retrieves the API key associated with an API key credential provider.getResourceOauth2Token(Consumer<GetResourceOauth2TokenRequest.Builder> getResourceOauth2TokenRequest) Returns the OAuth 2.0 token of the provided resource.getResourceOauth2Token(GetResourceOauth2TokenRequest getResourceOauth2TokenRequest) Returns the OAuth 2.0 token of the provided resource.getResourcePaymentToken(Consumer<GetResourcePaymentTokenRequest.Builder> getResourcePaymentTokenRequest) Generates authentication tokens for payment providers that use vendor-specific authentication mechanisms.getResourcePaymentToken(GetResourcePaymentTokenRequest getResourcePaymentTokenRequest) Generates authentication tokens for payment providers that use vendor-specific authentication mechanisms.getWorkloadAccessToken(Consumer<GetWorkloadAccessTokenRequest.Builder> getWorkloadAccessTokenRequest) Obtains a workload access token for agentic workloads not acting on behalf of a user.getWorkloadAccessToken(GetWorkloadAccessTokenRequest getWorkloadAccessTokenRequest) Obtains a workload access token for agentic workloads not acting on behalf of a user.getWorkloadAccessTokenForJWT(Consumer<GetWorkloadAccessTokenForJwtRequest.Builder> getWorkloadAccessTokenForJwtRequest) Obtains a workload access token for agentic workloads acting on behalf of a user, using a JWT token.getWorkloadAccessTokenForJWT(GetWorkloadAccessTokenForJwtRequest getWorkloadAccessTokenForJwtRequest) Obtains a workload access token for agentic workloads acting on behalf of a user, using a JWT token.getWorkloadAccessTokenForUserId(Consumer<GetWorkloadAccessTokenForUserIdRequest.Builder> getWorkloadAccessTokenForUserIdRequest) Obtains a workload access token for agentic workloads acting on behalf of a user, using the user's ID.getWorkloadAccessTokenForUserId(GetWorkloadAccessTokenForUserIdRequest getWorkloadAccessTokenForUserIdRequest) Obtains a workload access token for agentic workloads acting on behalf of a user, using the user's ID.invokeAgentRuntime(Consumer<InvokeAgentRuntimeRequest.Builder> invokeAgentRuntimeRequest, Path destinationPath) Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time.default <ReturnT> CompletableFuture<ReturnT> invokeAgentRuntime(Consumer<InvokeAgentRuntimeRequest.Builder> invokeAgentRuntimeRequest, AsyncResponseTransformer<InvokeAgentRuntimeResponse, ReturnT> asyncResponseTransformer) Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time.invokeAgentRuntime(InvokeAgentRuntimeRequest invokeAgentRuntimeRequest, Path destinationPath) Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time.default <ReturnT> CompletableFuture<ReturnT> invokeAgentRuntime(InvokeAgentRuntimeRequest invokeAgentRuntimeRequest, AsyncResponseTransformer<InvokeAgentRuntimeResponse, ReturnT> asyncResponseTransformer) Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time.default CompletableFuture<Void> invokeAgentRuntimeCommand(Consumer<InvokeAgentRuntimeCommandRequest.Builder> invokeAgentRuntimeCommandRequest, InvokeAgentRuntimeCommandResponseHandler asyncResponseHandler) Executes a command in a runtime session container and streams the output back to the caller.default CompletableFuture<Void> invokeAgentRuntimeCommand(InvokeAgentRuntimeCommandRequest invokeAgentRuntimeCommandRequest, InvokeAgentRuntimeCommandResponseHandler asyncResponseHandler) Executes a command in a runtime session container and streams the output back to the caller.default CompletableFuture<InvokeBrowserResponse> invokeBrowser(Consumer<InvokeBrowserRequest.Builder> invokeBrowserRequest) Invokes an operating system-level action on a browser session in Amazon Bedrock AgentCore.default CompletableFuture<InvokeBrowserResponse> invokeBrowser(InvokeBrowserRequest invokeBrowserRequest) Invokes an operating system-level action on a browser session in Amazon Bedrock AgentCore.default CompletableFuture<Void> invokeCodeInterpreter(Consumer<InvokeCodeInterpreterRequest.Builder> invokeCodeInterpreterRequest, InvokeCodeInterpreterResponseHandler asyncResponseHandler) Executes code within an active code interpreter session in Amazon Bedrock AgentCore.default CompletableFuture<Void> invokeCodeInterpreter(InvokeCodeInterpreterRequest invokeCodeInterpreterRequest, InvokeCodeInterpreterResponseHandler asyncResponseHandler) Executes code within an active code interpreter session in Amazon Bedrock AgentCore.default CompletableFuture<Void> invokeHarness(Consumer<InvokeHarnessRequest.Builder> invokeHarnessRequest, InvokeHarnessResponseHandler asyncResponseHandler) Operation to invoke a Harness.default CompletableFuture<Void> invokeHarness(InvokeHarnessRequest invokeHarnessRequest, InvokeHarnessResponseHandler asyncResponseHandler) Operation to invoke a Harness.default CompletableFuture<ListAbTestsResponse> listABTests(Consumer<ListAbTestsRequest.Builder> listAbTestsRequest) Lists all A/B tests in the account.default CompletableFuture<ListAbTestsResponse> listABTests(ListAbTestsRequest listAbTestsRequest) Lists all A/B tests in the account.default ListABTestsPublisherlistABTestsPaginator(Consumer<ListAbTestsRequest.Builder> listAbTestsRequest) This is a variant oflistABTests(software.amazon.awssdk.services.bedrockagentcore.model.ListAbTestsRequest)operation.default ListABTestsPublisherlistABTestsPaginator(ListAbTestsRequest listAbTestsRequest) This is a variant oflistABTests(software.amazon.awssdk.services.bedrockagentcore.model.ListAbTestsRequest)operation.default CompletableFuture<ListActorsResponse> listActors(Consumer<ListActorsRequest.Builder> listActorsRequest) Lists all actors in an AgentCore Memory resource.default CompletableFuture<ListActorsResponse> listActors(ListActorsRequest listActorsRequest) Lists all actors in an AgentCore Memory resource.default ListActorsPublisherlistActorsPaginator(Consumer<ListActorsRequest.Builder> listActorsRequest) This is a variant oflistActors(software.amazon.awssdk.services.bedrockagentcore.model.ListActorsRequest)operation.default ListActorsPublisherlistActorsPaginator(ListActorsRequest listActorsRequest) This is a variant oflistActors(software.amazon.awssdk.services.bedrockagentcore.model.ListActorsRequest)operation.listBatchEvaluations(Consumer<ListBatchEvaluationsRequest.Builder> listBatchEvaluationsRequest) Lists all batch evaluations in the account, providing summary information about each evaluation's status and configuration.listBatchEvaluations(ListBatchEvaluationsRequest listBatchEvaluationsRequest) Lists all batch evaluations in the account, providing summary information about each evaluation's status and configuration.default ListBatchEvaluationsPublisherlistBatchEvaluationsPaginator(Consumer<ListBatchEvaluationsRequest.Builder> listBatchEvaluationsRequest) This is a variant oflistBatchEvaluations(software.amazon.awssdk.services.bedrockagentcore.model.ListBatchEvaluationsRequest)operation.default ListBatchEvaluationsPublisherlistBatchEvaluationsPaginator(ListBatchEvaluationsRequest listBatchEvaluationsRequest) This is a variant oflistBatchEvaluations(software.amazon.awssdk.services.bedrockagentcore.model.ListBatchEvaluationsRequest)operation.listBrowserSessions(Consumer<ListBrowserSessionsRequest.Builder> listBrowserSessionsRequest) Retrieves a list of browser sessions in Amazon Bedrock AgentCore that match the specified criteria.listBrowserSessions(ListBrowserSessionsRequest listBrowserSessionsRequest) Retrieves a list of browser sessions in Amazon Bedrock AgentCore that match the specified criteria.listCodeInterpreterSessions(Consumer<ListCodeInterpreterSessionsRequest.Builder> listCodeInterpreterSessionsRequest) Retrieves a list of code interpreter sessions in Amazon Bedrock AgentCore that match the specified criteria.listCodeInterpreterSessions(ListCodeInterpreterSessionsRequest listCodeInterpreterSessionsRequest) Retrieves a list of code interpreter sessions in Amazon Bedrock AgentCore that match the specified criteria.default CompletableFuture<ListEventsResponse> listEvents(Consumer<ListEventsRequest.Builder> listEventsRequest) Lists events in an AgentCore Memory resource based on specified criteria.default CompletableFuture<ListEventsResponse> listEvents(ListEventsRequest listEventsRequest) Lists events in an AgentCore Memory resource based on specified criteria.default ListEventsPublisherlistEventsPaginator(Consumer<ListEventsRequest.Builder> listEventsRequest) This is a variant oflistEvents(software.amazon.awssdk.services.bedrockagentcore.model.ListEventsRequest)operation.default ListEventsPublisherlistEventsPaginator(ListEventsRequest listEventsRequest) This is a variant oflistEvents(software.amazon.awssdk.services.bedrockagentcore.model.ListEventsRequest)operation.listMemoryExtractionJobs(Consumer<ListMemoryExtractionJobsRequest.Builder> listMemoryExtractionJobsRequest) Lists all long-term memory extraction jobs that are eligible to be started with optional filtering.listMemoryExtractionJobs(ListMemoryExtractionJobsRequest listMemoryExtractionJobsRequest) Lists all long-term memory extraction jobs that are eligible to be started with optional filtering.listMemoryExtractionJobsPaginator(Consumer<ListMemoryExtractionJobsRequest.Builder> listMemoryExtractionJobsRequest) This is a variant oflistMemoryExtractionJobs(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryExtractionJobsRequest)operation.listMemoryExtractionJobsPaginator(ListMemoryExtractionJobsRequest listMemoryExtractionJobsRequest) This is a variant oflistMemoryExtractionJobs(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryExtractionJobsRequest)operation.listMemoryRecords(Consumer<ListMemoryRecordsRequest.Builder> listMemoryRecordsRequest) Lists memory records in an AgentCore Memory resource based on specified criteria.listMemoryRecords(ListMemoryRecordsRequest listMemoryRecordsRequest) Lists memory records in an AgentCore Memory resource based on specified criteria.default ListMemoryRecordsPublisherlistMemoryRecordsPaginator(Consumer<ListMemoryRecordsRequest.Builder> listMemoryRecordsRequest) This is a variant oflistMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryRecordsRequest)operation.default ListMemoryRecordsPublisherlistMemoryRecordsPaginator(ListMemoryRecordsRequest listMemoryRecordsRequest) This is a variant oflistMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryRecordsRequest)operation.listPaymentInstruments(Consumer<ListPaymentInstrumentsRequest.Builder> listPaymentInstrumentsRequest) List payment instruments for a manager.listPaymentInstruments(ListPaymentInstrumentsRequest listPaymentInstrumentsRequest) List payment instruments for a manager.default ListPaymentInstrumentsPublisherlistPaymentInstrumentsPaginator(Consumer<ListPaymentInstrumentsRequest.Builder> listPaymentInstrumentsRequest) This is a variant oflistPaymentInstruments(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentInstrumentsRequest)operation.default ListPaymentInstrumentsPublisherlistPaymentInstrumentsPaginator(ListPaymentInstrumentsRequest listPaymentInstrumentsRequest) This is a variant oflistPaymentInstruments(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentInstrumentsRequest)operation.listPaymentSessions(Consumer<ListPaymentSessionsRequest.Builder> listPaymentSessionsRequest) List payment sessions.listPaymentSessions(ListPaymentSessionsRequest listPaymentSessionsRequest) List payment sessions.default ListPaymentSessionsPublisherlistPaymentSessionsPaginator(Consumer<ListPaymentSessionsRequest.Builder> listPaymentSessionsRequest) This is a variant oflistPaymentSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentSessionsRequest)operation.default ListPaymentSessionsPublisherlistPaymentSessionsPaginator(ListPaymentSessionsRequest listPaymentSessionsRequest) This is a variant oflistPaymentSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentSessionsRequest)operation.listRecommendations(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) Lists all recommendations in the account, with optional filtering by status.listRecommendations(ListRecommendationsRequest listRecommendationsRequest) Lists all recommendations in the account, with optional filtering by status.default ListRecommendationsPublisherlistRecommendationsPaginator(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) This is a variant oflistRecommendations(software.amazon.awssdk.services.bedrockagentcore.model.ListRecommendationsRequest)operation.default ListRecommendationsPublisherlistRecommendationsPaginator(ListRecommendationsRequest listRecommendationsRequest) This is a variant oflistRecommendations(software.amazon.awssdk.services.bedrockagentcore.model.ListRecommendationsRequest)operation.default CompletableFuture<ListSessionsResponse> listSessions(Consumer<ListSessionsRequest.Builder> listSessionsRequest) Lists sessions in an AgentCore Memory resource based on specified criteria.default CompletableFuture<ListSessionsResponse> listSessions(ListSessionsRequest listSessionsRequest) Lists sessions in an AgentCore Memory resource based on specified criteria.default ListSessionsPublisherlistSessionsPaginator(Consumer<ListSessionsRequest.Builder> listSessionsRequest) This is a variant oflistSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListSessionsRequest)operation.default ListSessionsPublisherlistSessionsPaginator(ListSessionsRequest listSessionsRequest) This is a variant oflistSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListSessionsRequest)operation.default CompletableFuture<ProcessPaymentResponse> processPayment(Consumer<ProcessPaymentRequest.Builder> processPaymentRequest) Processes a payment using a payment instrument within a payment session.default CompletableFuture<ProcessPaymentResponse> processPayment(ProcessPaymentRequest processPaymentRequest) Processes a payment using a payment instrument within a payment session.retrieveMemoryRecords(Consumer<RetrieveMemoryRecordsRequest.Builder> retrieveMemoryRecordsRequest) Searches for and retrieves memory records from an AgentCore Memory resource based on specified search criteria.retrieveMemoryRecords(RetrieveMemoryRecordsRequest retrieveMemoryRecordsRequest) Searches for and retrieves memory records from an AgentCore Memory resource based on specified search criteria.default RetrieveMemoryRecordsPublisherretrieveMemoryRecordsPaginator(Consumer<RetrieveMemoryRecordsRequest.Builder> retrieveMemoryRecordsRequest) This is a variant ofretrieveMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.RetrieveMemoryRecordsRequest)operation.default RetrieveMemoryRecordsPublisherretrieveMemoryRecordsPaginator(RetrieveMemoryRecordsRequest retrieveMemoryRecordsRequest) This is a variant ofretrieveMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.RetrieveMemoryRecordsRequest)operation.saveBrowserSessionProfile(Consumer<SaveBrowserSessionProfileRequest.Builder> saveBrowserSessionProfileRequest) Saves the current state of a browser session as a reusable profile in Amazon Bedrock AgentCore.saveBrowserSessionProfile(SaveBrowserSessionProfileRequest saveBrowserSessionProfileRequest) Saves the current state of a browser session as a reusable profile in Amazon Bedrock AgentCore.searchRegistryRecords(Consumer<SearchRegistryRecordsRequest.Builder> searchRegistryRecordsRequest) Searches for registry records using semantic, lexical, or hybrid queries.searchRegistryRecords(SearchRegistryRecordsRequest searchRegistryRecordsRequest) Searches for registry records using semantic, lexical, or hybrid queries.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstartBatchEvaluation(Consumer<StartBatchEvaluationRequest.Builder> startBatchEvaluationRequest) Starts a batch evaluation job that evaluates agent performance across multiple sessions.startBatchEvaluation(StartBatchEvaluationRequest startBatchEvaluationRequest) Starts a batch evaluation job that evaluates agent performance across multiple sessions.startBrowserSession(Consumer<StartBrowserSessionRequest.Builder> startBrowserSessionRequest) Creates and initializes a browser session in Amazon Bedrock AgentCore.startBrowserSession(StartBrowserSessionRequest startBrowserSessionRequest) Creates and initializes a browser session in Amazon Bedrock AgentCore.startCodeInterpreterSession(Consumer<StartCodeInterpreterSessionRequest.Builder> startCodeInterpreterSessionRequest) Creates and initializes a code interpreter session in Amazon Bedrock AgentCore.startCodeInterpreterSession(StartCodeInterpreterSessionRequest startCodeInterpreterSessionRequest) Creates and initializes a code interpreter session in Amazon Bedrock AgentCore.startMemoryExtractionJob(Consumer<StartMemoryExtractionJobRequest.Builder> startMemoryExtractionJobRequest) Starts a memory extraction job that processes events that failed extraction previously in an AgentCore Memory resource and produces structured memory records.startMemoryExtractionJob(StartMemoryExtractionJobRequest startMemoryExtractionJobRequest) Starts a memory extraction job that processes events that failed extraction previously in an AgentCore Memory resource and produces structured memory records.startRecommendation(Consumer<StartRecommendationRequest.Builder> startRecommendationRequest) Starts a recommendation job that analyzes agent traces and generates optimization suggestions for system prompts or tool descriptions to improve agent performance.startRecommendation(StartRecommendationRequest startRecommendationRequest) Starts a recommendation job that analyzes agent traces and generates optimization suggestions for system prompts or tool descriptions to improve agent performance.stopBatchEvaluation(Consumer<StopBatchEvaluationRequest.Builder> stopBatchEvaluationRequest) Stops a running batch evaluation.stopBatchEvaluation(StopBatchEvaluationRequest stopBatchEvaluationRequest) Stops a running batch evaluation.stopBrowserSession(Consumer<StopBrowserSessionRequest.Builder> stopBrowserSessionRequest) Terminates an active browser session in Amazon Bedrock AgentCore.stopBrowserSession(StopBrowserSessionRequest stopBrowserSessionRequest) Terminates an active browser session in Amazon Bedrock AgentCore.stopCodeInterpreterSession(Consumer<StopCodeInterpreterSessionRequest.Builder> stopCodeInterpreterSessionRequest) Terminates an active code interpreter session in Amazon Bedrock AgentCore.stopCodeInterpreterSession(StopCodeInterpreterSessionRequest stopCodeInterpreterSessionRequest) Terminates an active code interpreter session in Amazon Bedrock AgentCore.stopRuntimeSession(Consumer<StopRuntimeSessionRequest.Builder> stopRuntimeSessionRequest) Stops a session that is running in an running AgentCore Runtime agent.stopRuntimeSession(StopRuntimeSessionRequest stopRuntimeSessionRequest) Stops a session that is running in an running AgentCore Runtime agent.default CompletableFuture<UpdateAbTestResponse> updateABTest(Consumer<UpdateAbTestRequest.Builder> updateAbTestRequest) Updates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status.default CompletableFuture<UpdateAbTestResponse> updateABTest(UpdateAbTestRequest updateAbTestRequest) Updates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status.updateBrowserStream(Consumer<UpdateBrowserStreamRequest.Builder> updateBrowserStreamRequest) Updates a browser stream.updateBrowserStream(UpdateBrowserStreamRequest updateBrowserStreamRequest) Updates a browser stream.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
batchCreateMemoryRecords
default CompletableFuture<BatchCreateMemoryRecordsResponse> batchCreateMemoryRecords(BatchCreateMemoryRecordsRequest batchCreateMemoryRecordsRequest) Creates multiple memory records in a single batch operation for the specified memory with custom content.
- Parameters:
batchCreateMemoryRecordsRequest-- Returns:
- A Java Future containing the result of the BatchCreateMemoryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchCreateMemoryRecords
default CompletableFuture<BatchCreateMemoryRecordsResponse> batchCreateMemoryRecords(Consumer<BatchCreateMemoryRecordsRequest.Builder> batchCreateMemoryRecordsRequest) Creates multiple memory records in a single batch operation for the specified memory with custom content.
This is a convenience which creates an instance of the
BatchCreateMemoryRecordsRequest.Builderavoiding the need to create one manually viaBatchCreateMemoryRecordsRequest.builder()- Parameters:
batchCreateMemoryRecordsRequest- AConsumerthat will call methods onBatchCreateMemoryRecordsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the BatchCreateMemoryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteMemoryRecords
default CompletableFuture<BatchDeleteMemoryRecordsResponse> batchDeleteMemoryRecords(BatchDeleteMemoryRecordsRequest batchDeleteMemoryRecordsRequest) Deletes multiple memory records in a single batch operation from the specified memory.
- Parameters:
batchDeleteMemoryRecordsRequest-- Returns:
- A Java Future containing the result of the BatchDeleteMemoryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteMemoryRecords
default CompletableFuture<BatchDeleteMemoryRecordsResponse> batchDeleteMemoryRecords(Consumer<BatchDeleteMemoryRecordsRequest.Builder> batchDeleteMemoryRecordsRequest) Deletes multiple memory records in a single batch operation from the specified memory.
This is a convenience which creates an instance of the
BatchDeleteMemoryRecordsRequest.Builderavoiding the need to create one manually viaBatchDeleteMemoryRecordsRequest.builder()- Parameters:
batchDeleteMemoryRecordsRequest- AConsumerthat will call methods onBatchDeleteMemoryRecordsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the BatchDeleteMemoryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchUpdateMemoryRecords
default CompletableFuture<BatchUpdateMemoryRecordsResponse> batchUpdateMemoryRecords(BatchUpdateMemoryRecordsRequest batchUpdateMemoryRecordsRequest) Updates multiple memory records with custom content in a single batch operation within the specified memory.
- Parameters:
batchUpdateMemoryRecordsRequest-- Returns:
- A Java Future containing the result of the BatchUpdateMemoryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchUpdateMemoryRecords
default CompletableFuture<BatchUpdateMemoryRecordsResponse> batchUpdateMemoryRecords(Consumer<BatchUpdateMemoryRecordsRequest.Builder> batchUpdateMemoryRecordsRequest) Updates multiple memory records with custom content in a single batch operation within the specified memory.
This is a convenience which creates an instance of the
BatchUpdateMemoryRecordsRequest.Builderavoiding the need to create one manually viaBatchUpdateMemoryRecordsRequest.builder()- Parameters:
batchUpdateMemoryRecordsRequest- AConsumerthat will call methods onBatchUpdateMemoryRecordsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the BatchUpdateMemoryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
completeResourceTokenAuth
default CompletableFuture<CompleteResourceTokenAuthResponse> completeResourceTokenAuth(CompleteResourceTokenAuthRequest completeResourceTokenAuthRequest) Confirms the user authentication session for obtaining OAuth2.0 tokens for a resource.
- Parameters:
completeResourceTokenAuthRequest-- Returns:
- A Java Future containing the result of the CompleteResourceTokenAuth operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
completeResourceTokenAuth
default CompletableFuture<CompleteResourceTokenAuthResponse> completeResourceTokenAuth(Consumer<CompleteResourceTokenAuthRequest.Builder> completeResourceTokenAuthRequest) Confirms the user authentication session for obtaining OAuth2.0 tokens for a resource.
This is a convenience which creates an instance of the
CompleteResourceTokenAuthRequest.Builderavoiding the need to create one manually viaCompleteResourceTokenAuthRequest.builder()- Parameters:
completeResourceTokenAuthRequest- AConsumerthat will call methods onCompleteResourceTokenAuthRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CompleteResourceTokenAuth operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createABTest
default CompletableFuture<CreateAbTestResponse> createABTest(CreateAbTestRequest createAbTestRequest) Creates an A/B test for comparing agent configurations. A/B tests split traffic between a control variant and a treatment variant through a gateway, then evaluate performance using online evaluation configurations to determine which variant performs better.
- Parameters:
createAbTestRequest-- Returns:
- A Java Future containing the result of the CreateABTest operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createABTest
default CompletableFuture<CreateAbTestResponse> createABTest(Consumer<CreateAbTestRequest.Builder> createAbTestRequest) Creates an A/B test for comparing agent configurations. A/B tests split traffic between a control variant and a treatment variant through a gateway, then evaluate performance using online evaluation configurations to determine which variant performs better.
This is a convenience which creates an instance of the
CreateAbTestRequest.Builderavoiding the need to create one manually viaCreateAbTestRequest.builder()- Parameters:
createAbTestRequest- AConsumerthat will call methods onCreateAbTestRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateABTest operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createEvent
Creates an event in an AgentCore Memory resource. Events represent interactions or activities that occur within a session and are associated with specific actors.
To use this operation, you must have the
bedrock-agentcore:CreateEventpermission.This operation is subject to request rate limiting.
- Parameters:
createEventRequest-- Returns:
- A Java Future containing the result of the CreateEvent operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- RetryableConflictException The exception that occurs when there is a retryable conflict performing an operation. This is a temporary condition that may resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createEvent
default CompletableFuture<CreateEventResponse> createEvent(Consumer<CreateEventRequest.Builder> createEventRequest) Creates an event in an AgentCore Memory resource. Events represent interactions or activities that occur within a session and are associated with specific actors.
To use this operation, you must have the
bedrock-agentcore:CreateEventpermission.This operation is subject to request rate limiting.
This is a convenience which creates an instance of the
CreateEventRequest.Builderavoiding the need to create one manually viaCreateEventRequest.builder()- Parameters:
createEventRequest- AConsumerthat will call methods onCreateEventRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateEvent operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- RetryableConflictException The exception that occurs when there is a retryable conflict performing an operation. This is a temporary condition that may resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createPaymentInstrument
default CompletableFuture<CreatePaymentInstrumentResponse> createPaymentInstrument(CreatePaymentInstrumentRequest createPaymentInstrumentRequest) Create a new payment instrument for a connector.
- Parameters:
createPaymentInstrumentRequest- Request structure for creating a payment instrument.- Returns:
- A Java Future containing the result of the CreatePaymentInstrument operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createPaymentInstrument
default CompletableFuture<CreatePaymentInstrumentResponse> createPaymentInstrument(Consumer<CreatePaymentInstrumentRequest.Builder> createPaymentInstrumentRequest) Create a new payment instrument for a connector.
This is a convenience which creates an instance of the
CreatePaymentInstrumentRequest.Builderavoiding the need to create one manually viaCreatePaymentInstrumentRequest.builder()- Parameters:
createPaymentInstrumentRequest- AConsumerthat will call methods onCreatePaymentInstrumentRequest.Builderto create a request. Request structure for creating a payment instrument.- Returns:
- A Java Future containing the result of the CreatePaymentInstrument operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createPaymentSession
default CompletableFuture<CreatePaymentSessionResponse> createPaymentSession(CreatePaymentSessionRequest createPaymentSessionRequest) Create a new payment session.
- Parameters:
createPaymentSessionRequest- Request structure for creating a payment session.- Returns:
- A Java Future containing the result of the CreatePaymentSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createPaymentSession
default CompletableFuture<CreatePaymentSessionResponse> createPaymentSession(Consumer<CreatePaymentSessionRequest.Builder> createPaymentSessionRequest) Create a new payment session.
This is a convenience which creates an instance of the
CreatePaymentSessionRequest.Builderavoiding the need to create one manually viaCreatePaymentSessionRequest.builder()- Parameters:
createPaymentSessionRequest- AConsumerthat will call methods onCreatePaymentSessionRequest.Builderto create a request. Request structure for creating a payment session.- Returns:
- A Java Future containing the result of the CreatePaymentSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteABTest
default CompletableFuture<DeleteAbTestResponse> deleteABTest(DeleteAbTestRequest deleteAbTestRequest) Deletes an A/B test and its associated gateway rules.
- Parameters:
deleteAbTestRequest-- Returns:
- A Java Future containing the result of the DeleteABTest operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteABTest
default CompletableFuture<DeleteAbTestResponse> deleteABTest(Consumer<DeleteAbTestRequest.Builder> deleteAbTestRequest) Deletes an A/B test and its associated gateway rules.
This is a convenience which creates an instance of the
DeleteAbTestRequest.Builderavoiding the need to create one manually viaDeleteAbTestRequest.builder()- Parameters:
deleteAbTestRequest- AConsumerthat will call methods onDeleteAbTestRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteABTest operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteBatchEvaluation
default CompletableFuture<DeleteBatchEvaluationResponse> deleteBatchEvaluation(DeleteBatchEvaluationRequest deleteBatchEvaluationRequest) Deletes a batch evaluation and its associated results.
- Parameters:
deleteBatchEvaluationRequest-- Returns:
- A Java Future containing the result of the DeleteBatchEvaluation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteBatchEvaluation
default CompletableFuture<DeleteBatchEvaluationResponse> deleteBatchEvaluation(Consumer<DeleteBatchEvaluationRequest.Builder> deleteBatchEvaluationRequest) Deletes a batch evaluation and its associated results.
This is a convenience which creates an instance of the
DeleteBatchEvaluationRequest.Builderavoiding the need to create one manually viaDeleteBatchEvaluationRequest.builder()- Parameters:
deleteBatchEvaluationRequest- AConsumerthat will call methods onDeleteBatchEvaluationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteBatchEvaluation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteEvent
Deletes an event from an AgentCore Memory resource. When you delete an event, it is permanently removed.
To use this operation, you must have the
bedrock-agentcore:DeleteEventpermission.- Parameters:
deleteEventRequest-- Returns:
- A Java Future containing the result of the DeleteEvent operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteEvent
default CompletableFuture<DeleteEventResponse> deleteEvent(Consumer<DeleteEventRequest.Builder> deleteEventRequest) Deletes an event from an AgentCore Memory resource. When you delete an event, it is permanently removed.
To use this operation, you must have the
bedrock-agentcore:DeleteEventpermission.
This is a convenience which creates an instance of the
DeleteEventRequest.Builderavoiding the need to create one manually viaDeleteEventRequest.builder()- Parameters:
deleteEventRequest- AConsumerthat will call methods onDeleteEventRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteEvent operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteMemoryRecord
default CompletableFuture<DeleteMemoryRecordResponse> deleteMemoryRecord(DeleteMemoryRecordRequest deleteMemoryRecordRequest) Deletes a memory record from an AgentCore Memory resource. When you delete a memory record, it is permanently removed.
To use this operation, you must have the
bedrock-agentcore:DeleteMemoryRecordpermission.- Parameters:
deleteMemoryRecordRequest-- Returns:
- A Java Future containing the result of the DeleteMemoryRecord operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteMemoryRecord
default CompletableFuture<DeleteMemoryRecordResponse> deleteMemoryRecord(Consumer<DeleteMemoryRecordRequest.Builder> deleteMemoryRecordRequest) Deletes a memory record from an AgentCore Memory resource. When you delete a memory record, it is permanently removed.
To use this operation, you must have the
bedrock-agentcore:DeleteMemoryRecordpermission.
This is a convenience which creates an instance of the
DeleteMemoryRecordRequest.Builderavoiding the need to create one manually viaDeleteMemoryRecordRequest.builder()- Parameters:
deleteMemoryRecordRequest- AConsumerthat will call methods onDeleteMemoryRecordRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteMemoryRecord operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deletePaymentInstrument
default CompletableFuture<DeletePaymentInstrumentResponse> deletePaymentInstrument(DeletePaymentInstrumentRequest deletePaymentInstrumentRequest) Deletes a payment instrument. This is a soft delete operation that preserves the record for audit and compliance purposes.
- Parameters:
deletePaymentInstrumentRequest- Request structure for deleting a payment instrument.- Returns:
- A Java Future containing the result of the DeletePaymentInstrument operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deletePaymentInstrument
default CompletableFuture<DeletePaymentInstrumentResponse> deletePaymentInstrument(Consumer<DeletePaymentInstrumentRequest.Builder> deletePaymentInstrumentRequest) Deletes a payment instrument. This is a soft delete operation that preserves the record for audit and compliance purposes.
This is a convenience which creates an instance of the
DeletePaymentInstrumentRequest.Builderavoiding the need to create one manually viaDeletePaymentInstrumentRequest.builder()- Parameters:
deletePaymentInstrumentRequest- AConsumerthat will call methods onDeletePaymentInstrumentRequest.Builderto create a request. Request structure for deleting a payment instrument.- Returns:
- A Java Future containing the result of the DeletePaymentInstrument operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deletePaymentSession
default CompletableFuture<DeletePaymentSessionResponse> deletePaymentSession(DeletePaymentSessionRequest deletePaymentSessionRequest) Deletes a payment session. This permanently removes the payment session record.
- Parameters:
deletePaymentSessionRequest- Request structure for deleting a payment session.- Returns:
- A Java Future containing the result of the DeletePaymentSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deletePaymentSession
default CompletableFuture<DeletePaymentSessionResponse> deletePaymentSession(Consumer<DeletePaymentSessionRequest.Builder> deletePaymentSessionRequest) Deletes a payment session. This permanently removes the payment session record.
This is a convenience which creates an instance of the
DeletePaymentSessionRequest.Builderavoiding the need to create one manually viaDeletePaymentSessionRequest.builder()- Parameters:
deletePaymentSessionRequest- AConsumerthat will call methods onDeletePaymentSessionRequest.Builderto create a request. Request structure for deleting a payment session.- Returns:
- A Java Future containing the result of the DeletePaymentSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteRecommendation
default CompletableFuture<DeleteRecommendationResponse> deleteRecommendation(DeleteRecommendationRequest deleteRecommendationRequest) Deletes a recommendation and its associated results.
- Parameters:
deleteRecommendationRequest-- Returns:
- A Java Future containing the result of the DeleteRecommendation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteRecommendation
default CompletableFuture<DeleteRecommendationResponse> deleteRecommendation(Consumer<DeleteRecommendationRequest.Builder> deleteRecommendationRequest) Deletes a recommendation and its associated results.
This is a convenience which creates an instance of the
DeleteRecommendationRequest.Builderavoiding the need to create one manually viaDeleteRecommendationRequest.builder()- Parameters:
deleteRecommendationRequest- AConsumerthat will call methods onDeleteRecommendationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteRecommendation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
evaluate
Performs on-demand evaluation of agent traces using a specified evaluator. This synchronous API accepts traces in OpenTelemetry format and returns immediate scoring results with detailed explanations.
- Parameters:
evaluateRequest-- Returns:
- A Java Future containing the result of the Evaluate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- DuplicateIdException An exception thrown when attempting to create a resource with an identifier that already exists.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
evaluate
default CompletableFuture<EvaluateResponse> evaluate(Consumer<EvaluateRequest.Builder> evaluateRequest) Performs on-demand evaluation of agent traces using a specified evaluator. This synchronous API accepts traces in OpenTelemetry format and returns immediate scoring results with detailed explanations.
This is a convenience which creates an instance of the
EvaluateRequest.Builderavoiding the need to create one manually viaEvaluateRequest.builder()- Parameters:
evaluateRequest- AConsumerthat will call methods onEvaluateRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the Evaluate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- DuplicateIdException An exception thrown when attempting to create a resource with an identifier that already exists.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getABTest
Retrieves detailed information about an A/B test, including its configuration, status, and statistical results.
- Parameters:
getAbTestRequest-- Returns:
- A Java Future containing the result of the GetABTest operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getABTest
default CompletableFuture<GetAbTestResponse> getABTest(Consumer<GetAbTestRequest.Builder> getAbTestRequest) Retrieves detailed information about an A/B test, including its configuration, status, and statistical results.
This is a convenience which creates an instance of the
GetAbTestRequest.Builderavoiding the need to create one manually viaGetAbTestRequest.builder()- Parameters:
getAbTestRequest- AConsumerthat will call methods onGetAbTestRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetABTest operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAgentCard
default CompletableFuture<GetAgentCardResponse> getAgentCard(GetAgentCardRequest getAgentCardRequest) Retrieves the A2A agent card associated with an AgentCore Runtime agent.
- Parameters:
getAgentCardRequest-- Returns:
- A Java Future containing the result of the GetAgentCard operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- RuntimeClientErrorException The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAgentCard
default CompletableFuture<GetAgentCardResponse> getAgentCard(Consumer<GetAgentCardRequest.Builder> getAgentCardRequest) Retrieves the A2A agent card associated with an AgentCore Runtime agent.
This is a convenience which creates an instance of the
GetAgentCardRequest.Builderavoiding the need to create one manually viaGetAgentCardRequest.builder()- Parameters:
getAgentCardRequest- AConsumerthat will call methods onGetAgentCardRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAgentCard operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- RuntimeClientErrorException The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getBatchEvaluation
default CompletableFuture<GetBatchEvaluationResponse> getBatchEvaluation(GetBatchEvaluationRequest getBatchEvaluationRequest) Retrieves detailed information about a batch evaluation, including its status, configuration, results, and any error details.
- Parameters:
getBatchEvaluationRequest-- Returns:
- A Java Future containing the result of the GetBatchEvaluation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getBatchEvaluation
default CompletableFuture<GetBatchEvaluationResponse> getBatchEvaluation(Consumer<GetBatchEvaluationRequest.Builder> getBatchEvaluationRequest) Retrieves detailed information about a batch evaluation, including its status, configuration, results, and any error details.
This is a convenience which creates an instance of the
GetBatchEvaluationRequest.Builderavoiding the need to create one manually viaGetBatchEvaluationRequest.builder()- Parameters:
getBatchEvaluationRequest- AConsumerthat will call methods onGetBatchEvaluationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetBatchEvaluation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getBrowserSession
default CompletableFuture<GetBrowserSessionResponse> getBrowserSession(GetBrowserSessionRequest getBrowserSessionRequest) Retrieves detailed information about a specific browser session in Amazon Bedrock AgentCore. This operation returns the session's configuration, current status, associated streams, and metadata.
To get a browser session, you must specify both the browser identifier and the session ID. The response includes information about the session's viewport configuration, timeout settings, and stream endpoints.
The following operations are related to
GetBrowserSession:- Parameters:
getBrowserSessionRequest-- Returns:
- A Java Future containing the result of the GetBrowserSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getBrowserSession
default CompletableFuture<GetBrowserSessionResponse> getBrowserSession(Consumer<GetBrowserSessionRequest.Builder> getBrowserSessionRequest) Retrieves detailed information about a specific browser session in Amazon Bedrock AgentCore. This operation returns the session's configuration, current status, associated streams, and metadata.
To get a browser session, you must specify both the browser identifier and the session ID. The response includes information about the session's viewport configuration, timeout settings, and stream endpoints.
The following operations are related to
GetBrowserSession:
This is a convenience which creates an instance of the
GetBrowserSessionRequest.Builderavoiding the need to create one manually viaGetBrowserSessionRequest.builder()- Parameters:
getBrowserSessionRequest- AConsumerthat will call methods onGetBrowserSessionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetBrowserSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCodeInterpreterSession
default CompletableFuture<GetCodeInterpreterSessionResponse> getCodeInterpreterSession(GetCodeInterpreterSessionRequest getCodeInterpreterSessionRequest) Retrieves detailed information about a specific code interpreter session in Amazon Bedrock AgentCore. This operation returns the session's configuration, current status, and metadata.
To get a code interpreter session, you must specify both the code interpreter identifier and the session ID. The response includes information about the session's timeout settings and current status.
The following operations are related to
GetCodeInterpreterSession:- Parameters:
getCodeInterpreterSessionRequest-- Returns:
- A Java Future containing the result of the GetCodeInterpreterSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCodeInterpreterSession
default CompletableFuture<GetCodeInterpreterSessionResponse> getCodeInterpreterSession(Consumer<GetCodeInterpreterSessionRequest.Builder> getCodeInterpreterSessionRequest) Retrieves detailed information about a specific code interpreter session in Amazon Bedrock AgentCore. This operation returns the session's configuration, current status, and metadata.
To get a code interpreter session, you must specify both the code interpreter identifier and the session ID. The response includes information about the session's timeout settings and current status.
The following operations are related to
GetCodeInterpreterSession:
This is a convenience which creates an instance of the
GetCodeInterpreterSessionRequest.Builderavoiding the need to create one manually viaGetCodeInterpreterSessionRequest.builder()- Parameters:
getCodeInterpreterSessionRequest- AConsumerthat will call methods onGetCodeInterpreterSessionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetCodeInterpreterSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getEvent
Retrieves information about a specific event in an AgentCore Memory resource.
To use this operation, you must have the
bedrock-agentcore:GetEventpermission.- Parameters:
getEventRequest-- Returns:
- A Java Future containing the result of the GetEvent operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getEvent
default CompletableFuture<GetEventResponse> getEvent(Consumer<GetEventRequest.Builder> getEventRequest) Retrieves information about a specific event in an AgentCore Memory resource.
To use this operation, you must have the
bedrock-agentcore:GetEventpermission.
This is a convenience which creates an instance of the
GetEventRequest.Builderavoiding the need to create one manually viaGetEventRequest.builder()- Parameters:
getEventRequest- AConsumerthat will call methods onGetEventRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetEvent operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMemoryRecord
default CompletableFuture<GetMemoryRecordResponse> getMemoryRecord(GetMemoryRecordRequest getMemoryRecordRequest) Retrieves a specific memory record from an AgentCore Memory resource.
To use this operation, you must have the
bedrock-agentcore:GetMemoryRecordpermission.- Parameters:
getMemoryRecordRequest-- Returns:
- A Java Future containing the result of the GetMemoryRecord operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMemoryRecord
default CompletableFuture<GetMemoryRecordResponse> getMemoryRecord(Consumer<GetMemoryRecordRequest.Builder> getMemoryRecordRequest) Retrieves a specific memory record from an AgentCore Memory resource.
To use this operation, you must have the
bedrock-agentcore:GetMemoryRecordpermission.
This is a convenience which creates an instance of the
GetMemoryRecordRequest.Builderavoiding the need to create one manually viaGetMemoryRecordRequest.builder()- Parameters:
getMemoryRecordRequest- AConsumerthat will call methods onGetMemoryRecordRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetMemoryRecord operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPaymentInstrument
default CompletableFuture<GetPaymentInstrumentResponse> getPaymentInstrument(GetPaymentInstrumentRequest getPaymentInstrumentRequest) Get a payment instrument by ID.
- Parameters:
getPaymentInstrumentRequest- Request structure for getting a payment instrument.- Returns:
- A Java Future containing the result of the GetPaymentInstrument operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPaymentInstrument
default CompletableFuture<GetPaymentInstrumentResponse> getPaymentInstrument(Consumer<GetPaymentInstrumentRequest.Builder> getPaymentInstrumentRequest) Get a payment instrument by ID.
This is a convenience which creates an instance of the
GetPaymentInstrumentRequest.Builderavoiding the need to create one manually viaGetPaymentInstrumentRequest.builder()- Parameters:
getPaymentInstrumentRequest- AConsumerthat will call methods onGetPaymentInstrumentRequest.Builderto create a request. Request structure for getting a payment instrument.- Returns:
- A Java Future containing the result of the GetPaymentInstrument operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPaymentInstrumentBalance
default CompletableFuture<GetPaymentInstrumentBalanceResponse> getPaymentInstrumentBalance(GetPaymentInstrumentBalanceRequest getPaymentInstrumentBalanceRequest) Get the balance of a payment instrument.
- Parameters:
getPaymentInstrumentBalanceRequest- Request structure for getting payment instrument balance.- Returns:
- A Java Future containing the result of the GetPaymentInstrumentBalance operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPaymentInstrumentBalance
default CompletableFuture<GetPaymentInstrumentBalanceResponse> getPaymentInstrumentBalance(Consumer<GetPaymentInstrumentBalanceRequest.Builder> getPaymentInstrumentBalanceRequest) Get the balance of a payment instrument.
This is a convenience which creates an instance of the
GetPaymentInstrumentBalanceRequest.Builderavoiding the need to create one manually viaGetPaymentInstrumentBalanceRequest.builder()- Parameters:
getPaymentInstrumentBalanceRequest- AConsumerthat will call methods onGetPaymentInstrumentBalanceRequest.Builderto create a request. Request structure for getting payment instrument balance.- Returns:
- A Java Future containing the result of the GetPaymentInstrumentBalance operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPaymentSession
default CompletableFuture<GetPaymentSessionResponse> getPaymentSession(GetPaymentSessionRequest getPaymentSessionRequest) Get a payment session.
- Parameters:
getPaymentSessionRequest- Request structure for getting a payment session.- Returns:
- A Java Future containing the result of the GetPaymentSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPaymentSession
default CompletableFuture<GetPaymentSessionResponse> getPaymentSession(Consumer<GetPaymentSessionRequest.Builder> getPaymentSessionRequest) Get a payment session.
This is a convenience which creates an instance of the
GetPaymentSessionRequest.Builderavoiding the need to create one manually viaGetPaymentSessionRequest.builder()- Parameters:
getPaymentSessionRequest- AConsumerthat will call methods onGetPaymentSessionRequest.Builderto create a request. Request structure for getting a payment session.- Returns:
- A Java Future containing the result of the GetPaymentSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRecommendation
default CompletableFuture<GetRecommendationResponse> getRecommendation(GetRecommendationRequest getRecommendationRequest) Retrieves detailed information about a recommendation, including its configuration, status, and results.
- Parameters:
getRecommendationRequest-- Returns:
- A Java Future containing the result of the GetRecommendation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getRecommendation
default CompletableFuture<GetRecommendationResponse> getRecommendation(Consumer<GetRecommendationRequest.Builder> getRecommendationRequest) Retrieves detailed information about a recommendation, including its configuration, status, and results.
This is a convenience which creates an instance of the
GetRecommendationRequest.Builderavoiding the need to create one manually viaGetRecommendationRequest.builder()- Parameters:
getRecommendationRequest- AConsumerthat will call methods onGetRecommendationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetRecommendation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourceApiKey
default CompletableFuture<GetResourceApiKeyResponse> getResourceApiKey(GetResourceApiKeyRequest getResourceApiKeyRequest) Retrieves the API key associated with an API key credential provider.
- Parameters:
getResourceApiKeyRequest-- Returns:
- A Java Future containing the result of the GetResourceApiKey operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourceApiKey
default CompletableFuture<GetResourceApiKeyResponse> getResourceApiKey(Consumer<GetResourceApiKeyRequest.Builder> getResourceApiKeyRequest) Retrieves the API key associated with an API key credential provider.
This is a convenience which creates an instance of the
GetResourceApiKeyRequest.Builderavoiding the need to create one manually viaGetResourceApiKeyRequest.builder()- Parameters:
getResourceApiKeyRequest- AConsumerthat will call methods onGetResourceApiKeyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetResourceApiKey operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourceOauth2Token
default CompletableFuture<GetResourceOauth2TokenResponse> getResourceOauth2Token(GetResourceOauth2TokenRequest getResourceOauth2TokenRequest) Returns the OAuth 2.0 token of the provided resource.
- Parameters:
getResourceOauth2TokenRequest-- Returns:
- A Java Future containing the result of the GetResourceOauth2Token operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourceOauth2Token
default CompletableFuture<GetResourceOauth2TokenResponse> getResourceOauth2Token(Consumer<GetResourceOauth2TokenRequest.Builder> getResourceOauth2TokenRequest) Returns the OAuth 2.0 token of the provided resource.
This is a convenience which creates an instance of the
GetResourceOauth2TokenRequest.Builderavoiding the need to create one manually viaGetResourceOauth2TokenRequest.builder()- Parameters:
getResourceOauth2TokenRequest- AConsumerthat will call methods onGetResourceOauth2TokenRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetResourceOauth2Token operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePaymentToken
default CompletableFuture<GetResourcePaymentTokenResponse> getResourcePaymentToken(GetResourcePaymentTokenRequest getResourcePaymentTokenRequest) Generates authentication tokens for payment providers that use vendor-specific authentication mechanisms.
- Parameters:
getResourcePaymentTokenRequest-- Returns:
- A Java Future containing the result of the GetResourcePaymentToken operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePaymentToken
default CompletableFuture<GetResourcePaymentTokenResponse> getResourcePaymentToken(Consumer<GetResourcePaymentTokenRequest.Builder> getResourcePaymentTokenRequest) Generates authentication tokens for payment providers that use vendor-specific authentication mechanisms.
This is a convenience which creates an instance of the
GetResourcePaymentTokenRequest.Builderavoiding the need to create one manually viaGetResourcePaymentTokenRequest.builder()- Parameters:
getResourcePaymentTokenRequest- AConsumerthat will call methods onGetResourcePaymentTokenRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetResourcePaymentToken operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkloadAccessToken
default CompletableFuture<GetWorkloadAccessTokenResponse> getWorkloadAccessToken(GetWorkloadAccessTokenRequest getWorkloadAccessTokenRequest) Obtains a workload access token for agentic workloads not acting on behalf of a user.
- Parameters:
getWorkloadAccessTokenRequest-- Returns:
- A Java Future containing the result of the GetWorkloadAccessToken operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkloadAccessToken
default CompletableFuture<GetWorkloadAccessTokenResponse> getWorkloadAccessToken(Consumer<GetWorkloadAccessTokenRequest.Builder> getWorkloadAccessTokenRequest) Obtains a workload access token for agentic workloads not acting on behalf of a user.
This is a convenience which creates an instance of the
GetWorkloadAccessTokenRequest.Builderavoiding the need to create one manually viaGetWorkloadAccessTokenRequest.builder()- Parameters:
getWorkloadAccessTokenRequest- AConsumerthat will call methods onGetWorkloadAccessTokenRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetWorkloadAccessToken operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkloadAccessTokenForJWT
default CompletableFuture<GetWorkloadAccessTokenForJwtResponse> getWorkloadAccessTokenForJWT(GetWorkloadAccessTokenForJwtRequest getWorkloadAccessTokenForJwtRequest) Obtains a workload access token for agentic workloads acting on behalf of a user, using a JWT token.
- Parameters:
getWorkloadAccessTokenForJwtRequest-- Returns:
- A Java Future containing the result of the GetWorkloadAccessTokenForJWT operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkloadAccessTokenForJWT
default CompletableFuture<GetWorkloadAccessTokenForJwtResponse> getWorkloadAccessTokenForJWT(Consumer<GetWorkloadAccessTokenForJwtRequest.Builder> getWorkloadAccessTokenForJwtRequest) Obtains a workload access token for agentic workloads acting on behalf of a user, using a JWT token.
This is a convenience which creates an instance of the
GetWorkloadAccessTokenForJwtRequest.Builderavoiding the need to create one manually viaGetWorkloadAccessTokenForJwtRequest.builder()- Parameters:
getWorkloadAccessTokenForJwtRequest- AConsumerthat will call methods onGetWorkloadAccessTokenForJwtRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetWorkloadAccessTokenForJWT operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkloadAccessTokenForUserId
default CompletableFuture<GetWorkloadAccessTokenForUserIdResponse> getWorkloadAccessTokenForUserId(GetWorkloadAccessTokenForUserIdRequest getWorkloadAccessTokenForUserIdRequest) Obtains a workload access token for agentic workloads acting on behalf of a user, using the user's ID.
- Parameters:
getWorkloadAccessTokenForUserIdRequest-- Returns:
- A Java Future containing the result of the GetWorkloadAccessTokenForUserId operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkloadAccessTokenForUserId
default CompletableFuture<GetWorkloadAccessTokenForUserIdResponse> getWorkloadAccessTokenForUserId(Consumer<GetWorkloadAccessTokenForUserIdRequest.Builder> getWorkloadAccessTokenForUserIdRequest) Obtains a workload access token for agentic workloads acting on behalf of a user, using the user's ID.
This is a convenience which creates an instance of the
GetWorkloadAccessTokenForUserIdRequest.Builderavoiding the need to create one manually viaGetWorkloadAccessTokenForUserIdRequest.builder()- Parameters:
getWorkloadAccessTokenForUserIdRequest- AConsumerthat will call methods onGetWorkloadAccessTokenForUserIdRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetWorkloadAccessTokenForUserId operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeAgentRuntime
default <ReturnT> CompletableFuture<ReturnT> invokeAgentRuntime(InvokeAgentRuntimeRequest invokeAgentRuntimeRequest, AsyncResponseTransformer<InvokeAgentRuntimeResponse, ReturnT> asyncResponseTransformer) Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time.
To invoke an agent, you can specify either the AgentCore Runtime ARN or the agent ID with an account ID, and provide a payload containing your request. When you use the agent ID instead of the full ARN, you don't need to URL-encode the identifier. You can optionally specify a qualifier to target a specific endpoint of the agent.
This operation supports streaming responses, allowing you to receive partial responses as they become available. We recommend using pagination to ensure that the operation returns quickly and successfully when processing large responses.
For example code, see Invoke an AgentCore Runtime agent.
If you're integrating your agent with OAuth, you can't use the Amazon Web Services SDK to call
InvokeAgentRuntime. Instead, make a HTTPS request toInvokeAgentRuntime. For an example, see Authenticate and authorize with Inbound Auth and Outbound Auth.To use this operation, you must have the
bedrock-agentcore:InvokeAgentRuntimepermission. If you are making a call toInvokeAgentRuntimeon behalf of a user ID with theX-Amzn-Bedrock-AgentCore-Runtime-User-Idheader, You require permissions to both actions (bedrock-agentcore:InvokeAgentRuntimeandbedrock-agentcore:InvokeAgentRuntimeForUser).- Parameters:
invokeAgentRuntimeRequest-asyncResponseTransformer- The response transformer for processing the streaming response in a non-blocking manner. SeeAsyncResponseTransformerfor details on how this callback should be implemented and for links to precanned implementations for common scenarios like downloading to a file. The service documentation for the response content is as follows 'The response data from the agent runtime. The format of this data depends on the specific agent configuration and the requested accept type. For most agents, this is a JSON object containing the agent's response to the user's request.
'.- Returns:
- A future to the transformed result of the AsyncResponseTransformer.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- RetryableConflictException The exception that occurs when there is a retryable conflict performing an operation. This is a temporary condition that may resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- RuntimeClientErrorException The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeAgentRuntime
default <ReturnT> CompletableFuture<ReturnT> invokeAgentRuntime(Consumer<InvokeAgentRuntimeRequest.Builder> invokeAgentRuntimeRequest, AsyncResponseTransformer<InvokeAgentRuntimeResponse, ReturnT> asyncResponseTransformer) Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time.
To invoke an agent, you can specify either the AgentCore Runtime ARN or the agent ID with an account ID, and provide a payload containing your request. When you use the agent ID instead of the full ARN, you don't need to URL-encode the identifier. You can optionally specify a qualifier to target a specific endpoint of the agent.
This operation supports streaming responses, allowing you to receive partial responses as they become available. We recommend using pagination to ensure that the operation returns quickly and successfully when processing large responses.
For example code, see Invoke an AgentCore Runtime agent.
If you're integrating your agent with OAuth, you can't use the Amazon Web Services SDK to call
InvokeAgentRuntime. Instead, make a HTTPS request toInvokeAgentRuntime. For an example, see Authenticate and authorize with Inbound Auth and Outbound Auth.To use this operation, you must have the
bedrock-agentcore:InvokeAgentRuntimepermission. If you are making a call toInvokeAgentRuntimeon behalf of a user ID with theX-Amzn-Bedrock-AgentCore-Runtime-User-Idheader, You require permissions to both actions (bedrock-agentcore:InvokeAgentRuntimeandbedrock-agentcore:InvokeAgentRuntimeForUser).
This is a convenience which creates an instance of the
InvokeAgentRuntimeRequest.Builderavoiding the need to create one manually viaInvokeAgentRuntimeRequest.builder()- Parameters:
invokeAgentRuntimeRequest- AConsumerthat will call methods onInvokeAgentRuntimeRequest.Builderto create a request.asyncResponseTransformer- The response transformer for processing the streaming response in a non-blocking manner. SeeAsyncResponseTransformerfor details on how this callback should be implemented and for links to precanned implementations for common scenarios like downloading to a file. The service documentation for the response content is as follows 'The response data from the agent runtime. The format of this data depends on the specific agent configuration and the requested accept type. For most agents, this is a JSON object containing the agent's response to the user's request.
'.- Returns:
- A future to the transformed result of the AsyncResponseTransformer.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- RetryableConflictException The exception that occurs when there is a retryable conflict performing an operation. This is a temporary condition that may resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- RuntimeClientErrorException The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeAgentRuntime
default CompletableFuture<InvokeAgentRuntimeResponse> invokeAgentRuntime(InvokeAgentRuntimeRequest invokeAgentRuntimeRequest, Path destinationPath) Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time.
To invoke an agent, you can specify either the AgentCore Runtime ARN or the agent ID with an account ID, and provide a payload containing your request. When you use the agent ID instead of the full ARN, you don't need to URL-encode the identifier. You can optionally specify a qualifier to target a specific endpoint of the agent.
This operation supports streaming responses, allowing you to receive partial responses as they become available. We recommend using pagination to ensure that the operation returns quickly and successfully when processing large responses.
For example code, see Invoke an AgentCore Runtime agent.
If you're integrating your agent with OAuth, you can't use the Amazon Web Services SDK to call
InvokeAgentRuntime. Instead, make a HTTPS request toInvokeAgentRuntime. For an example, see Authenticate and authorize with Inbound Auth and Outbound Auth.To use this operation, you must have the
bedrock-agentcore:InvokeAgentRuntimepermission. If you are making a call toInvokeAgentRuntimeon behalf of a user ID with theX-Amzn-Bedrock-AgentCore-Runtime-User-Idheader, You require permissions to both actions (bedrock-agentcore:InvokeAgentRuntimeandbedrock-agentcore:InvokeAgentRuntimeForUser).- Parameters:
invokeAgentRuntimeRequest-destinationPath-Pathto file that response contents will be written to. The file must not exist or this method will throw an exception. If the file is not writable by the current user then an exception will be thrown. The service documentation for the response content is as follows 'The response data from the agent runtime. The format of this data depends on the specific agent configuration and the requested accept type. For most agents, this is a JSON object containing the agent's response to the user's request.
'.- Returns:
- A future to the transformed result of the AsyncResponseTransformer.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- RetryableConflictException The exception that occurs when there is a retryable conflict performing an operation. This is a temporary condition that may resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- RuntimeClientErrorException The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeAgentRuntime
default CompletableFuture<InvokeAgentRuntimeResponse> invokeAgentRuntime(Consumer<InvokeAgentRuntimeRequest.Builder> invokeAgentRuntimeRequest, Path destinationPath) Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time.
To invoke an agent, you can specify either the AgentCore Runtime ARN or the agent ID with an account ID, and provide a payload containing your request. When you use the agent ID instead of the full ARN, you don't need to URL-encode the identifier. You can optionally specify a qualifier to target a specific endpoint of the agent.
This operation supports streaming responses, allowing you to receive partial responses as they become available. We recommend using pagination to ensure that the operation returns quickly and successfully when processing large responses.
For example code, see Invoke an AgentCore Runtime agent.
If you're integrating your agent with OAuth, you can't use the Amazon Web Services SDK to call
InvokeAgentRuntime. Instead, make a HTTPS request toInvokeAgentRuntime. For an example, see Authenticate and authorize with Inbound Auth and Outbound Auth.To use this operation, you must have the
bedrock-agentcore:InvokeAgentRuntimepermission. If you are making a call toInvokeAgentRuntimeon behalf of a user ID with theX-Amzn-Bedrock-AgentCore-Runtime-User-Idheader, You require permissions to both actions (bedrock-agentcore:InvokeAgentRuntimeandbedrock-agentcore:InvokeAgentRuntimeForUser).
This is a convenience which creates an instance of the
InvokeAgentRuntimeRequest.Builderavoiding the need to create one manually viaInvokeAgentRuntimeRequest.builder()- Parameters:
invokeAgentRuntimeRequest- AConsumerthat will call methods onInvokeAgentRuntimeRequest.Builderto create a request.destinationPath-Pathto file that response contents will be written to. The file must not exist or this method will throw an exception. If the file is not writable by the current user then an exception will be thrown. The service documentation for the response content is as follows 'The response data from the agent runtime. The format of this data depends on the specific agent configuration and the requested accept type. For most agents, this is a JSON object containing the agent's response to the user's request.
'.- Returns:
- A future to the transformed result of the AsyncResponseTransformer.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- RetryableConflictException The exception that occurs when there is a retryable conflict performing an operation. This is a temporary condition that may resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- RuntimeClientErrorException The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeAgentRuntimeCommand
default CompletableFuture<Void> invokeAgentRuntimeCommand(InvokeAgentRuntimeCommandRequest invokeAgentRuntimeCommandRequest, InvokeAgentRuntimeCommandResponseHandler asyncResponseHandler) Executes a command in a runtime session container and streams the output back to the caller. This operation allows you to run shell commands within the agent runtime environment and receive real-time streaming responses including standard output and standard error.
To invoke a command, you must specify the agent runtime ARN and a runtime session ID. The command execution supports streaming responses, allowing you to receive output as it becomes available through
contentStart,contentDelta, andcontentStopevents.To use this operation, you must have the
bedrock-agentcore:InvokeAgentRuntimeCommandpermission.- Parameters:
invokeAgentRuntimeCommandRequest- Request for InvokeAgentRuntimeCommand operation.- Returns:
- A Java Future containing the result of the InvokeAgentRuntimeCommand operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- RuntimeClientErrorException The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeAgentRuntimeCommand
default CompletableFuture<Void> invokeAgentRuntimeCommand(Consumer<InvokeAgentRuntimeCommandRequest.Builder> invokeAgentRuntimeCommandRequest, InvokeAgentRuntimeCommandResponseHandler asyncResponseHandler) Executes a command in a runtime session container and streams the output back to the caller. This operation allows you to run shell commands within the agent runtime environment and receive real-time streaming responses including standard output and standard error.
To invoke a command, you must specify the agent runtime ARN and a runtime session ID. The command execution supports streaming responses, allowing you to receive output as it becomes available through
contentStart,contentDelta, andcontentStopevents.To use this operation, you must have the
bedrock-agentcore:InvokeAgentRuntimeCommandpermission.
This is a convenience which creates an instance of the
InvokeAgentRuntimeCommandRequest.Builderavoiding the need to create one manually viaInvokeAgentRuntimeCommandRequest.builder()- Parameters:
invokeAgentRuntimeCommandRequest- AConsumerthat will call methods onInvokeAgentRuntimeCommandRequest.Builderto create a request. Request for InvokeAgentRuntimeCommand operation.- Returns:
- A Java Future containing the result of the InvokeAgentRuntimeCommand operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- RuntimeClientErrorException The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeBrowser
default CompletableFuture<InvokeBrowserResponse> invokeBrowser(InvokeBrowserRequest invokeBrowserRequest) Invokes an operating system-level action on a browser session in Amazon Bedrock AgentCore. This operation provides direct OS-level control over browser sessions, enabling mouse actions, keyboard input, and screenshots that the WebSocket-based Chrome DevTools Protocol (CDP) cannot handle — such as interacting with print dialogs, context menus, and JavaScript alerts.
You send a request with exactly one action in the
BrowserActionunion, and receive a corresponding result in theBrowserActionResultunion.The following operations are related to
InvokeBrowser:- Parameters:
invokeBrowserRequest- Request for the InvokeBrowser operation.- Returns:
- A Java Future containing the result of the InvokeBrowser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeBrowser
default CompletableFuture<InvokeBrowserResponse> invokeBrowser(Consumer<InvokeBrowserRequest.Builder> invokeBrowserRequest) Invokes an operating system-level action on a browser session in Amazon Bedrock AgentCore. This operation provides direct OS-level control over browser sessions, enabling mouse actions, keyboard input, and screenshots that the WebSocket-based Chrome DevTools Protocol (CDP) cannot handle — such as interacting with print dialogs, context menus, and JavaScript alerts.
You send a request with exactly one action in the
BrowserActionunion, and receive a corresponding result in theBrowserActionResultunion.The following operations are related to
InvokeBrowser:
This is a convenience which creates an instance of the
InvokeBrowserRequest.Builderavoiding the need to create one manually viaInvokeBrowserRequest.builder()- Parameters:
invokeBrowserRequest- AConsumerthat will call methods onInvokeBrowserRequest.Builderto create a request. Request for the InvokeBrowser operation.- Returns:
- A Java Future containing the result of the InvokeBrowser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeCodeInterpreter
default CompletableFuture<Void> invokeCodeInterpreter(InvokeCodeInterpreterRequest invokeCodeInterpreterRequest, InvokeCodeInterpreterResponseHandler asyncResponseHandler) Executes code within an active code interpreter session in Amazon Bedrock AgentCore. This operation processes the provided code, runs it in a secure environment, and returns the execution results including output, errors, and generated visualizations.
To execute code, you must specify the code interpreter identifier, session ID, and the code to run in the arguments parameter. The operation returns a stream containing the execution results, which can include text output, error messages, and data visualizations.
This operation is subject to request rate limiting based on your account's service quotas.
The following operations are related to
InvokeCodeInterpreter:- Parameters:
invokeCodeInterpreterRequest-- Returns:
- A Java Future containing the result of the InvokeCodeInterpreter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeCodeInterpreter
default CompletableFuture<Void> invokeCodeInterpreter(Consumer<InvokeCodeInterpreterRequest.Builder> invokeCodeInterpreterRequest, InvokeCodeInterpreterResponseHandler asyncResponseHandler) Executes code within an active code interpreter session in Amazon Bedrock AgentCore. This operation processes the provided code, runs it in a secure environment, and returns the execution results including output, errors, and generated visualizations.
To execute code, you must specify the code interpreter identifier, session ID, and the code to run in the arguments parameter. The operation returns a stream containing the execution results, which can include text output, error messages, and data visualizations.
This operation is subject to request rate limiting based on your account's service quotas.
The following operations are related to
InvokeCodeInterpreter:
This is a convenience which creates an instance of the
InvokeCodeInterpreterRequest.Builderavoiding the need to create one manually viaInvokeCodeInterpreterRequest.builder()- Parameters:
invokeCodeInterpreterRequest- AConsumerthat will call methods onInvokeCodeInterpreterRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the InvokeCodeInterpreter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeHarness
default CompletableFuture<Void> invokeHarness(InvokeHarnessRequest invokeHarnessRequest, InvokeHarnessResponseHandler asyncResponseHandler) Operation to invoke a Harness.
- Parameters:
invokeHarnessRequest-- Returns:
- A Java Future containing the result of the InvokeHarness operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeHarness
default CompletableFuture<Void> invokeHarness(Consumer<InvokeHarnessRequest.Builder> invokeHarnessRequest, InvokeHarnessResponseHandler asyncResponseHandler) Operation to invoke a Harness.
This is a convenience which creates an instance of the
InvokeHarnessRequest.Builderavoiding the need to create one manually viaInvokeHarnessRequest.builder()- Parameters:
invokeHarnessRequest- AConsumerthat will call methods onInvokeHarnessRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the InvokeHarness operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listABTests
Lists all A/B tests in the account.
- Parameters:
listAbTestsRequest-- Returns:
- A Java Future containing the result of the ListABTests operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listABTests
default CompletableFuture<ListAbTestsResponse> listABTests(Consumer<ListAbTestsRequest.Builder> listAbTestsRequest) Lists all A/B tests in the account.
This is a convenience which creates an instance of the
ListAbTestsRequest.Builderavoiding the need to create one manually viaListAbTestsRequest.builder()- Parameters:
listAbTestsRequest- AConsumerthat will call methods onListAbTestsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListABTests operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listABTestsPaginator
This is a variant of
listABTests(software.amazon.awssdk.services.bedrockagentcore.model.ListAbTestsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListABTestsPublisher publisher = client.listABTestsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListABTestsPublisher publisher = client.listABTestsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListAbTestsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListAbTestsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listABTests(software.amazon.awssdk.services.bedrockagentcore.model.ListAbTestsRequest)operation.- Parameters:
listAbTestsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listABTestsPaginator
default ListABTestsPublisher listABTestsPaginator(Consumer<ListAbTestsRequest.Builder> listAbTestsRequest) This is a variant of
listABTests(software.amazon.awssdk.services.bedrockagentcore.model.ListAbTestsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListABTestsPublisher publisher = client.listABTestsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListABTestsPublisher publisher = client.listABTestsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListAbTestsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListAbTestsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listABTests(software.amazon.awssdk.services.bedrockagentcore.model.ListAbTestsRequest)operation.
This is a convenience which creates an instance of the
ListAbTestsRequest.Builderavoiding the need to create one manually viaListAbTestsRequest.builder()- Parameters:
listAbTestsRequest- AConsumerthat will call methods onListAbTestsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listActors
Lists all actors in an AgentCore Memory resource. We recommend using pagination to ensure that the operation returns quickly and successfully.
To use this operation, you must have the
bedrock-agentcore:ListActorspermission.- Parameters:
listActorsRequest-- Returns:
- A Java Future containing the result of the ListActors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listActors
default CompletableFuture<ListActorsResponse> listActors(Consumer<ListActorsRequest.Builder> listActorsRequest) Lists all actors in an AgentCore Memory resource. We recommend using pagination to ensure that the operation returns quickly and successfully.
To use this operation, you must have the
bedrock-agentcore:ListActorspermission.
This is a convenience which creates an instance of the
ListActorsRequest.Builderavoiding the need to create one manually viaListActorsRequest.builder()- Parameters:
listActorsRequest- AConsumerthat will call methods onListActorsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListActors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listActorsPaginator
This is a variant of
listActors(software.amazon.awssdk.services.bedrockagentcore.model.ListActorsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListActorsPublisher publisher = client.listActorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListActorsPublisher publisher = client.listActorsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListActorsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListActorsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listActors(software.amazon.awssdk.services.bedrockagentcore.model.ListActorsRequest)operation.- Parameters:
listActorsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listActorsPaginator
default ListActorsPublisher listActorsPaginator(Consumer<ListActorsRequest.Builder> listActorsRequest) This is a variant of
listActors(software.amazon.awssdk.services.bedrockagentcore.model.ListActorsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListActorsPublisher publisher = client.listActorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListActorsPublisher publisher = client.listActorsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListActorsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListActorsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listActors(software.amazon.awssdk.services.bedrockagentcore.model.ListActorsRequest)operation.
This is a convenience which creates an instance of the
ListActorsRequest.Builderavoiding the need to create one manually viaListActorsRequest.builder()- Parameters:
listActorsRequest- AConsumerthat will call methods onListActorsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBatchEvaluations
default CompletableFuture<ListBatchEvaluationsResponse> listBatchEvaluations(ListBatchEvaluationsRequest listBatchEvaluationsRequest) Lists all batch evaluations in the account, providing summary information about each evaluation's status and configuration.
- Parameters:
listBatchEvaluationsRequest-- Returns:
- A Java Future containing the result of the ListBatchEvaluations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBatchEvaluations
default CompletableFuture<ListBatchEvaluationsResponse> listBatchEvaluations(Consumer<ListBatchEvaluationsRequest.Builder> listBatchEvaluationsRequest) Lists all batch evaluations in the account, providing summary information about each evaluation's status and configuration.
This is a convenience which creates an instance of the
ListBatchEvaluationsRequest.Builderavoiding the need to create one manually viaListBatchEvaluationsRequest.builder()- Parameters:
listBatchEvaluationsRequest- AConsumerthat will call methods onListBatchEvaluationsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListBatchEvaluations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBatchEvaluationsPaginator
default ListBatchEvaluationsPublisher listBatchEvaluationsPaginator(ListBatchEvaluationsRequest listBatchEvaluationsRequest) This is a variant of
listBatchEvaluations(software.amazon.awssdk.services.bedrockagentcore.model.ListBatchEvaluationsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListBatchEvaluationsPublisher publisher = client.listBatchEvaluationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListBatchEvaluationsPublisher publisher = client.listBatchEvaluationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListBatchEvaluationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListBatchEvaluationsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBatchEvaluations(software.amazon.awssdk.services.bedrockagentcore.model.ListBatchEvaluationsRequest)operation.- Parameters:
listBatchEvaluationsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBatchEvaluationsPaginator
default ListBatchEvaluationsPublisher listBatchEvaluationsPaginator(Consumer<ListBatchEvaluationsRequest.Builder> listBatchEvaluationsRequest) This is a variant of
listBatchEvaluations(software.amazon.awssdk.services.bedrockagentcore.model.ListBatchEvaluationsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListBatchEvaluationsPublisher publisher = client.listBatchEvaluationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListBatchEvaluationsPublisher publisher = client.listBatchEvaluationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListBatchEvaluationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListBatchEvaluationsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBatchEvaluations(software.amazon.awssdk.services.bedrockagentcore.model.ListBatchEvaluationsRequest)operation.
This is a convenience which creates an instance of the
ListBatchEvaluationsRequest.Builderavoiding the need to create one manually viaListBatchEvaluationsRequest.builder()- Parameters:
listBatchEvaluationsRequest- AConsumerthat will call methods onListBatchEvaluationsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBrowserSessions
default CompletableFuture<ListBrowserSessionsResponse> listBrowserSessions(ListBrowserSessionsRequest listBrowserSessionsRequest) Retrieves a list of browser sessions in Amazon Bedrock AgentCore that match the specified criteria. This operation returns summary information about each session, including identifiers, status, and timestamps.
You can filter the results by browser identifier and session status. The operation supports pagination to handle large result sets efficiently.
We recommend using pagination to ensure that the operation returns quickly and successfully when retrieving large numbers of sessions.
The following operations are related to
ListBrowserSessions:- Parameters:
listBrowserSessionsRequest-- Returns:
- A Java Future containing the result of the ListBrowserSessions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBrowserSessions
default CompletableFuture<ListBrowserSessionsResponse> listBrowserSessions(Consumer<ListBrowserSessionsRequest.Builder> listBrowserSessionsRequest) Retrieves a list of browser sessions in Amazon Bedrock AgentCore that match the specified criteria. This operation returns summary information about each session, including identifiers, status, and timestamps.
You can filter the results by browser identifier and session status. The operation supports pagination to handle large result sets efficiently.
We recommend using pagination to ensure that the operation returns quickly and successfully when retrieving large numbers of sessions.
The following operations are related to
ListBrowserSessions:
This is a convenience which creates an instance of the
ListBrowserSessionsRequest.Builderavoiding the need to create one manually viaListBrowserSessionsRequest.builder()- Parameters:
listBrowserSessionsRequest- AConsumerthat will call methods onListBrowserSessionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListBrowserSessions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCodeInterpreterSessions
default CompletableFuture<ListCodeInterpreterSessionsResponse> listCodeInterpreterSessions(ListCodeInterpreterSessionsRequest listCodeInterpreterSessionsRequest) Retrieves a list of code interpreter sessions in Amazon Bedrock AgentCore that match the specified criteria. This operation returns summary information about each session, including identifiers, status, and timestamps.
You can filter the results by code interpreter identifier and session status. The operation supports pagination to handle large result sets efficiently.
We recommend using pagination to ensure that the operation returns quickly and successfully when retrieving large numbers of sessions.
The following operations are related to
ListCodeInterpreterSessions:- Parameters:
listCodeInterpreterSessionsRequest-- Returns:
- A Java Future containing the result of the ListCodeInterpreterSessions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCodeInterpreterSessions
default CompletableFuture<ListCodeInterpreterSessionsResponse> listCodeInterpreterSessions(Consumer<ListCodeInterpreterSessionsRequest.Builder> listCodeInterpreterSessionsRequest) Retrieves a list of code interpreter sessions in Amazon Bedrock AgentCore that match the specified criteria. This operation returns summary information about each session, including identifiers, status, and timestamps.
You can filter the results by code interpreter identifier and session status. The operation supports pagination to handle large result sets efficiently.
We recommend using pagination to ensure that the operation returns quickly and successfully when retrieving large numbers of sessions.
The following operations are related to
ListCodeInterpreterSessions:
This is a convenience which creates an instance of the
ListCodeInterpreterSessionsRequest.Builderavoiding the need to create one manually viaListCodeInterpreterSessionsRequest.builder()- Parameters:
listCodeInterpreterSessionsRequest- AConsumerthat will call methods onListCodeInterpreterSessionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListCodeInterpreterSessions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEvents
Lists events in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
To use this operation, you must have the
bedrock-agentcore:ListEventspermission.- Parameters:
listEventsRequest-- Returns:
- A Java Future containing the result of the ListEvents operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEvents
default CompletableFuture<ListEventsResponse> listEvents(Consumer<ListEventsRequest.Builder> listEventsRequest) Lists events in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
To use this operation, you must have the
bedrock-agentcore:ListEventspermission.
This is a convenience which creates an instance of the
ListEventsRequest.Builderavoiding the need to create one manually viaListEventsRequest.builder()- Parameters:
listEventsRequest- AConsumerthat will call methods onListEventsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListEvents operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventsPaginator
This is a variant of
listEvents(software.amazon.awssdk.services.bedrockagentcore.model.ListEventsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListEventsPublisher publisher = client.listEventsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListEventsPublisher publisher = client.listEventsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListEventsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListEventsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEvents(software.amazon.awssdk.services.bedrockagentcore.model.ListEventsRequest)operation.- Parameters:
listEventsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventsPaginator
default ListEventsPublisher listEventsPaginator(Consumer<ListEventsRequest.Builder> listEventsRequest) This is a variant of
listEvents(software.amazon.awssdk.services.bedrockagentcore.model.ListEventsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListEventsPublisher publisher = client.listEventsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListEventsPublisher publisher = client.listEventsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListEventsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListEventsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEvents(software.amazon.awssdk.services.bedrockagentcore.model.ListEventsRequest)operation.
This is a convenience which creates an instance of the
ListEventsRequest.Builderavoiding the need to create one manually viaListEventsRequest.builder()- Parameters:
listEventsRequest- AConsumerthat will call methods onListEventsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemoryExtractionJobs
default CompletableFuture<ListMemoryExtractionJobsResponse> listMemoryExtractionJobs(ListMemoryExtractionJobsRequest listMemoryExtractionJobsRequest) Lists all long-term memory extraction jobs that are eligible to be started with optional filtering.
To use this operation, you must have the
bedrock-agentcore:ListMemoryExtractionJobspermission.- Parameters:
listMemoryExtractionJobsRequest-- Returns:
- A Java Future containing the result of the ListMemoryExtractionJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemoryExtractionJobs
default CompletableFuture<ListMemoryExtractionJobsResponse> listMemoryExtractionJobs(Consumer<ListMemoryExtractionJobsRequest.Builder> listMemoryExtractionJobsRequest) Lists all long-term memory extraction jobs that are eligible to be started with optional filtering.
To use this operation, you must have the
bedrock-agentcore:ListMemoryExtractionJobspermission.
This is a convenience which creates an instance of the
ListMemoryExtractionJobsRequest.Builderavoiding the need to create one manually viaListMemoryExtractionJobsRequest.builder()- Parameters:
listMemoryExtractionJobsRequest- AConsumerthat will call methods onListMemoryExtractionJobsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListMemoryExtractionJobs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemoryExtractionJobsPaginator
default ListMemoryExtractionJobsPublisher listMemoryExtractionJobsPaginator(ListMemoryExtractionJobsRequest listMemoryExtractionJobsRequest) This is a variant of
listMemoryExtractionJobs(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryExtractionJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListMemoryExtractionJobsPublisher publisher = client.listMemoryExtractionJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListMemoryExtractionJobsPublisher publisher = client.listMemoryExtractionJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryExtractionJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryExtractionJobsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMemoryExtractionJobs(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryExtractionJobsRequest)operation.- Parameters:
listMemoryExtractionJobsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemoryExtractionJobsPaginator
default ListMemoryExtractionJobsPublisher listMemoryExtractionJobsPaginator(Consumer<ListMemoryExtractionJobsRequest.Builder> listMemoryExtractionJobsRequest) This is a variant of
listMemoryExtractionJobs(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryExtractionJobsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListMemoryExtractionJobsPublisher publisher = client.listMemoryExtractionJobsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListMemoryExtractionJobsPublisher publisher = client.listMemoryExtractionJobsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryExtractionJobsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryExtractionJobsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMemoryExtractionJobs(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryExtractionJobsRequest)operation.
This is a convenience which creates an instance of the
ListMemoryExtractionJobsRequest.Builderavoiding the need to create one manually viaListMemoryExtractionJobsRequest.builder()- Parameters:
listMemoryExtractionJobsRequest- AConsumerthat will call methods onListMemoryExtractionJobsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemoryRecords
default CompletableFuture<ListMemoryRecordsResponse> listMemoryRecords(ListMemoryRecordsRequest listMemoryRecordsRequest) Lists memory records in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
To use this operation, you must have the
bedrock-agentcore:ListMemoryRecordspermission.- Parameters:
listMemoryRecordsRequest-- Returns:
- A Java Future containing the result of the ListMemoryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemoryRecords
default CompletableFuture<ListMemoryRecordsResponse> listMemoryRecords(Consumer<ListMemoryRecordsRequest.Builder> listMemoryRecordsRequest) Lists memory records in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
To use this operation, you must have the
bedrock-agentcore:ListMemoryRecordspermission.
This is a convenience which creates an instance of the
ListMemoryRecordsRequest.Builderavoiding the need to create one manually viaListMemoryRecordsRequest.builder()- Parameters:
listMemoryRecordsRequest- AConsumerthat will call methods onListMemoryRecordsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListMemoryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemoryRecordsPaginator
default ListMemoryRecordsPublisher listMemoryRecordsPaginator(ListMemoryRecordsRequest listMemoryRecordsRequest) This is a variant of
listMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryRecordsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListMemoryRecordsPublisher publisher = client.listMemoryRecordsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListMemoryRecordsPublisher publisher = client.listMemoryRecordsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryRecordsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryRecordsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryRecordsRequest)operation.- Parameters:
listMemoryRecordsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemoryRecordsPaginator
default ListMemoryRecordsPublisher listMemoryRecordsPaginator(Consumer<ListMemoryRecordsRequest.Builder> listMemoryRecordsRequest) This is a variant of
listMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryRecordsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListMemoryRecordsPublisher publisher = client.listMemoryRecordsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListMemoryRecordsPublisher publisher = client.listMemoryRecordsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryRecordsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryRecordsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.ListMemoryRecordsRequest)operation.
This is a convenience which creates an instance of the
ListMemoryRecordsRequest.Builderavoiding the need to create one manually viaListMemoryRecordsRequest.builder()- Parameters:
listMemoryRecordsRequest- AConsumerthat will call methods onListMemoryRecordsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPaymentInstruments
default CompletableFuture<ListPaymentInstrumentsResponse> listPaymentInstruments(ListPaymentInstrumentsRequest listPaymentInstrumentsRequest) List payment instruments for a manager.
- Parameters:
listPaymentInstrumentsRequest- Request structure for listing payment instruments.- Returns:
- A Java Future containing the result of the ListPaymentInstruments operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPaymentInstruments
default CompletableFuture<ListPaymentInstrumentsResponse> listPaymentInstruments(Consumer<ListPaymentInstrumentsRequest.Builder> listPaymentInstrumentsRequest) List payment instruments for a manager.
This is a convenience which creates an instance of the
ListPaymentInstrumentsRequest.Builderavoiding the need to create one manually viaListPaymentInstrumentsRequest.builder()- Parameters:
listPaymentInstrumentsRequest- AConsumerthat will call methods onListPaymentInstrumentsRequest.Builderto create a request. Request structure for listing payment instruments.- Returns:
- A Java Future containing the result of the ListPaymentInstruments operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPaymentInstrumentsPaginator
default ListPaymentInstrumentsPublisher listPaymentInstrumentsPaginator(ListPaymentInstrumentsRequest listPaymentInstrumentsRequest) This is a variant of
listPaymentInstruments(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentInstrumentsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListPaymentInstrumentsPublisher publisher = client.listPaymentInstrumentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListPaymentInstrumentsPublisher publisher = client.listPaymentInstrumentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentInstrumentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentInstrumentsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPaymentInstruments(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentInstrumentsRequest)operation.- Parameters:
listPaymentInstrumentsRequest- Request structure for listing payment instruments.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPaymentInstrumentsPaginator
default ListPaymentInstrumentsPublisher listPaymentInstrumentsPaginator(Consumer<ListPaymentInstrumentsRequest.Builder> listPaymentInstrumentsRequest) This is a variant of
listPaymentInstruments(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentInstrumentsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListPaymentInstrumentsPublisher publisher = client.listPaymentInstrumentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListPaymentInstrumentsPublisher publisher = client.listPaymentInstrumentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentInstrumentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentInstrumentsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPaymentInstruments(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentInstrumentsRequest)operation.
This is a convenience which creates an instance of the
ListPaymentInstrumentsRequest.Builderavoiding the need to create one manually viaListPaymentInstrumentsRequest.builder()- Parameters:
listPaymentInstrumentsRequest- AConsumerthat will call methods onListPaymentInstrumentsRequest.Builderto create a request. Request structure for listing payment instruments.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPaymentSessions
default CompletableFuture<ListPaymentSessionsResponse> listPaymentSessions(ListPaymentSessionsRequest listPaymentSessionsRequest) List payment sessions.
- Parameters:
listPaymentSessionsRequest- Request structure for listing payment sessions.- Returns:
- A Java Future containing the result of the ListPaymentSessions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPaymentSessions
default CompletableFuture<ListPaymentSessionsResponse> listPaymentSessions(Consumer<ListPaymentSessionsRequest.Builder> listPaymentSessionsRequest) List payment sessions.
This is a convenience which creates an instance of the
ListPaymentSessionsRequest.Builderavoiding the need to create one manually viaListPaymentSessionsRequest.builder()- Parameters:
listPaymentSessionsRequest- AConsumerthat will call methods onListPaymentSessionsRequest.Builderto create a request. Request structure for listing payment sessions.- Returns:
- A Java Future containing the result of the ListPaymentSessions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPaymentSessionsPaginator
default ListPaymentSessionsPublisher listPaymentSessionsPaginator(ListPaymentSessionsRequest listPaymentSessionsRequest) This is a variant of
listPaymentSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentSessionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListPaymentSessionsPublisher publisher = client.listPaymentSessionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListPaymentSessionsPublisher publisher = client.listPaymentSessionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentSessionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentSessionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPaymentSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentSessionsRequest)operation.- Parameters:
listPaymentSessionsRequest- Request structure for listing payment sessions.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPaymentSessionsPaginator
default ListPaymentSessionsPublisher listPaymentSessionsPaginator(Consumer<ListPaymentSessionsRequest.Builder> listPaymentSessionsRequest) This is a variant of
listPaymentSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentSessionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListPaymentSessionsPublisher publisher = client.listPaymentSessionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListPaymentSessionsPublisher publisher = client.listPaymentSessionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentSessionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentSessionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPaymentSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListPaymentSessionsRequest)operation.
This is a convenience which creates an instance of the
ListPaymentSessionsRequest.Builderavoiding the need to create one manually viaListPaymentSessionsRequest.builder()- Parameters:
listPaymentSessionsRequest- AConsumerthat will call methods onListPaymentSessionsRequest.Builderto create a request. Request structure for listing payment sessions.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendations
default CompletableFuture<ListRecommendationsResponse> listRecommendations(ListRecommendationsRequest listRecommendationsRequest) Lists all recommendations in the account, with optional filtering by status.
- Parameters:
listRecommendationsRequest-- Returns:
- A Java Future containing the result of the ListRecommendations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendations
default CompletableFuture<ListRecommendationsResponse> listRecommendations(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) Lists all recommendations in the account, with optional filtering by status.
This is a convenience which creates an instance of the
ListRecommendationsRequest.Builderavoiding the need to create one manually viaListRecommendationsRequest.builder()- Parameters:
listRecommendationsRequest- AConsumerthat will call methods onListRecommendationsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListRecommendations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationsPaginator
default ListRecommendationsPublisher listRecommendationsPaginator(ListRecommendationsRequest listRecommendationsRequest) This is a variant of
listRecommendations(software.amazon.awssdk.services.bedrockagentcore.model.ListRecommendationsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListRecommendationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListRecommendationsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendations(software.amazon.awssdk.services.bedrockagentcore.model.ListRecommendationsRequest)operation.- Parameters:
listRecommendationsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationsPaginator
default ListRecommendationsPublisher listRecommendationsPaginator(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) This is a variant of
listRecommendations(software.amazon.awssdk.services.bedrockagentcore.model.ListRecommendationsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListRecommendationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListRecommendationsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendations(software.amazon.awssdk.services.bedrockagentcore.model.ListRecommendationsRequest)operation.
This is a convenience which creates an instance of the
ListRecommendationsRequest.Builderavoiding the need to create one manually viaListRecommendationsRequest.builder()- Parameters:
listRecommendationsRequest- AConsumerthat will call methods onListRecommendationsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSessions
default CompletableFuture<ListSessionsResponse> listSessions(ListSessionsRequest listSessionsRequest) Lists sessions in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
Empty sessions are automatically deleted after one day.
To use this operation, you must have the
bedrock-agentcore:ListSessionspermission.- Parameters:
listSessionsRequest-- Returns:
- A Java Future containing the result of the ListSessions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSessions
default CompletableFuture<ListSessionsResponse> listSessions(Consumer<ListSessionsRequest.Builder> listSessionsRequest) Lists sessions in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
Empty sessions are automatically deleted after one day.
To use this operation, you must have the
bedrock-agentcore:ListSessionspermission.
This is a convenience which creates an instance of the
ListSessionsRequest.Builderavoiding the need to create one manually viaListSessionsRequest.builder()- Parameters:
listSessionsRequest- AConsumerthat will call methods onListSessionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListSessions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSessionsPaginator
This is a variant of
listSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListSessionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListSessionsPublisher publisher = client.listSessionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListSessionsPublisher publisher = client.listSessionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListSessionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListSessionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListSessionsRequest)operation.- Parameters:
listSessionsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSessionsPaginator
default ListSessionsPublisher listSessionsPaginator(Consumer<ListSessionsRequest.Builder> listSessionsRequest) This is a variant of
listSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListSessionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.ListSessionsPublisher publisher = client.listSessionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.ListSessionsPublisher publisher = client.listSessionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.ListSessionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.ListSessionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSessions(software.amazon.awssdk.services.bedrockagentcore.model.ListSessionsRequest)operation.
This is a convenience which creates an instance of the
ListSessionsRequest.Builderavoiding the need to create one manually viaListSessionsRequest.builder()- Parameters:
listSessionsRequest- AConsumerthat will call methods onListSessionsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
processPayment
default CompletableFuture<ProcessPaymentResponse> processPayment(ProcessPaymentRequest processPaymentRequest) Processes a payment using a payment instrument within a payment session.
- Parameters:
processPaymentRequest- Request structure for processing a payment.- Returns:
- A Java Future containing the result of the ProcessPayment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
processPayment
default CompletableFuture<ProcessPaymentResponse> processPayment(Consumer<ProcessPaymentRequest.Builder> processPaymentRequest) Processes a payment using a payment instrument within a payment session.
This is a convenience which creates an instance of the
ProcessPaymentRequest.Builderavoiding the need to create one manually viaProcessPaymentRequest.builder()- Parameters:
processPaymentRequest- AConsumerthat will call methods onProcessPaymentRequest.Builderto create a request. Request structure for processing a payment.- Returns:
- A Java Future containing the result of the ProcessPayment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
retrieveMemoryRecords
default CompletableFuture<RetrieveMemoryRecordsResponse> retrieveMemoryRecords(RetrieveMemoryRecordsRequest retrieveMemoryRecordsRequest) Searches for and retrieves memory records from an AgentCore Memory resource based on specified search criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
To use this operation, you must have the
bedrock-agentcore:RetrieveMemoryRecordspermission.- Parameters:
retrieveMemoryRecordsRequest-- Returns:
- A Java Future containing the result of the RetrieveMemoryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
retrieveMemoryRecords
default CompletableFuture<RetrieveMemoryRecordsResponse> retrieveMemoryRecords(Consumer<RetrieveMemoryRecordsRequest.Builder> retrieveMemoryRecordsRequest) Searches for and retrieves memory records from an AgentCore Memory resource based on specified search criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
To use this operation, you must have the
bedrock-agentcore:RetrieveMemoryRecordspermission.
This is a convenience which creates an instance of the
RetrieveMemoryRecordsRequest.Builderavoiding the need to create one manually viaRetrieveMemoryRecordsRequest.builder()- Parameters:
retrieveMemoryRecordsRequest- AConsumerthat will call methods onRetrieveMemoryRecordsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the RetrieveMemoryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
retrieveMemoryRecordsPaginator
default RetrieveMemoryRecordsPublisher retrieveMemoryRecordsPaginator(RetrieveMemoryRecordsRequest retrieveMemoryRecordsRequest) This is a variant of
retrieveMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.RetrieveMemoryRecordsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.RetrieveMemoryRecordsPublisher publisher = client.retrieveMemoryRecordsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.RetrieveMemoryRecordsPublisher publisher = client.retrieveMemoryRecordsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.RetrieveMemoryRecordsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.RetrieveMemoryRecordsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
retrieveMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.RetrieveMemoryRecordsRequest)operation.- Parameters:
retrieveMemoryRecordsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
retrieveMemoryRecordsPaginator
default RetrieveMemoryRecordsPublisher retrieveMemoryRecordsPaginator(Consumer<RetrieveMemoryRecordsRequest.Builder> retrieveMemoryRecordsRequest) This is a variant of
retrieveMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.RetrieveMemoryRecordsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.bedrockagentcore.paginators.RetrieveMemoryRecordsPublisher publisher = client.retrieveMemoryRecordsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.bedrockagentcore.paginators.RetrieveMemoryRecordsPublisher publisher = client.retrieveMemoryRecordsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockagentcore.model.RetrieveMemoryRecordsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockagentcore.model.RetrieveMemoryRecordsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
retrieveMemoryRecords(software.amazon.awssdk.services.bedrockagentcore.model.RetrieveMemoryRecordsRequest)operation.
This is a convenience which creates an instance of the
RetrieveMemoryRecordsRequest.Builderavoiding the need to create one manually viaRetrieveMemoryRecordsRequest.builder()- Parameters:
retrieveMemoryRecordsRequest- AConsumerthat will call methods onRetrieveMemoryRecordsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- InvalidInputException The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
saveBrowserSessionProfile
default CompletableFuture<SaveBrowserSessionProfileResponse> saveBrowserSessionProfile(SaveBrowserSessionProfileRequest saveBrowserSessionProfileRequest) Saves the current state of a browser session as a reusable profile in Amazon Bedrock AgentCore. A browser profile captures persistent browser data such as cookies and local storage from an active session, enabling you to reuse this data in future browser sessions.
To save a browser session profile, you must specify the profile identifier, browser identifier, and session ID. The session must be active when saving the profile. Once saved, the profile can be used with the
StartBrowserSessionoperation to initialize new sessions with the stored browser state.Browser profiles are useful for scenarios that require persistent authentication, maintaining user preferences across sessions, or continuing tasks that depend on previously stored browser data.
The following operations are related to
SaveBrowserSessionProfile:- Parameters:
saveBrowserSessionProfileRequest-- Returns:
- A Java Future containing the result of the SaveBrowserSessionProfile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
saveBrowserSessionProfile
default CompletableFuture<SaveBrowserSessionProfileResponse> saveBrowserSessionProfile(Consumer<SaveBrowserSessionProfileRequest.Builder> saveBrowserSessionProfileRequest) Saves the current state of a browser session as a reusable profile in Amazon Bedrock AgentCore. A browser profile captures persistent browser data such as cookies and local storage from an active session, enabling you to reuse this data in future browser sessions.
To save a browser session profile, you must specify the profile identifier, browser identifier, and session ID. The session must be active when saving the profile. Once saved, the profile can be used with the
StartBrowserSessionoperation to initialize new sessions with the stored browser state.Browser profiles are useful for scenarios that require persistent authentication, maintaining user preferences across sessions, or continuing tasks that depend on previously stored browser data.
The following operations are related to
SaveBrowserSessionProfile:
This is a convenience which creates an instance of the
SaveBrowserSessionProfileRequest.Builderavoiding the need to create one manually viaSaveBrowserSessionProfileRequest.builder()- Parameters:
saveBrowserSessionProfileRequest- AConsumerthat will call methods onSaveBrowserSessionProfileRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the SaveBrowserSessionProfile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchRegistryRecords
default CompletableFuture<SearchRegistryRecordsResponse> searchRegistryRecords(SearchRegistryRecordsRequest searchRegistryRecordsRequest) Searches for registry records using semantic, lexical, or hybrid queries. Returns metadata for matching records ordered by relevance within the specified registry.
- Parameters:
searchRegistryRecordsRequest-- Returns:
- A Java Future containing the result of the SearchRegistryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchRegistryRecords
default CompletableFuture<SearchRegistryRecordsResponse> searchRegistryRecords(Consumer<SearchRegistryRecordsRequest.Builder> searchRegistryRecordsRequest) Searches for registry records using semantic, lexical, or hybrid queries. Returns metadata for matching records ordered by relevance within the specified registry.
This is a convenience which creates an instance of the
SearchRegistryRecordsRequest.Builderavoiding the need to create one manually viaSearchRegistryRecordsRequest.builder()- Parameters:
searchRegistryRecordsRequest- AConsumerthat will call methods onSearchRegistryRecordsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the SearchRegistryRecords operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startBatchEvaluation
default CompletableFuture<StartBatchEvaluationResponse> startBatchEvaluation(StartBatchEvaluationRequest startBatchEvaluationRequest) Starts a batch evaluation job that evaluates agent performance across multiple sessions. Batch evaluations pull agent traces from CloudWatch Logs or an existing online evaluation configuration and run specified evaluators and insights against them.
- Parameters:
startBatchEvaluationRequest-- Returns:
- A Java Future containing the result of the StartBatchEvaluation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startBatchEvaluation
default CompletableFuture<StartBatchEvaluationResponse> startBatchEvaluation(Consumer<StartBatchEvaluationRequest.Builder> startBatchEvaluationRequest) Starts a batch evaluation job that evaluates agent performance across multiple sessions. Batch evaluations pull agent traces from CloudWatch Logs or an existing online evaluation configuration and run specified evaluators and insights against them.
This is a convenience which creates an instance of the
StartBatchEvaluationRequest.Builderavoiding the need to create one manually viaStartBatchEvaluationRequest.builder()- Parameters:
startBatchEvaluationRequest- AConsumerthat will call methods onStartBatchEvaluationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartBatchEvaluation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startBrowserSession
default CompletableFuture<StartBrowserSessionResponse> startBrowserSession(StartBrowserSessionRequest startBrowserSessionRequest) Creates and initializes a browser session in Amazon Bedrock AgentCore. The session enables agents to navigate and interact with web content, extract information from websites, and perform web-based tasks as part of their response generation.
To create a session, you must specify a browser identifier and a name. You can also configure the viewport dimensions to control the visible area of web content. The session remains active until it times out or you explicitly stop it using the
StopBrowserSessionoperation.The following operations are related to
StartBrowserSession:- Parameters:
startBrowserSessionRequest-- Returns:
- A Java Future containing the result of the StartBrowserSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startBrowserSession
default CompletableFuture<StartBrowserSessionResponse> startBrowserSession(Consumer<StartBrowserSessionRequest.Builder> startBrowserSessionRequest) Creates and initializes a browser session in Amazon Bedrock AgentCore. The session enables agents to navigate and interact with web content, extract information from websites, and perform web-based tasks as part of their response generation.
To create a session, you must specify a browser identifier and a name. You can also configure the viewport dimensions to control the visible area of web content. The session remains active until it times out or you explicitly stop it using the
StopBrowserSessionoperation.The following operations are related to
StartBrowserSession:
This is a convenience which creates an instance of the
StartBrowserSessionRequest.Builderavoiding the need to create one manually viaStartBrowserSessionRequest.builder()- Parameters:
startBrowserSessionRequest- AConsumerthat will call methods onStartBrowserSessionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartBrowserSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startCodeInterpreterSession
default CompletableFuture<StartCodeInterpreterSessionResponse> startCodeInterpreterSession(StartCodeInterpreterSessionRequest startCodeInterpreterSessionRequest) Creates and initializes a code interpreter session in Amazon Bedrock AgentCore. The session enables agents to execute code as part of their response generation, supporting programming languages such as Python for data analysis, visualization, and computation tasks.
To create a session, you must specify a code interpreter identifier and a name. The session remains active until it times out or you explicitly stop it using the
StopCodeInterpreterSessionoperation.The following operations are related to
StartCodeInterpreterSession:- Parameters:
startCodeInterpreterSessionRequest-- Returns:
- A Java Future containing the result of the StartCodeInterpreterSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startCodeInterpreterSession
default CompletableFuture<StartCodeInterpreterSessionResponse> startCodeInterpreterSession(Consumer<StartCodeInterpreterSessionRequest.Builder> startCodeInterpreterSessionRequest) Creates and initializes a code interpreter session in Amazon Bedrock AgentCore. The session enables agents to execute code as part of their response generation, supporting programming languages such as Python for data analysis, visualization, and computation tasks.
To create a session, you must specify a code interpreter identifier and a name. The session remains active until it times out or you explicitly stop it using the
StopCodeInterpreterSessionoperation.The following operations are related to
StartCodeInterpreterSession:
This is a convenience which creates an instance of the
StartCodeInterpreterSessionRequest.Builderavoiding the need to create one manually viaStartCodeInterpreterSessionRequest.builder()- Parameters:
startCodeInterpreterSessionRequest- AConsumerthat will call methods onStartCodeInterpreterSessionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartCodeInterpreterSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startMemoryExtractionJob
default CompletableFuture<StartMemoryExtractionJobResponse> startMemoryExtractionJob(StartMemoryExtractionJobRequest startMemoryExtractionJobRequest) Starts a memory extraction job that processes events that failed extraction previously in an AgentCore Memory resource and produces structured memory records. When earlier extraction attempts have left events unprocessed, this job will pick up and extract those as well.
To use this operation, you must have the
bedrock-agentcore:StartMemoryExtractionJobpermission.- Parameters:
startMemoryExtractionJobRequest-- Returns:
- A Java Future containing the result of the StartMemoryExtractionJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startMemoryExtractionJob
default CompletableFuture<StartMemoryExtractionJobResponse> startMemoryExtractionJob(Consumer<StartMemoryExtractionJobRequest.Builder> startMemoryExtractionJobRequest) Starts a memory extraction job that processes events that failed extraction previously in an AgentCore Memory resource and produces structured memory records. When earlier extraction attempts have left events unprocessed, this job will pick up and extract those as well.
To use this operation, you must have the
bedrock-agentcore:StartMemoryExtractionJobpermission.
This is a convenience which creates an instance of the
StartMemoryExtractionJobRequest.Builderavoiding the need to create one manually viaStartMemoryExtractionJobRequest.builder()- Parameters:
startMemoryExtractionJobRequest- AConsumerthat will call methods onStartMemoryExtractionJobRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartMemoryExtractionJob operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- ThrottledException The request was denied due to request throttling. Reduce the frequency of requests and try again.
- ServiceException The service encountered an internal error. Try your request again later.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startRecommendation
default CompletableFuture<StartRecommendationResponse> startRecommendation(StartRecommendationRequest startRecommendationRequest) Starts a recommendation job that analyzes agent traces and generates optimization suggestions for system prompts or tool descriptions to improve agent performance.
- Parameters:
startRecommendationRequest-- Returns:
- A Java Future containing the result of the StartRecommendation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startRecommendation
default CompletableFuture<StartRecommendationResponse> startRecommendation(Consumer<StartRecommendationRequest.Builder> startRecommendationRequest) Starts a recommendation job that analyzes agent traces and generates optimization suggestions for system prompts or tool descriptions to improve agent performance.
This is a convenience which creates an instance of the
StartRecommendationRequest.Builderavoiding the need to create one manually viaStartRecommendationRequest.builder()- Parameters:
startRecommendationRequest- AConsumerthat will call methods onStartRecommendationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartRecommendation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopBatchEvaluation
default CompletableFuture<StopBatchEvaluationResponse> stopBatchEvaluation(StopBatchEvaluationRequest stopBatchEvaluationRequest) Stops a running batch evaluation. Sessions that have already been evaluated retain their results.
- Parameters:
stopBatchEvaluationRequest-- Returns:
- A Java Future containing the result of the StopBatchEvaluation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopBatchEvaluation
default CompletableFuture<StopBatchEvaluationResponse> stopBatchEvaluation(Consumer<StopBatchEvaluationRequest.Builder> stopBatchEvaluationRequest) Stops a running batch evaluation. Sessions that have already been evaluated retain their results.
This is a convenience which creates an instance of the
StopBatchEvaluationRequest.Builderavoiding the need to create one manually viaStopBatchEvaluationRequest.builder()- Parameters:
stopBatchEvaluationRequest- AConsumerthat will call methods onStopBatchEvaluationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StopBatchEvaluation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopBrowserSession
default CompletableFuture<StopBrowserSessionResponse> stopBrowserSession(StopBrowserSessionRequest stopBrowserSessionRequest) Terminates an active browser session in Amazon Bedrock AgentCore. This operation stops the session, releases associated resources, and makes the session unavailable for further use.
To stop a browser session, you must specify both the browser identifier and the session ID. Once stopped, a session cannot be restarted; you must create a new session using
StartBrowserSession.The following operations are related to
StopBrowserSession:- Parameters:
stopBrowserSessionRequest-- Returns:
- A Java Future containing the result of the StopBrowserSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopBrowserSession
default CompletableFuture<StopBrowserSessionResponse> stopBrowserSession(Consumer<StopBrowserSessionRequest.Builder> stopBrowserSessionRequest) Terminates an active browser session in Amazon Bedrock AgentCore. This operation stops the session, releases associated resources, and makes the session unavailable for further use.
To stop a browser session, you must specify both the browser identifier and the session ID. Once stopped, a session cannot be restarted; you must create a new session using
StartBrowserSession.The following operations are related to
StopBrowserSession:
This is a convenience which creates an instance of the
StopBrowserSessionRequest.Builderavoiding the need to create one manually viaStopBrowserSessionRequest.builder()- Parameters:
stopBrowserSessionRequest- AConsumerthat will call methods onStopBrowserSessionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StopBrowserSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopCodeInterpreterSession
default CompletableFuture<StopCodeInterpreterSessionResponse> stopCodeInterpreterSession(StopCodeInterpreterSessionRequest stopCodeInterpreterSessionRequest) Terminates an active code interpreter session in Amazon Bedrock AgentCore. This operation stops the session, releases associated resources, and makes the session unavailable for further use.
To stop a code interpreter session, you must specify both the code interpreter identifier and the session ID. Once stopped, a session cannot be restarted; you must create a new session using
StartCodeInterpreterSession.The following operations are related to
StopCodeInterpreterSession:- Parameters:
stopCodeInterpreterSessionRequest-- Returns:
- A Java Future containing the result of the StopCodeInterpreterSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopCodeInterpreterSession
default CompletableFuture<StopCodeInterpreterSessionResponse> stopCodeInterpreterSession(Consumer<StopCodeInterpreterSessionRequest.Builder> stopCodeInterpreterSessionRequest) Terminates an active code interpreter session in Amazon Bedrock AgentCore. This operation stops the session, releases associated resources, and makes the session unavailable for further use.
To stop a code interpreter session, you must specify both the code interpreter identifier and the session ID. Once stopped, a session cannot be restarted; you must create a new session using
StartCodeInterpreterSession.The following operations are related to
StopCodeInterpreterSession:
This is a convenience which creates an instance of the
StopCodeInterpreterSessionRequest.Builderavoiding the need to create one manually viaStopCodeInterpreterSessionRequest.builder()- Parameters:
stopCodeInterpreterSessionRequest- AConsumerthat will call methods onStopCodeInterpreterSessionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StopCodeInterpreterSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopRuntimeSession
default CompletableFuture<StopRuntimeSessionResponse> stopRuntimeSession(StopRuntimeSessionRequest stopRuntimeSessionRequest) Stops a session that is running in an running AgentCore Runtime agent.
- Parameters:
stopRuntimeSessionRequest-- Returns:
- A Java Future containing the result of the StopRuntimeSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- RetryableConflictException The exception that occurs when there is a retryable conflict performing an operation. This is a temporary condition that may resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- RuntimeClientErrorException The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopRuntimeSession
default CompletableFuture<StopRuntimeSessionResponse> stopRuntimeSession(Consumer<StopRuntimeSessionRequest.Builder> stopRuntimeSessionRequest) Stops a session that is running in an running AgentCore Runtime agent.
This is a convenience which creates an instance of the
StopRuntimeSessionRequest.Builderavoiding the need to create one manually viaStopRuntimeSessionRequest.builder()- Parameters:
stopRuntimeSessionRequest- AConsumerthat will call methods onStopRuntimeSessionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StopRuntimeSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- RetryableConflictException The exception that occurs when there is a retryable conflict performing an operation. This is a temporary condition that may resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- RuntimeClientErrorException The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateABTest
default CompletableFuture<UpdateAbTestResponse> updateABTest(UpdateAbTestRequest updateAbTestRequest) Updates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status.
- Parameters:
updateAbTestRequest-- Returns:
- A Java Future containing the result of the UpdateABTest operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateABTest
default CompletableFuture<UpdateAbTestResponse> updateABTest(Consumer<UpdateAbTestRequest.Builder> updateAbTestRequest) Updates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status.
This is a convenience which creates an instance of the
UpdateAbTestRequest.Builderavoiding the need to create one manually viaUpdateAbTestRequest.builder()- Parameters:
updateAbTestRequest- AConsumerthat will call methods onUpdateAbTestRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateABTest operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- UnauthorizedException This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateBrowserStream
default CompletableFuture<UpdateBrowserStreamResponse> updateBrowserStream(UpdateBrowserStreamRequest updateBrowserStreamRequest) Updates a browser stream. To use this operation, you must have permissions to perform the bedrock:UpdateBrowserStream action.
- Parameters:
updateBrowserStreamRequest-- Returns:
- A Java Future containing the result of the UpdateBrowserStream operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateBrowserStream
default CompletableFuture<UpdateBrowserStreamResponse> updateBrowserStream(Consumer<UpdateBrowserStreamRequest.Builder> updateBrowserStreamRequest) Updates a browser stream. To use this operation, you must have permissions to perform the bedrock:UpdateBrowserStream action.
This is a convenience which creates an instance of the
UpdateBrowserStreamRequest.Builderavoiding the need to create one manually viaUpdateBrowserStreamRequest.builder()- Parameters:
updateBrowserStreamRequest- AConsumerthat will call methods onUpdateBrowserStreamRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateBrowserStream operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.
- AccessDeniedException The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
- ConflictException The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.
- ValidationException The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
- ResourceNotFoundException The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.
- ThrottlingException The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
- InternalServerException The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockAgentCoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aBedrockAgentCoreAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aBedrockAgentCoreAsyncClient.
-