Interface ContextAsyncClient
- 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.
AWS Context is a service that connects to your data where it already lives and builds an agent context that maps your business: what your terms mean, how your numbers are calculated, and which rules apply. AI agents use an agent context to find and interpret the information they need. This API reference describes the operations that you use to connect data sources, create agent contexts, describe your data with ontologies, govern changes with curation policies and proposals, and search, traverse, query, or ask questions of an agent context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionacceptCurationProposal(Consumer<AcceptCurationProposalRequest.Builder> acceptCurationProposalRequest) Accepts a curation proposal and applies its change to the agent context.acceptCurationProposal(AcceptCurationProposalRequest acceptCurationProposalRequest) Accepts a curation proposal and applies its change to the agent context.default CompletableFuture<AgenticRetrieveResponse> agenticRetrieve(Consumer<AgenticRetrieveRequest.Builder> agenticRetrieveRequest) Retrieves ranked context from an agent context for a natural-language question, in a single response.default CompletableFuture<AgenticRetrieveResponse> agenticRetrieve(AgenticRetrieveRequest agenticRetrieveRequest) Retrieves ranked context from an agent context for a natural-language question, in a single response.default CompletableFuture<Void> agenticRetrieveStream(Consumer<AgenticRetrieveStreamRequest.Builder> agenticRetrieveStreamRequest, AgenticRetrieveStreamResponseHandler asyncResponseHandler) Answers a natural-language question against an agent context and streams the work as it happens.default CompletableFuture<Void> agenticRetrieveStream(AgenticRetrieveStreamRequest agenticRetrieveStreamRequest, AgenticRetrieveStreamResponseHandler asyncResponseHandler) Answers a natural-language question against an agent context and streams the work as it happens.associateCurationPolicy(Consumer<AssociateCurationPolicyRequest.Builder> associateCurationPolicyRequest) Associates a curation policy with an agent context.associateCurationPolicy(AssociateCurationPolicyRequest associateCurationPolicyRequest) Associates a curation policy with an agent context.static ContextAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aContextAsyncClient.cancelOntologyInduction(Consumer<CancelOntologyInductionRequest.Builder> cancelOntologyInductionRequest) Cancels an ontology induction that is stillINDUCING.cancelOntologyInduction(CancelOntologyInductionRequest cancelOntologyInductionRequest) Cancels an ontology induction that is stillINDUCING.default CompletableFuture<CancelTaskResponse> cancelTask(Consumer<CancelTaskRequest.Builder> cancelTaskRequest) Cancels a task that isPENDINGorIN_PROGRESS.default CompletableFuture<CancelTaskResponse> cancelTask(CancelTaskRequest cancelTaskRequest) Cancels a task that isPENDINGorIN_PROGRESS.static ContextAsyncClientcreate()Create aContextAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.createAgentContext(Consumer<CreateAgentContextRequest.Builder> createAgentContextRequest) Creates an agent context over one or more connections.createAgentContext(CreateAgentContextRequest createAgentContextRequest) Creates an agent context over one or more connections.default CompletableFuture<CreateChangeSetResponse> createChangeSet(Consumer<CreateChangeSetRequest.Builder> createChangeSetRequest) Proposes a change to an agent context, as ChangeSetOperation items (the same items that ListChangeSetOperations returns), each setting one ofput,update, ordelete.default CompletableFuture<CreateChangeSetResponse> createChangeSet(CreateChangeSetRequest createChangeSetRequest) Proposes a change to an agent context, as ChangeSetOperation items (the same items that ListChangeSetOperations returns), each setting one ofput,update, ordelete.createConnection(Consumer<CreateConnectionRequest.Builder> createConnectionRequest) Creates a connection to a data source, such as an AWS Glue Data Catalog, an Amazon Bedrock knowledge base, or a third-party data catalog through an AWS Glue connection.createConnection(CreateConnectionRequest createConnectionRequest) Creates a connection to a data source, such as an AWS Glue Data Catalog, an Amazon Bedrock knowledge base, or a third-party data catalog through an AWS Glue connection.createCurationPolicy(Consumer<CreateCurationPolicyRequest.Builder> createCurationPolicyRequest) Creates a curation policy, which decides which changes to an agent context are held for review as curation proposals instead of applied automatically.createCurationPolicy(CreateCurationPolicyRequest createCurationPolicyRequest) Creates a curation policy, which decides which changes to an agent context are held for review as curation proposals instead of applied automatically.createCurationPolicyVersion(Consumer<CreateCurationPolicyVersionRequest.Builder> createCurationPolicyVersionRequest) Publishes a curation policy's working copy as a new, immutable version.createCurationPolicyVersion(CreateCurationPolicyVersionRequest createCurationPolicyVersionRequest) Publishes a curation policy's working copy as a new, immutable version.default CompletableFuture<CreateOntologyResponse> createOntology(Consumer<CreateOntologyRequest.Builder> createOntologyRequest) Creates an ontology from an OWL ontology document.default CompletableFuture<CreateOntologyResponse> createOntology(CreateOntologyRequest createOntologyRequest) Creates an ontology from an OWL ontology document.deleteAgentContext(Consumer<DeleteAgentContextRequest.Builder> deleteAgentContextRequest) Deletes an agent context.deleteAgentContext(DeleteAgentContextRequest deleteAgentContextRequest) Deletes an agent context.deleteConnection(Consumer<DeleteConnectionRequest.Builder> deleteConnectionRequest) Deletes a connection.deleteConnection(DeleteConnectionRequest deleteConnectionRequest) Deletes a connection.deleteCurationPolicy(Consumer<DeleteCurationPolicyRequest.Builder> deleteCurationPolicyRequest) Deletes a curation policy.deleteCurationPolicy(DeleteCurationPolicyRequest deleteCurationPolicyRequest) Deletes a curation policy.default CompletableFuture<DeleteOntologyResponse> deleteOntology(Consumer<DeleteOntologyRequest.Builder> deleteOntologyRequest) Deletes an ontology that you own and all of its versions.default CompletableFuture<DeleteOntologyResponse> deleteOntology(DeleteOntologyRequest deleteOntologyRequest) Deletes an ontology that you own and all of its versions.deleteOntologyInduction(Consumer<DeleteOntologyInductionRequest.Builder> deleteOntologyInductionRequest) Deletes an ontology induction.deleteOntologyInduction(DeleteOntologyInductionRequest deleteOntologyInductionRequest) Deletes an ontology induction.deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Removes the resource-based policy from an agent context.deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) Removes the resource-based policy from an agent context.disassociateCurationPolicy(Consumer<DisassociateCurationPolicyRequest.Builder> disassociateCurationPolicyRequest) Disassociates a curation policy from an agent context, so the agent context stops enforcing it.disassociateCurationPolicy(DisassociateCurationPolicyRequest disassociateCurationPolicyRequest) Disassociates a curation policy from an agent context, so the agent context stops enforcing it.default CompletableFuture<ExecuteSqlResponse> executeSql(Consumer<ExecuteSqlRequest.Builder> executeSqlRequest) Runs one read-only SQL query over the tables of a connection in an agent context, and returns the result as typed columns and rows.default CompletableFuture<ExecuteSqlResponse> executeSql(ExecuteSqlRequest executeSqlRequest) Runs one read-only SQL query over the tables of a connection in an agent context, and returns the result as typed columns and rows.default CompletableFuture<GetAgentContextResponse> getAgentContext(Consumer<GetAgentContextRequest.Builder> getAgentContextRequest) Returns an agent context's configuration and status.default CompletableFuture<GetAgentContextResponse> getAgentContext(GetAgentContextRequest getAgentContextRequest) Returns an agent context's configuration and status.default CompletableFuture<GetChangeSetResponse> getChangeSet(Consumer<GetChangeSetRequest.Builder> getChangeSetRequest) Returns one change set's metadata: itsstatusand the other fields of the change set, without its operations.default CompletableFuture<GetChangeSetResponse> getChangeSet(GetChangeSetRequest getChangeSetRequest) Returns one change set's metadata: itsstatusand the other fields of the change set, without its operations.default CompletableFuture<GetConnectionResponse> getConnection(Consumer<GetConnectionRequest.Builder> getConnectionRequest) Returns a connection's configuration and status.default CompletableFuture<GetConnectionResponse> getConnection(GetConnectionRequest getConnectionRequest) Returns a connection's configuration and status.getCurationPolicy(Consumer<GetCurationPolicyRequest.Builder> getCurationPolicyRequest) Returns a curation policy's configuration, status, and policy document.getCurationPolicy(GetCurationPolicyRequest getCurationPolicyRequest) Returns a curation policy's configuration, status, and policy document.getCurationProposal(Consumer<GetCurationProposalRequest.Builder> getCurationProposalRequest) Returns a curation proposal and a summary of the change that it holds for review.getCurationProposal(GetCurationProposalRequest getCurationProposalRequest) Returns a curation proposal and a summary of the change that it holds for review.default CompletableFuture<GetOntologyResponse> getOntology(Consumer<GetOntologyRequest.Builder> getOntologyRequest) Returns an ontology's status and one of its versions.default CompletableFuture<GetOntologyResponse> getOntology(GetOntologyRequest getOntologyRequest) Returns an ontology's status and one of its versions.getOntologyInduction(Consumer<GetOntologyInductionRequest.Builder> getOntologyInductionRequest) Returns an ontology induction's status, and, once it is a draft, the ontology it created.getOntologyInduction(GetOntologyInductionRequest getOntologyInductionRequest) Returns an ontology induction's status, and, once it is a draft, the ontology it created.getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Returns the resource-based policy attached to an agent context, with its revision ID.getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Returns the resource-based policy attached to an agent context, with its revision ID.default CompletableFuture<GetTaskResponse> getTask(Consumer<GetTaskRequest.Builder> getTaskRequest) Returns a task's configuration, status, and results.default CompletableFuture<GetTaskResponse> getTask(GetTaskRequest getTaskRequest) Returns a task's configuration, status, and results.listAgentContexts(Consumer<ListAgentContextsRequest.Builder> listAgentContextsRequest) Lists the agent contexts in your account.listAgentContexts(ListAgentContextsRequest listAgentContextsRequest) Lists the agent contexts in your account.default ListAgentContextsPublisherlistAgentContextsPaginator(Consumer<ListAgentContextsRequest.Builder> listAgentContextsRequest) This is a variant oflistAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest)operation.default ListAgentContextsPublisherlistAgentContextsPaginator(ListAgentContextsRequest listAgentContextsRequest) This is a variant oflistAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest)operation.listChangeSetOperations(Consumer<ListChangeSetOperationsRequest.Builder> listChangeSetOperationsRequest) Returns what one change set wrote: every operation it holds (the nodes and relationships it adds, updates, or deletes), one page at a time, in order.listChangeSetOperations(ListChangeSetOperationsRequest listChangeSetOperationsRequest) Returns what one change set wrote: every operation it holds (the nodes and relationships it adds, updates, or deletes), one page at a time, in order.default ListChangeSetOperationsPublisherlistChangeSetOperationsPaginator(Consumer<ListChangeSetOperationsRequest.Builder> listChangeSetOperationsRequest) This is a variant oflistChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest)operation.default ListChangeSetOperationsPublisherlistChangeSetOperationsPaginator(ListChangeSetOperationsRequest listChangeSetOperationsRequest) This is a variant oflistChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest)operation.default CompletableFuture<ListChangeSetsResponse> listChangeSets(Consumer<ListChangeSetsRequest.Builder> listChangeSetsRequest) Lists an agent context's change sets that have the specifiedstatus, newest first.default CompletableFuture<ListChangeSetsResponse> listChangeSets(ListChangeSetsRequest listChangeSetsRequest) Lists an agent context's change sets that have the specifiedstatus, newest first.default ListChangeSetsPublisherlistChangeSetsPaginator(Consumer<ListChangeSetsRequest.Builder> listChangeSetsRequest) This is a variant oflistChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest)operation.default ListChangeSetsPublisherlistChangeSetsPaginator(ListChangeSetsRequest listChangeSetsRequest) This is a variant oflistChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest)operation.default CompletableFuture<ListConnectionsResponse> listConnections(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) Lists the connections in your account, most recently updated first.default CompletableFuture<ListConnectionsResponse> listConnections(ListConnectionsRequest listConnectionsRequest) Lists the connections in your account, most recently updated first.default ListConnectionsPublisherlistConnectionsPaginator(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) This is a variant oflistConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest)operation.default ListConnectionsPublisherlistConnectionsPaginator(ListConnectionsRequest listConnectionsRequest) This is a variant oflistConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest)operation.listCurationPolicies(Consumer<ListCurationPoliciesRequest.Builder> listCurationPoliciesRequest) Lists the curation policies in your account, or the ones associated with an agent context.listCurationPolicies(ListCurationPoliciesRequest listCurationPoliciesRequest) Lists the curation policies in your account, or the ones associated with an agent context.default ListCurationPoliciesPublisherlistCurationPoliciesPaginator(Consumer<ListCurationPoliciesRequest.Builder> listCurationPoliciesRequest) This is a variant oflistCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest)operation.default ListCurationPoliciesPublisherlistCurationPoliciesPaginator(ListCurationPoliciesRequest listCurationPoliciesRequest) This is a variant oflistCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest)operation.listCurationProposals(Consumer<ListCurationProposalsRequest.Builder> listCurationProposalsRequest) Lists an agent context's curation proposals, newest first.listCurationProposals(ListCurationProposalsRequest listCurationProposalsRequest) Lists an agent context's curation proposals, newest first.default ListCurationProposalsPublisherlistCurationProposalsPaginator(Consumer<ListCurationProposalsRequest.Builder> listCurationProposalsRequest) This is a variant oflistCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest)operation.default ListCurationProposalsPublisherlistCurationProposalsPaginator(ListCurationProposalsRequest listCurationProposalsRequest) This is a variant oflistCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest)operation.default CompletableFuture<ListOntologiesResponse> listOntologies(Consumer<ListOntologiesRequest.Builder> listOntologiesRequest) Lists the ontologies in your account, with the status of each.default CompletableFuture<ListOntologiesResponse> listOntologies(ListOntologiesRequest listOntologiesRequest) Lists the ontologies in your account, with the status of each.default ListOntologiesPublisherlistOntologiesPaginator(Consumer<ListOntologiesRequest.Builder> listOntologiesRequest) This is a variant oflistOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest)operation.default ListOntologiesPublisherlistOntologiesPaginator(ListOntologiesRequest listOntologiesRequest) This is a variant oflistOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest)operation.listOntologyInductions(Consumer<ListOntologyInductionsRequest.Builder> listOntologyInductionsRequest) Lists the ontology inductions in your account.listOntologyInductions(ListOntologyInductionsRequest listOntologyInductionsRequest) Lists the ontology inductions in your account.default ListOntologyInductionsPublisherlistOntologyInductionsPaginator(Consumer<ListOntologyInductionsRequest.Builder> listOntologyInductionsRequest) This is a variant oflistOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest)operation.default ListOntologyInductionsPublisherlistOntologyInductionsPaginator(ListOntologyInductionsRequest listOntologyInductionsRequest) This is a variant oflistOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags on an agent context, connection, curation policy, customer-owned ontology, or ontology induction.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags on an agent context, connection, curation policy, customer-owned ontology, or ontology induction.default CompletableFuture<ListTasksResponse> listTasks(Consumer<ListTasksRequest.Builder> listTasksRequest) Lists an agent context's tasks, newest first.default CompletableFuture<ListTasksResponse> listTasks(ListTasksRequest listTasksRequest) Lists an agent context's tasks, newest first.default ListTasksPublisherlistTasksPaginator(Consumer<ListTasksRequest.Builder> listTasksRequest) This is a variant oflistTasks(software.amazon.awssdk.services.context.model.ListTasksRequest)operation.default ListTasksPublisherlistTasksPaginator(ListTasksRequest listTasksRequest) This is a variant oflistTasks(software.amazon.awssdk.services.context.model.ListTasksRequest)operation.putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Attaches a resource-based policy to an agent context, or replaces the one it has.putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) Attaches a resource-based policy to an agent context, or replaces the one it has.default CompletableFuture<PutTraceResponse> putTrace(Consumer<PutTraceRequest.Builder> putTraceRequest) Submits an agent's execution traces so that AWS Context can extract reusable knowledge and skills from them.default CompletableFuture<PutTraceResponse> putTrace(PutTraceRequest putTraceRequest) Submits an agent's execution traces so that AWS Context can extract reusable knowledge and skills from them.rejectCurationProposal(Consumer<RejectCurationProposalRequest.Builder> rejectCurationProposalRequest) Rejects a curation proposal.rejectCurationProposal(RejectCurationProposalRequest rejectCurationProposalRequest) Rejects a curation proposal.searchAgentContext(Consumer<SearchAgentContextRequest.Builder> searchAgentContextRequest) Searches an agent context for entities matching a query.searchAgentContext(SearchAgentContextRequest searchAgentContextRequest) Searches an agent context for entities matching a query.default SearchAgentContextPublishersearchAgentContextPaginator(Consumer<SearchAgentContextRequest.Builder> searchAgentContextRequest) This is a variant ofsearchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest)operation.default SearchAgentContextPublishersearchAgentContextPaginator(SearchAgentContextRequest searchAgentContextRequest) This is a variant ofsearchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest)operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstartOntologyInduction(Consumer<StartOntologyInductionRequest.Builder> startOntologyInductionRequest) Starts an ontology induction, which induces a draft ontology from the documents that you provide.startOntologyInduction(StartOntologyInductionRequest startOntologyInductionRequest) Starts an ontology induction, which induces a draft ontology from the documents that you provide.default CompletableFuture<StartTaskResponse> startTask(Consumer<StartTaskRequest.Builder> startTaskRequest) Starts a task that imports a data dictionary, verified queries, or ontologies into an agent context.default CompletableFuture<StartTaskResponse> startTask(StartTaskRequest startTaskRequest) Starts a task that imports a data dictionary, verified queries, or ontologies into an agent context.default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to an agent context, connection, curation policy, customer-owned ontology, or ontology induction.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds tags to an agent context, connection, curation policy, customer-owned ontology, or ontology induction.traverseAgentContext(Consumer<TraverseAgentContextRequest.Builder> traverseAgentContextRequest) Returns the neighbors of a seed node in an agent context, each with its properties, hop distance, and the edges that connect it to the seed.traverseAgentContext(TraverseAgentContextRequest traverseAgentContextRequest) Returns the neighbors of a seed node in an agent context, each with its properties, hop distance, and the edges that connect it to the seed.default TraverseAgentContextPublishertraverseAgentContextPaginator(Consumer<TraverseAgentContextRequest.Builder> traverseAgentContextRequest) This is a variant oftraverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest)operation.default TraverseAgentContextPublishertraverseAgentContextPaginator(TraverseAgentContextRequest traverseAgentContextRequest) This is a variant oftraverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest)operation.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from an agent context, connection, curation policy, customer-owned ontology, or ontology induction.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from an agent context, connection, curation policy, customer-owned ontology, or ontology induction.updateAgentContext(Consumer<UpdateAgentContextRequest.Builder> updateAgentContextRequest) Updates an agent context's configuration.updateAgentContext(UpdateAgentContextRequest updateAgentContextRequest) Updates an agent context's configuration.default CompletableFuture<UpdateChangeSetResponse> updateChangeSet(Consumer<UpdateChangeSetRequest.Builder> updateChangeSetRequest) Drops operations from a change set that is held for curator review.default CompletableFuture<UpdateChangeSetResponse> updateChangeSet(UpdateChangeSetRequest updateChangeSetRequest) Drops operations from a change set that is held for curator review.updateConnection(Consumer<UpdateConnectionRequest.Builder> updateConnectionRequest) Updates a connection's configuration.updateConnection(UpdateConnectionRequest updateConnectionRequest) Updates a connection's configuration.updateCurationPolicy(Consumer<UpdateCurationPolicyRequest.Builder> updateCurationPolicyRequest) Updates a curation policy's working copy.updateCurationPolicy(UpdateCurationPolicyRequest updateCurationPolicyRequest) Updates a curation policy's working copy.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
-
acceptCurationProposal
default CompletableFuture<AcceptCurationProposalResponse> acceptCurationProposal(AcceptCurationProposalRequest acceptCurationProposalRequest) Accepts a curation proposal and applies its change to the agent context.
- Parameters:
acceptCurationProposalRequest-- Returns:
- A Java Future containing the result of the AcceptCurationProposal 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
acceptCurationProposal
default CompletableFuture<AcceptCurationProposalResponse> acceptCurationProposal(Consumer<AcceptCurationProposalRequest.Builder> acceptCurationProposalRequest) Accepts a curation proposal and applies its change to the agent context.
This is a convenience which creates an instance of the
AcceptCurationProposalRequest.Builderavoiding the need to create one manually viaAcceptCurationProposalRequest.builder()- Parameters:
acceptCurationProposalRequest- AConsumerthat will call methods onAcceptCurationProposalRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the AcceptCurationProposal 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
agenticRetrieve
default CompletableFuture<AgenticRetrieveResponse> agenticRetrieve(AgenticRetrieveRequest agenticRetrieveRequest) Retrieves ranked context from an agent context for a natural-language question, in a single response. Send the question as a user message in
messagesand read the rankedretrievedContext. AWS Context searches and traverses the agent context for you until it has gathered enough context or reachesmaxIterations. Prefer this over SearchAgentContext when finding the context needs more than one search or hop. To stream progress and receive a generated answer, use AgenticRetrieveStream.- Parameters:
agenticRetrieveRequest- A question to answer against an agent context, and optional settings for how the answer is retrieved and returned.- Returns:
- A Java Future containing the result of the AgenticRetrieve 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
agenticRetrieve
default CompletableFuture<AgenticRetrieveResponse> agenticRetrieve(Consumer<AgenticRetrieveRequest.Builder> agenticRetrieveRequest) Retrieves ranked context from an agent context for a natural-language question, in a single response. Send the question as a user message in
messagesand read the rankedretrievedContext. AWS Context searches and traverses the agent context for you until it has gathered enough context or reachesmaxIterations. Prefer this over SearchAgentContext when finding the context needs more than one search or hop. To stream progress and receive a generated answer, use AgenticRetrieveStream.
This is a convenience which creates an instance of the
AgenticRetrieveRequest.Builderavoiding the need to create one manually viaAgenticRetrieveRequest.builder()- Parameters:
agenticRetrieveRequest- AConsumerthat will call methods onAgenticRetrieveRequest.Builderto create a request. A question to answer against an agent context, and optional settings for how the answer is retrieved and returned.- Returns:
- A Java Future containing the result of the AgenticRetrieve 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
agenticRetrieveStream
default CompletableFuture<Void> agenticRetrieveStream(AgenticRetrieveStreamRequest agenticRetrieveStreamRequest, AgenticRetrieveStreamResponseHandler asyncResponseHandler) Answers a natural-language question against an agent context and streams the work as it happens. The response is an event stream that contains progress events while AWS Context searches the agent context, the answer in chunks as it is generated, and a final result. The final result contains the answer and the ranked retrieved context.
- Parameters:
agenticRetrieveStreamRequest- A question to answer against an agent context, and optional settings for how the answer is retrieved.- Returns:
- A Java Future containing the result of the AgenticRetrieveStream 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
agenticRetrieveStream
default CompletableFuture<Void> agenticRetrieveStream(Consumer<AgenticRetrieveStreamRequest.Builder> agenticRetrieveStreamRequest, AgenticRetrieveStreamResponseHandler asyncResponseHandler) Answers a natural-language question against an agent context and streams the work as it happens. The response is an event stream that contains progress events while AWS Context searches the agent context, the answer in chunks as it is generated, and a final result. The final result contains the answer and the ranked retrieved context.
This is a convenience which creates an instance of the
AgenticRetrieveStreamRequest.Builderavoiding the need to create one manually viaAgenticRetrieveStreamRequest.builder()- Parameters:
agenticRetrieveStreamRequest- AConsumerthat will call methods onAgenticRetrieveStreamRequest.Builderto create a request. A question to answer against an agent context, and optional settings for how the answer is retrieved.- Returns:
- A Java Future containing the result of the AgenticRetrieveStream 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateCurationPolicy
default CompletableFuture<AssociateCurationPolicyResponse> associateCurationPolicy(AssociateCurationPolicyRequest associateCurationPolicyRequest) Associates a curation policy with an agent context. The agent context enforces the policy's latest published version, including versions published later. Returns the association.
- Parameters:
associateCurationPolicyRequest-- Returns:
- A Java Future containing the result of the AssociateCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateCurationPolicy
default CompletableFuture<AssociateCurationPolicyResponse> associateCurationPolicy(Consumer<AssociateCurationPolicyRequest.Builder> associateCurationPolicyRequest) Associates a curation policy with an agent context. The agent context enforces the policy's latest published version, including versions published later. Returns the association.
This is a convenience which creates an instance of the
AssociateCurationPolicyRequest.Builderavoiding the need to create one manually viaAssociateCurationPolicyRequest.builder()- Parameters:
associateCurationPolicyRequest- AConsumerthat will call methods onAssociateCurationPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the AssociateCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelOntologyInduction
default CompletableFuture<CancelOntologyInductionResponse> cancelOntologyInduction(CancelOntologyInductionRequest cancelOntologyInductionRequest) Cancels an ontology induction that is still
INDUCING. The induction's status changes toCANCELLED, and no ontology is created.- Parameters:
cancelOntologyInductionRequest-- Returns:
- A Java Future containing the result of the CancelOntologyInduction 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelOntologyInduction
default CompletableFuture<CancelOntologyInductionResponse> cancelOntologyInduction(Consumer<CancelOntologyInductionRequest.Builder> cancelOntologyInductionRequest) Cancels an ontology induction that is still
INDUCING. The induction's status changes toCANCELLED, and no ontology is created.
This is a convenience which creates an instance of the
CancelOntologyInductionRequest.Builderavoiding the need to create one manually viaCancelOntologyInductionRequest.builder()- Parameters:
cancelOntologyInductionRequest- AConsumerthat will call methods onCancelOntologyInductionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CancelOntologyInduction 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelTask
Cancels a task that is
PENDINGorIN_PROGRESS. The task moves toCANCELLING, and then toCANCELLEDwhen it stops. AWS Context keeps the change sets that the task already created. Canceling aCANCELLEDtask returns it unchanged. Canceling aCANCELLINGtask returns it unchanged, unless the task's work has already stopped, in which case the cancel completes and the task is returned asCANCELLED. Canceling aCOMPLETEDorFAILEDtask fails withConflictException.- Parameters:
cancelTaskRequest-- Returns:
- A Java Future containing the result of the CancelTask 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelTask
default CompletableFuture<CancelTaskResponse> cancelTask(Consumer<CancelTaskRequest.Builder> cancelTaskRequest) Cancels a task that is
PENDINGorIN_PROGRESS. The task moves toCANCELLING, and then toCANCELLEDwhen it stops. AWS Context keeps the change sets that the task already created. Canceling aCANCELLEDtask returns it unchanged. Canceling aCANCELLINGtask returns it unchanged, unless the task's work has already stopped, in which case the cancel completes and the task is returned asCANCELLED. Canceling aCOMPLETEDorFAILEDtask fails withConflictException.
This is a convenience which creates an instance of the
CancelTaskRequest.Builderavoiding the need to create one manually viaCancelTaskRequest.builder()- Parameters:
cancelTaskRequest- AConsumerthat will call methods onCancelTaskRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CancelTask 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAgentContext
default CompletableFuture<CreateAgentContextResponse> createAgentContext(CreateAgentContextRequest createAgentContextRequest) Creates an agent context over one or more connections. Creation is asynchronous. GetAgentContext returns its status.
- Parameters:
createAgentContextRequest-- Returns:
- A Java Future containing the result of the CreateAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAgentContext
default CompletableFuture<CreateAgentContextResponse> createAgentContext(Consumer<CreateAgentContextRequest.Builder> createAgentContextRequest) Creates an agent context over one or more connections. Creation is asynchronous. GetAgentContext returns its status.
This is a convenience which creates an instance of the
CreateAgentContextRequest.Builderavoiding the need to create one manually viaCreateAgentContextRequest.builder()- Parameters:
createAgentContextRequest- AConsumerthat will call methods onCreateAgentContextRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createChangeSet
default CompletableFuture<CreateChangeSetResponse> createChangeSet(CreateChangeSetRequest createChangeSetRequest) Proposes a change to an agent context, as ChangeSetOperation items (the same items that ListChangeSetOperations returns), each setting one of
put,update, ordelete.- Parameters:
createChangeSetRequest- The members that CreateChangeSet takes.- Returns:
- A Java Future containing the result of the CreateChangeSet 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createChangeSet
default CompletableFuture<CreateChangeSetResponse> createChangeSet(Consumer<CreateChangeSetRequest.Builder> createChangeSetRequest) Proposes a change to an agent context, as ChangeSetOperation items (the same items that ListChangeSetOperations returns), each setting one of
put,update, ordelete.
This is a convenience which creates an instance of the
CreateChangeSetRequest.Builderavoiding the need to create one manually viaCreateChangeSetRequest.builder()- Parameters:
createChangeSetRequest- AConsumerthat will call methods onCreateChangeSetRequest.Builderto create a request. The members that CreateChangeSet takes.- Returns:
- A Java Future containing the result of the CreateChangeSet 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createConnection
default CompletableFuture<CreateConnectionResponse> createConnection(CreateConnectionRequest createConnectionRequest) Creates a connection to a data source, such as an AWS Glue Data Catalog, an Amazon Bedrock knowledge base, or a third-party data catalog through an AWS Glue connection. GetConnection returns the connection's status.
- Parameters:
createConnectionRequest-- Returns:
- A Java Future containing the result of the CreateConnection 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createConnection
default CompletableFuture<CreateConnectionResponse> createConnection(Consumer<CreateConnectionRequest.Builder> createConnectionRequest) Creates a connection to a data source, such as an AWS Glue Data Catalog, an Amazon Bedrock knowledge base, or a third-party data catalog through an AWS Glue connection. GetConnection returns the connection's status.
This is a convenience which creates an instance of the
CreateConnectionRequest.Builderavoiding the need to create one manually viaCreateConnectionRequest.builder()- Parameters:
createConnectionRequest- AConsumerthat will call methods onCreateConnectionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateConnection 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createCurationPolicy
default CompletableFuture<CreateCurationPolicyResponse> createCurationPolicy(CreateCurationPolicyRequest createCurationPolicyRequest) Creates a curation policy, which decides which changes to an agent context are held for review as curation proposals instead of applied automatically. The policy starts as an unpublished draft. The agent contexts associated with it enforce it once CreateCurationPolicyVersion publishes it.
- Parameters:
createCurationPolicyRequest-- Returns:
- A Java Future containing the result of the CreateCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createCurationPolicy
default CompletableFuture<CreateCurationPolicyResponse> createCurationPolicy(Consumer<CreateCurationPolicyRequest.Builder> createCurationPolicyRequest) Creates a curation policy, which decides which changes to an agent context are held for review as curation proposals instead of applied automatically. The policy starts as an unpublished draft. The agent contexts associated with it enforce it once CreateCurationPolicyVersion publishes it.
This is a convenience which creates an instance of the
CreateCurationPolicyRequest.Builderavoiding the need to create one manually viaCreateCurationPolicyRequest.builder()- Parameters:
createCurationPolicyRequest- AConsumerthat will call methods onCreateCurationPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createCurationPolicyVersion
default CompletableFuture<CreateCurationPolicyVersionResponse> createCurationPolicyVersion(CreateCurationPolicyVersionRequest createCurationPolicyVersionRequest) Publishes a curation policy's working copy as a new, immutable version. The agent contexts associated with the policy start enforcing the new version. Returns the updated policy.
- Parameters:
createCurationPolicyVersionRequest-- Returns:
- A Java Future containing the result of the CreateCurationPolicyVersion 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createCurationPolicyVersion
default CompletableFuture<CreateCurationPolicyVersionResponse> createCurationPolicyVersion(Consumer<CreateCurationPolicyVersionRequest.Builder> createCurationPolicyVersionRequest) Publishes a curation policy's working copy as a new, immutable version. The agent contexts associated with the policy start enforcing the new version. Returns the updated policy.
This is a convenience which creates an instance of the
CreateCurationPolicyVersionRequest.Builderavoiding the need to create one manually viaCreateCurationPolicyVersionRequest.builder()- Parameters:
createCurationPolicyVersionRequest- AConsumerthat will call methods onCreateCurationPolicyVersionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateCurationPolicyVersion 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createOntology
default CompletableFuture<CreateOntologyResponse> createOntology(CreateOntologyRequest createOntologyRequest) Creates an ontology from an OWL ontology document. An ontology defines the types of nodes and edges in an agent context. Returns the new ontology's ID and ARN.
- Parameters:
createOntologyRequest-- Returns:
- A Java Future containing the result of the CreateOntology 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createOntology
default CompletableFuture<CreateOntologyResponse> createOntology(Consumer<CreateOntologyRequest.Builder> createOntologyRequest) Creates an ontology from an OWL ontology document. An ontology defines the types of nodes and edges in an agent context. Returns the new ontology's ID and ARN.
This is a convenience which creates an instance of the
CreateOntologyRequest.Builderavoiding the need to create one manually viaCreateOntologyRequest.builder()- Parameters:
createOntologyRequest- AConsumerthat will call methods onCreateOntologyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateOntology 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAgentContext
default CompletableFuture<DeleteAgentContextResponse> deleteAgentContext(DeleteAgentContextRequest deleteAgentContextRequest) Deletes an agent context. Deletion is asynchronous. An agent context that does not exist or is already being deleted returns ResourceNotFoundException.
- Parameters:
deleteAgentContextRequest-- Returns:
- A Java Future containing the result of the DeleteAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteAgentContext
default CompletableFuture<DeleteAgentContextResponse> deleteAgentContext(Consumer<DeleteAgentContextRequest.Builder> deleteAgentContextRequest) Deletes an agent context. Deletion is asynchronous. An agent context that does not exist or is already being deleted returns ResourceNotFoundException.
This is a convenience which creates an instance of the
DeleteAgentContextRequest.Builderavoiding the need to create one manually viaDeleteAgentContextRequest.builder()- Parameters:
deleteAgentContextRequest- AConsumerthat will call methods onDeleteAgentContextRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteConnection
default CompletableFuture<DeleteConnectionResponse> deleteConnection(DeleteConnectionRequest deleteConnectionRequest) Deletes a connection. While any agent context still uses the connection, the request fails with
ConflictException. Remove the connection from each agent context with UpdateAgentContext, and wait until AWS Context has removed the connection's data from the agent context, before you retry. For aDATABRICKSorSNOWFLAKEconnection,deletionModespecifies whether AWS Context also deletes the AWS Glue connection. If the connection staysDELETING, call DeleteConnection again to finish the cleanup. Deleting a connection that doesn't exist or is already being deleted succeeds, so you can safely retry.- Parameters:
deleteConnectionRequest-- Returns:
- A Java Future containing the result of the DeleteConnection 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteConnection
default CompletableFuture<DeleteConnectionResponse> deleteConnection(Consumer<DeleteConnectionRequest.Builder> deleteConnectionRequest) Deletes a connection. While any agent context still uses the connection, the request fails with
ConflictException. Remove the connection from each agent context with UpdateAgentContext, and wait until AWS Context has removed the connection's data from the agent context, before you retry. For aDATABRICKSorSNOWFLAKEconnection,deletionModespecifies whether AWS Context also deletes the AWS Glue connection. If the connection staysDELETING, call DeleteConnection again to finish the cleanup. Deleting a connection that doesn't exist or is already being deleted succeeds, so you can safely retry.
This is a convenience which creates an instance of the
DeleteConnectionRequest.Builderavoiding the need to create one manually viaDeleteConnectionRequest.builder()- Parameters:
deleteConnectionRequest- AConsumerthat will call methods onDeleteConnectionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteConnection 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteCurationPolicy
default CompletableFuture<DeleteCurationPolicyResponse> deleteCurationPolicy(DeleteCurationPolicyRequest deleteCurationPolicyRequest) Deletes a curation policy. While the policy is associated with any agent context, the request fails with
ConflictException. Disassociate it with DisassociateCurationPolicy first. You can't delete a default policy that AWS Context created in your account: the request fails withConflictException. Disassociate it instead. After the delete, GetCurationPolicy returns the policy with statusDELETED, and ListCurationPolicies doesn't return it. Deleting a policy that is already deleted succeeds.- Parameters:
deleteCurationPolicyRequest-- Returns:
- A Java Future containing the result of the DeleteCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteCurationPolicy
default CompletableFuture<DeleteCurationPolicyResponse> deleteCurationPolicy(Consumer<DeleteCurationPolicyRequest.Builder> deleteCurationPolicyRequest) Deletes a curation policy. While the policy is associated with any agent context, the request fails with
ConflictException. Disassociate it with DisassociateCurationPolicy first. You can't delete a default policy that AWS Context created in your account: the request fails withConflictException. Disassociate it instead. After the delete, GetCurationPolicy returns the policy with statusDELETED, and ListCurationPolicies doesn't return it. Deleting a policy that is already deleted succeeds.
This is a convenience which creates an instance of the
DeleteCurationPolicyRequest.Builderavoiding the need to create one manually viaDeleteCurationPolicyRequest.builder()- Parameters:
deleteCurationPolicyRequest- AConsumerthat will call methods onDeleteCurationPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteOntology
default CompletableFuture<DeleteOntologyResponse> deleteOntology(DeleteOntologyRequest deleteOntologyRequest) Deletes an ontology that you own and all of its versions. You can't delete an AWS managed ontology. While an agent context maps the ontology, the request fails with
ConflictException. Remove the ontology from the agent context's connection mappings with UpdateAgentContext first. If an agent context mapped the ontology in the last 5 minutes, the request also fails withConflictException, and you can retry later. ADRAFTontology that an induction created is deleted together with its induction. Deleting an ontology that is already deleted succeeds. AWS Context never reuses the ID of a deleted ontology.- Parameters:
deleteOntologyRequest-- Returns:
- A Java Future containing the result of the DeleteOntology 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteOntology
default CompletableFuture<DeleteOntologyResponse> deleteOntology(Consumer<DeleteOntologyRequest.Builder> deleteOntologyRequest) Deletes an ontology that you own and all of its versions. You can't delete an AWS managed ontology. While an agent context maps the ontology, the request fails with
ConflictException. Remove the ontology from the agent context's connection mappings with UpdateAgentContext first. If an agent context mapped the ontology in the last 5 minutes, the request also fails withConflictException, and you can retry later. ADRAFTontology that an induction created is deleted together with its induction. Deleting an ontology that is already deleted succeeds. AWS Context never reuses the ID of a deleted ontology.
This is a convenience which creates an instance of the
DeleteOntologyRequest.Builderavoiding the need to create one manually viaDeleteOntologyRequest.builder()- Parameters:
deleteOntologyRequest- AConsumerthat will call methods onDeleteOntologyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteOntology 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteOntologyInduction
default CompletableFuture<DeleteOntologyInductionResponse> deleteOntologyInduction(DeleteOntologyInductionRequest deleteOntologyInductionRequest) Deletes an ontology induction. You can delete a
FAILEDorCANCELLEDinduction, or one whose ontology isPUBLISHEDor was deleted after it was published. While the induction isINDUCING, or while its ontology is still aDRAFT, the request fails withConflictException. To stop a running induction, call CancelOntologyInduction first. To delete a draft ontology and its induction together, call DeleteOntology. Deleting an induction doesn't change its published ontology.- Parameters:
deleteOntologyInductionRequest-- Returns:
- A Java Future containing the result of the DeleteOntologyInduction 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteOntologyInduction
default CompletableFuture<DeleteOntologyInductionResponse> deleteOntologyInduction(Consumer<DeleteOntologyInductionRequest.Builder> deleteOntologyInductionRequest) Deletes an ontology induction. You can delete a
FAILEDorCANCELLEDinduction, or one whose ontology isPUBLISHEDor was deleted after it was published. While the induction isINDUCING, or while its ontology is still aDRAFT, the request fails withConflictException. To stop a running induction, call CancelOntologyInduction first. To delete a draft ontology and its induction together, call DeleteOntology. Deleting an induction doesn't change its published ontology.
This is a convenience which creates an instance of the
DeleteOntologyInductionRequest.Builderavoiding the need to create one manually viaDeleteOntologyInductionRequest.builder()- Parameters:
deleteOntologyInductionRequest- AConsumerthat will call methods onDeleteOntologyInductionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteOntologyInduction 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteResourcePolicy
default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) Removes the resource-based policy from an agent context.
- Parameters:
deleteResourcePolicyRequest-- Returns:
- A Java Future containing the result of the DeleteResourcePolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteResourcePolicy
default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Removes the resource-based policy from an agent context.
This is a convenience which creates an instance of the
DeleteResourcePolicyRequest.Builderavoiding the need to create one manually viaDeleteResourcePolicyRequest.builder()- Parameters:
deleteResourcePolicyRequest- AConsumerthat will call methods onDeleteResourcePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteResourcePolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateCurationPolicy
default CompletableFuture<DisassociateCurationPolicyResponse> disassociateCurationPolicy(DisassociateCurationPolicyRequest disassociateCurationPolicyRequest) Disassociates a curation policy from an agent context, so the agent context stops enforcing it.
- Parameters:
disassociateCurationPolicyRequest-- Returns:
- A Java Future containing the result of the DisassociateCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateCurationPolicy
default CompletableFuture<DisassociateCurationPolicyResponse> disassociateCurationPolicy(Consumer<DisassociateCurationPolicyRequest.Builder> disassociateCurationPolicyRequest) Disassociates a curation policy from an agent context, so the agent context stops enforcing it.
This is a convenience which creates an instance of the
DisassociateCurationPolicyRequest.Builderavoiding the need to create one manually viaDisassociateCurationPolicyRequest.builder()- Parameters:
disassociateCurationPolicyRequest- AConsumerthat will call methods onDisassociateCurationPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DisassociateCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
executeSql
Runs one read-only SQL query over the tables of a connection in an agent context, and returns the result as typed columns and rows. Use this to read structured data directly when you can write the query yourself. If the result's rows are larger than 5 MiB, the call fails with
ValidationException. Add aLIMITclause or select fewer columns.- Parameters:
executeSqlRequest-- Returns:
- A Java Future containing the result of the ExecuteSql 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
executeSql
default CompletableFuture<ExecuteSqlResponse> executeSql(Consumer<ExecuteSqlRequest.Builder> executeSqlRequest) Runs one read-only SQL query over the tables of a connection in an agent context, and returns the result as typed columns and rows. Use this to read structured data directly when you can write the query yourself. If the result's rows are larger than 5 MiB, the call fails with
ValidationException. Add aLIMITclause or select fewer columns.
This is a convenience which creates an instance of the
ExecuteSqlRequest.Builderavoiding the need to create one manually viaExecuteSqlRequest.builder()- Parameters:
executeSqlRequest- AConsumerthat will call methods onExecuteSqlRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ExecuteSql 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAgentContext
default CompletableFuture<GetAgentContextResponse> getAgentContext(GetAgentContextRequest getAgentContextRequest) Returns an agent context's configuration and status.
- Parameters:
getAgentContextRequest-- Returns:
- A Java Future containing the result of the GetAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getAgentContext
default CompletableFuture<GetAgentContextResponse> getAgentContext(Consumer<GetAgentContextRequest.Builder> getAgentContextRequest) Returns an agent context's configuration and status.
This is a convenience which creates an instance of the
GetAgentContextRequest.Builderavoiding the need to create one manually viaGetAgentContextRequest.builder()- Parameters:
getAgentContextRequest- AConsumerthat will call methods onGetAgentContextRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getChangeSet
default CompletableFuture<GetChangeSetResponse> getChangeSet(GetChangeSetRequest getChangeSetRequest) Returns one change set's metadata: its
statusand the other fields of the change set, without its operations. To see what the change set wrote, list its operations with ListChangeSetOperations. ForchangeSetId, pass a change set'sidfrom ListChangeSets.- Parameters:
getChangeSetRequest-- Returns:
- A Java Future containing the result of the GetChangeSet 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getChangeSet
default CompletableFuture<GetChangeSetResponse> getChangeSet(Consumer<GetChangeSetRequest.Builder> getChangeSetRequest) Returns one change set's metadata: its
statusand the other fields of the change set, without its operations. To see what the change set wrote, list its operations with ListChangeSetOperations. ForchangeSetId, pass a change set'sidfrom ListChangeSets.
This is a convenience which creates an instance of the
GetChangeSetRequest.Builderavoiding the need to create one manually viaGetChangeSetRequest.builder()- Parameters:
getChangeSetRequest- AConsumerthat will call methods onGetChangeSetRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetChangeSet 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getConnection
default CompletableFuture<GetConnectionResponse> getConnection(GetConnectionRequest getConnectionRequest) Returns a connection's configuration and status.
- Parameters:
getConnectionRequest-- Returns:
- A Java Future containing the result of the GetConnection 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getConnection
default CompletableFuture<GetConnectionResponse> getConnection(Consumer<GetConnectionRequest.Builder> getConnectionRequest) Returns a connection's configuration and status.
This is a convenience which creates an instance of the
GetConnectionRequest.Builderavoiding the need to create one manually viaGetConnectionRequest.builder()- Parameters:
getConnectionRequest- AConsumerthat will call methods onGetConnectionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetConnection 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCurationPolicy
default CompletableFuture<GetCurationPolicyResponse> getCurationPolicy(GetCurationPolicyRequest getCurationPolicyRequest) Returns a curation policy's configuration, status, and policy document.
- Parameters:
getCurationPolicyRequest-- Returns:
- A Java Future containing the result of the GetCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCurationPolicy
default CompletableFuture<GetCurationPolicyResponse> getCurationPolicy(Consumer<GetCurationPolicyRequest.Builder> getCurationPolicyRequest) Returns a curation policy's configuration, status, and policy document.
This is a convenience which creates an instance of the
GetCurationPolicyRequest.Builderavoiding the need to create one manually viaGetCurationPolicyRequest.builder()- Parameters:
getCurationPolicyRequest- AConsumerthat will call methods onGetCurationPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCurationProposal
default CompletableFuture<GetCurationProposalResponse> getCurationProposal(GetCurationProposalRequest getCurationProposalRequest) Returns a curation proposal and a summary of the change that it holds for review. ListChangeSetOperations returns the change's individual operations.
- Parameters:
getCurationProposalRequest-- Returns:
- A Java Future containing the result of the GetCurationProposal 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCurationProposal
default CompletableFuture<GetCurationProposalResponse> getCurationProposal(Consumer<GetCurationProposalRequest.Builder> getCurationProposalRequest) Returns a curation proposal and a summary of the change that it holds for review. ListChangeSetOperations returns the change's individual operations.
This is a convenience which creates an instance of the
GetCurationProposalRequest.Builderavoiding the need to create one manually viaGetCurationProposalRequest.builder()- Parameters:
getCurationProposalRequest- AConsumerthat will call methods onGetCurationProposalRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetCurationProposal 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOntology
Returns an ontology's status and one of its versions.
- Parameters:
getOntologyRequest- Identifies the ontology to return and, optionally, the version.- Returns:
- A Java Future containing the result of the GetOntology 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOntology
default CompletableFuture<GetOntologyResponse> getOntology(Consumer<GetOntologyRequest.Builder> getOntologyRequest) Returns an ontology's status and one of its versions.
This is a convenience which creates an instance of the
GetOntologyRequest.Builderavoiding the need to create one manually viaGetOntologyRequest.builder()- Parameters:
getOntologyRequest- AConsumerthat will call methods onGetOntologyRequest.Builderto create a request. Identifies the ontology to return and, optionally, the version.- Returns:
- A Java Future containing the result of the GetOntology 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOntologyInduction
default CompletableFuture<GetOntologyInductionResponse> getOntologyInduction(GetOntologyInductionRequest getOntologyInductionRequest) Returns an ontology induction's status, and, once it is a draft, the ontology it created.
- Parameters:
getOntologyInductionRequest-- Returns:
- A Java Future containing the result of the GetOntologyInduction 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getOntologyInduction
default CompletableFuture<GetOntologyInductionResponse> getOntologyInduction(Consumer<GetOntologyInductionRequest.Builder> getOntologyInductionRequest) Returns an ontology induction's status, and, once it is a draft, the ontology it created.
This is a convenience which creates an instance of the
GetOntologyInductionRequest.Builderavoiding the need to create one manually viaGetOntologyInductionRequest.builder()- Parameters:
getOntologyInductionRequest- AConsumerthat will call methods onGetOntologyInductionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetOntologyInduction 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePolicy
default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Returns the resource-based policy attached to an agent context, with its revision ID.
- Parameters:
getResourcePolicyRequest-- Returns:
- A Java Future containing the result of the GetResourcePolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePolicy
default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Returns the resource-based policy attached to an agent context, with its revision ID.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builderavoiding the need to create one manually viaGetResourcePolicyRequest.builder()- Parameters:
getResourcePolicyRequest- AConsumerthat will call methods onGetResourcePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetResourcePolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getTask
Returns a task's configuration, status, and results.
- Parameters:
getTaskRequest-- Returns:
- A Java Future containing the result of the GetTask 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getTask
Returns a task's configuration, status, and results.
This is a convenience which creates an instance of the
GetTaskRequest.Builderavoiding the need to create one manually viaGetTaskRequest.builder()- Parameters:
getTaskRequest- AConsumerthat will call methods onGetTaskRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetTask 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAgentContexts
default CompletableFuture<ListAgentContextsResponse> listAgentContexts(ListAgentContextsRequest listAgentContextsRequest) Lists the agent contexts in your account. A page can hold fewer items than
maxResults, or none, and still return anextToken. Keep paging untilnextTokenis absent.- Parameters:
listAgentContextsRequest-- Returns:
- A Java Future containing the result of the ListAgentContexts 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAgentContexts
default CompletableFuture<ListAgentContextsResponse> listAgentContexts(Consumer<ListAgentContextsRequest.Builder> listAgentContextsRequest) Lists the agent contexts in your account. A page can hold fewer items than
maxResults, or none, and still return anextToken. Keep paging untilnextTokenis absent.
This is a convenience which creates an instance of the
ListAgentContextsRequest.Builderavoiding the need to create one manually viaListAgentContextsRequest.builder()- Parameters:
listAgentContextsRequest- AConsumerthat will call methods onListAgentContextsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListAgentContexts 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAgentContextsPaginator
default ListAgentContextsPublisher listAgentContextsPaginator(ListAgentContextsRequest listAgentContextsRequest) This is a variant of
listAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest)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.context.paginators.ListAgentContextsPublisher publisher = client.listAgentContextsPaginator(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.context.paginators.ListAgentContextsPublisher publisher = client.listAgentContextsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListAgentContextsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListAgentContextsResponse 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
listAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest)operation.- Parameters:
listAgentContextsRequest-- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listAgentContextsPaginator
default ListAgentContextsPublisher listAgentContextsPaginator(Consumer<ListAgentContextsRequest.Builder> listAgentContextsRequest) This is a variant of
listAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest)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.context.paginators.ListAgentContextsPublisher publisher = client.listAgentContextsPaginator(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.context.paginators.ListAgentContextsPublisher publisher = client.listAgentContextsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListAgentContextsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListAgentContextsResponse 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
listAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest)operation.
This is a convenience which creates an instance of the
ListAgentContextsRequest.Builderavoiding the need to create one manually viaListAgentContextsRequest.builder()- Parameters:
listAgentContextsRequest- AConsumerthat will call methods onListAgentContextsRequest.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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChangeSetOperations
default CompletableFuture<ListChangeSetOperationsResponse> listChangeSetOperations(ListChangeSetOperationsRequest listChangeSetOperationsRequest) Returns what one change set wrote: every operation it holds (the nodes and relationships it adds, updates, or deletes), one page at a time, in order. This is the only read that returns a change set's contents.
- Parameters:
listChangeSetOperationsRequest-- Returns:
- A Java Future containing the result of the ListChangeSetOperations 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChangeSetOperations
default CompletableFuture<ListChangeSetOperationsResponse> listChangeSetOperations(Consumer<ListChangeSetOperationsRequest.Builder> listChangeSetOperationsRequest) Returns what one change set wrote: every operation it holds (the nodes and relationships it adds, updates, or deletes), one page at a time, in order. This is the only read that returns a change set's contents.
This is a convenience which creates an instance of the
ListChangeSetOperationsRequest.Builderavoiding the need to create one manually viaListChangeSetOperationsRequest.builder()- Parameters:
listChangeSetOperationsRequest- AConsumerthat will call methods onListChangeSetOperationsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListChangeSetOperations 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChangeSetOperationsPaginator
default ListChangeSetOperationsPublisher listChangeSetOperationsPaginator(ListChangeSetOperationsRequest listChangeSetOperationsRequest) This is a variant of
listChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest)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.context.paginators.ListChangeSetOperationsPublisher publisher = client.listChangeSetOperationsPaginator(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.context.paginators.ListChangeSetOperationsPublisher publisher = client.listChangeSetOperationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListChangeSetOperationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListChangeSetOperationsResponse 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
listChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest)operation.- Parameters:
listChangeSetOperationsRequest-- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChangeSetOperationsPaginator
default ListChangeSetOperationsPublisher listChangeSetOperationsPaginator(Consumer<ListChangeSetOperationsRequest.Builder> listChangeSetOperationsRequest) This is a variant of
listChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest)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.context.paginators.ListChangeSetOperationsPublisher publisher = client.listChangeSetOperationsPaginator(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.context.paginators.ListChangeSetOperationsPublisher publisher = client.listChangeSetOperationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListChangeSetOperationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListChangeSetOperationsResponse 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
listChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest)operation.
This is a convenience which creates an instance of the
ListChangeSetOperationsRequest.Builderavoiding the need to create one manually viaListChangeSetOperationsRequest.builder()- Parameters:
listChangeSetOperationsRequest- AConsumerthat will call methods onListChangeSetOperationsRequest.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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChangeSets
default CompletableFuture<ListChangeSetsResponse> listChangeSets(ListChangeSetsRequest listChangeSetsRequest) Lists an agent context's change sets that have the specified
status, newest first. Each item is a summary of the change set, without its operations. To see what a change set wrote, call ListChangeSetOperations with itsidaschangeSetId.- Parameters:
listChangeSetsRequest-- Returns:
- A Java Future containing the result of the ListChangeSets 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChangeSets
default CompletableFuture<ListChangeSetsResponse> listChangeSets(Consumer<ListChangeSetsRequest.Builder> listChangeSetsRequest) Lists an agent context's change sets that have the specified
status, newest first. Each item is a summary of the change set, without its operations. To see what a change set wrote, call ListChangeSetOperations with itsidaschangeSetId.
This is a convenience which creates an instance of the
ListChangeSetsRequest.Builderavoiding the need to create one manually viaListChangeSetsRequest.builder()- Parameters:
listChangeSetsRequest- AConsumerthat will call methods onListChangeSetsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListChangeSets 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChangeSetsPaginator
default ListChangeSetsPublisher listChangeSetsPaginator(ListChangeSetsRequest listChangeSetsRequest) This is a variant of
listChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest)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.context.paginators.ListChangeSetsPublisher publisher = client.listChangeSetsPaginator(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.context.paginators.ListChangeSetsPublisher publisher = client.listChangeSetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListChangeSetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListChangeSetsResponse 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
listChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest)operation.- Parameters:
listChangeSetsRequest-- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listChangeSetsPaginator
default ListChangeSetsPublisher listChangeSetsPaginator(Consumer<ListChangeSetsRequest.Builder> listChangeSetsRequest) This is a variant of
listChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest)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.context.paginators.ListChangeSetsPublisher publisher = client.listChangeSetsPaginator(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.context.paginators.ListChangeSetsPublisher publisher = client.listChangeSetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListChangeSetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListChangeSetsResponse 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
listChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest)operation.
This is a convenience which creates an instance of the
ListChangeSetsRequest.Builderavoiding the need to create one manually viaListChangeSetsRequest.builder()- Parameters:
listChangeSetsRequest- AConsumerthat will call methods onListChangeSetsRequest.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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listConnections
default CompletableFuture<ListConnectionsResponse> listConnections(ListConnectionsRequest listConnectionsRequest) Lists the connections in your account, most recently updated first.
- Parameters:
listConnectionsRequest-- Returns:
- A Java Future containing the result of the ListConnections 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listConnections
default CompletableFuture<ListConnectionsResponse> listConnections(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) Lists the connections in your account, most recently updated first.
This is a convenience which creates an instance of the
ListConnectionsRequest.Builderavoiding the need to create one manually viaListConnectionsRequest.builder()- Parameters:
listConnectionsRequest- AConsumerthat will call methods onListConnectionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListConnections 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listConnectionsPaginator
default ListConnectionsPublisher listConnectionsPaginator(ListConnectionsRequest listConnectionsRequest) This is a variant of
listConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest)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.context.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(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.context.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListConnectionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListConnectionsResponse 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
listConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest)operation.- Parameters:
listConnectionsRequest-- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listConnectionsPaginator
default ListConnectionsPublisher listConnectionsPaginator(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) This is a variant of
listConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest)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.context.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(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.context.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListConnectionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListConnectionsResponse 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
listConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest)operation.
This is a convenience which creates an instance of the
ListConnectionsRequest.Builderavoiding the need to create one manually viaListConnectionsRequest.builder()- Parameters:
listConnectionsRequest- AConsumerthat will call methods onListConnectionsRequest.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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCurationPolicies
default CompletableFuture<ListCurationPoliciesResponse> listCurationPolicies(ListCurationPoliciesRequest listCurationPoliciesRequest) Lists the curation policies in your account, or the ones associated with an agent context. Each item is a summary without the policy document. GetCurationPolicy returns the document. If
agentContextIddoesn't name an agent context in your account, the operation returns an empty page instead of an error.- Parameters:
listCurationPoliciesRequest-- Returns:
- A Java Future containing the result of the ListCurationPolicies 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCurationPolicies
default CompletableFuture<ListCurationPoliciesResponse> listCurationPolicies(Consumer<ListCurationPoliciesRequest.Builder> listCurationPoliciesRequest) Lists the curation policies in your account, or the ones associated with an agent context. Each item is a summary without the policy document. GetCurationPolicy returns the document. If
agentContextIddoesn't name an agent context in your account, the operation returns an empty page instead of an error.
This is a convenience which creates an instance of the
ListCurationPoliciesRequest.Builderavoiding the need to create one manually viaListCurationPoliciesRequest.builder()- Parameters:
listCurationPoliciesRequest- AConsumerthat will call methods onListCurationPoliciesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListCurationPolicies 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCurationPoliciesPaginator
default ListCurationPoliciesPublisher listCurationPoliciesPaginator(ListCurationPoliciesRequest listCurationPoliciesRequest) This is a variant of
listCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest)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.context.paginators.ListCurationPoliciesPublisher publisher = client.listCurationPoliciesPaginator(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.context.paginators.ListCurationPoliciesPublisher publisher = client.listCurationPoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListCurationPoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListCurationPoliciesResponse 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
listCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest)operation.- Parameters:
listCurationPoliciesRequest-- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCurationPoliciesPaginator
default ListCurationPoliciesPublisher listCurationPoliciesPaginator(Consumer<ListCurationPoliciesRequest.Builder> listCurationPoliciesRequest) This is a variant of
listCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest)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.context.paginators.ListCurationPoliciesPublisher publisher = client.listCurationPoliciesPaginator(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.context.paginators.ListCurationPoliciesPublisher publisher = client.listCurationPoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListCurationPoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListCurationPoliciesResponse 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
listCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest)operation.
This is a convenience which creates an instance of the
ListCurationPoliciesRequest.Builderavoiding the need to create one manually viaListCurationPoliciesRequest.builder()- Parameters:
listCurationPoliciesRequest- AConsumerthat will call methods onListCurationPoliciesRequest.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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCurationProposals
default CompletableFuture<ListCurationProposalsResponse> listCurationProposals(ListCurationProposalsRequest listCurationProposalsRequest) Lists an agent context's curation proposals, newest first. A curation proposal holds a change to the agent context for review.
- Parameters:
listCurationProposalsRequest-- Returns:
- A Java Future containing the result of the ListCurationProposals 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCurationProposals
default CompletableFuture<ListCurationProposalsResponse> listCurationProposals(Consumer<ListCurationProposalsRequest.Builder> listCurationProposalsRequest) Lists an agent context's curation proposals, newest first. A curation proposal holds a change to the agent context for review.
This is a convenience which creates an instance of the
ListCurationProposalsRequest.Builderavoiding the need to create one manually viaListCurationProposalsRequest.builder()- Parameters:
listCurationProposalsRequest- AConsumerthat will call methods onListCurationProposalsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListCurationProposals 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCurationProposalsPaginator
default ListCurationProposalsPublisher listCurationProposalsPaginator(ListCurationProposalsRequest listCurationProposalsRequest) This is a variant of
listCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest)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.context.paginators.ListCurationProposalsPublisher publisher = client.listCurationProposalsPaginator(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.context.paginators.ListCurationProposalsPublisher publisher = client.listCurationProposalsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListCurationProposalsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListCurationProposalsResponse 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
listCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest)operation.- Parameters:
listCurationProposalsRequest-- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCurationProposalsPaginator
default ListCurationProposalsPublisher listCurationProposalsPaginator(Consumer<ListCurationProposalsRequest.Builder> listCurationProposalsRequest) This is a variant of
listCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest)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.context.paginators.ListCurationProposalsPublisher publisher = client.listCurationProposalsPaginator(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.context.paginators.ListCurationProposalsPublisher publisher = client.listCurationProposalsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListCurationProposalsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListCurationProposalsResponse 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
listCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest)operation.
This is a convenience which creates an instance of the
ListCurationProposalsRequest.Builderavoiding the need to create one manually viaListCurationProposalsRequest.builder()- Parameters:
listCurationProposalsRequest- AConsumerthat will call methods onListCurationProposalsRequest.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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOntologies
default CompletableFuture<ListOntologiesResponse> listOntologies(ListOntologiesRequest listOntologiesRequest) Lists the ontologies in your account, with the status of each.
- Parameters:
listOntologiesRequest-- Returns:
- A Java Future containing the result of the ListOntologies 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOntologies
default CompletableFuture<ListOntologiesResponse> listOntologies(Consumer<ListOntologiesRequest.Builder> listOntologiesRequest) Lists the ontologies in your account, with the status of each.
This is a convenience which creates an instance of the
ListOntologiesRequest.Builderavoiding the need to create one manually viaListOntologiesRequest.builder()- Parameters:
listOntologiesRequest- AConsumerthat will call methods onListOntologiesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListOntologies 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOntologiesPaginator
default ListOntologiesPublisher listOntologiesPaginator(ListOntologiesRequest listOntologiesRequest) This is a variant of
listOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest)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.context.paginators.ListOntologiesPublisher publisher = client.listOntologiesPaginator(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.context.paginators.ListOntologiesPublisher publisher = client.listOntologiesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListOntologiesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListOntologiesResponse 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
listOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest)operation.- Parameters:
listOntologiesRequest-- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOntologiesPaginator
default ListOntologiesPublisher listOntologiesPaginator(Consumer<ListOntologiesRequest.Builder> listOntologiesRequest) This is a variant of
listOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest)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.context.paginators.ListOntologiesPublisher publisher = client.listOntologiesPaginator(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.context.paginators.ListOntologiesPublisher publisher = client.listOntologiesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListOntologiesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListOntologiesResponse 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
listOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest)operation.
This is a convenience which creates an instance of the
ListOntologiesRequest.Builderavoiding the need to create one manually viaListOntologiesRequest.builder()- Parameters:
listOntologiesRequest- AConsumerthat will call methods onListOntologiesRequest.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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOntologyInductions
default CompletableFuture<ListOntologyInductionsResponse> listOntologyInductions(ListOntologyInductionsRequest listOntologyInductionsRequest) Lists the ontology inductions in your account.
- Parameters:
listOntologyInductionsRequest-- Returns:
- A Java Future containing the result of the ListOntologyInductions 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOntologyInductions
default CompletableFuture<ListOntologyInductionsResponse> listOntologyInductions(Consumer<ListOntologyInductionsRequest.Builder> listOntologyInductionsRequest) Lists the ontology inductions in your account.
This is a convenience which creates an instance of the
ListOntologyInductionsRequest.Builderavoiding the need to create one manually viaListOntologyInductionsRequest.builder()- Parameters:
listOntologyInductionsRequest- AConsumerthat will call methods onListOntologyInductionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListOntologyInductions 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOntologyInductionsPaginator
default ListOntologyInductionsPublisher listOntologyInductionsPaginator(ListOntologyInductionsRequest listOntologyInductionsRequest) This is a variant of
listOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest)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.context.paginators.ListOntologyInductionsPublisher publisher = client.listOntologyInductionsPaginator(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.context.paginators.ListOntologyInductionsPublisher publisher = client.listOntologyInductionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListOntologyInductionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListOntologyInductionsResponse 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
listOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest)operation.- Parameters:
listOntologyInductionsRequest-- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listOntologyInductionsPaginator
default ListOntologyInductionsPublisher listOntologyInductionsPaginator(Consumer<ListOntologyInductionsRequest.Builder> listOntologyInductionsRequest) This is a variant of
listOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest)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.context.paginators.ListOntologyInductionsPublisher publisher = client.listOntologyInductionsPaginator(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.context.paginators.ListOntologyInductionsPublisher publisher = client.listOntologyInductionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListOntologyInductionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListOntologyInductionsResponse 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
listOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest)operation.
This is a convenience which creates an instance of the
ListOntologyInductionsRequest.Builderavoiding the need to create one manually viaListOntologyInductionsRequest.builder()- Parameters:
listOntologyInductionsRequest- AConsumerthat will call methods onListOntologyInductionsRequest.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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags on an agent context, connection, curation policy, customer-owned ontology, or ontology induction.
- Parameters:
listTagsForResourceRequest-- Returns:
- A Java Future containing the result of the ListTagsForResource 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags on an agent context, connection, curation policy, customer-owned ontology, or ontology induction.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTasks
Lists an agent context's tasks, newest first.
- Parameters:
listTasksRequest-- Returns:
- A Java Future containing the result of the ListTasks 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTasks
default CompletableFuture<ListTasksResponse> listTasks(Consumer<ListTasksRequest.Builder> listTasksRequest) Lists an agent context's tasks, newest first.
This is a convenience which creates an instance of the
ListTasksRequest.Builderavoiding the need to create one manually viaListTasksRequest.builder()- Parameters:
listTasksRequest- AConsumerthat will call methods onListTasksRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTasks 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTasksPaginator
This is a variant of
listTasks(software.amazon.awssdk.services.context.model.ListTasksRequest)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.context.paginators.ListTasksPublisher publisher = client.listTasksPaginator(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.context.paginators.ListTasksPublisher publisher = client.listTasksPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListTasksResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListTasksResponse 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
listTasks(software.amazon.awssdk.services.context.model.ListTasksRequest)operation.- Parameters:
listTasksRequest-- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTasksPaginator
This is a variant of
listTasks(software.amazon.awssdk.services.context.model.ListTasksRequest)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.context.paginators.ListTasksPublisher publisher = client.listTasksPaginator(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.context.paginators.ListTasksPublisher publisher = client.listTasksPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListTasksResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.ListTasksResponse 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
listTasks(software.amazon.awssdk.services.context.model.ListTasksRequest)operation.
This is a convenience which creates an instance of the
ListTasksRequest.Builderavoiding the need to create one manually viaListTasksRequest.builder()- Parameters:
listTasksRequest- AConsumerthat will call methods onListTasksRequest.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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putResourcePolicy
default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) Attaches a resource-based policy to an agent context, or replaces the one it has. The policy controls which other accounts can call operations on the agent context. Returns the policy's revision ID.
- Parameters:
putResourcePolicyRequest-- Returns:
- A Java Future containing the result of the PutResourcePolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putResourcePolicy
default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Attaches a resource-based policy to an agent context, or replaces the one it has. The policy controls which other accounts can call operations on the agent context. Returns the policy's revision ID.
This is a convenience which creates an instance of the
PutResourcePolicyRequest.Builderavoiding the need to create one manually viaPutResourcePolicyRequest.builder()- Parameters:
putResourcePolicyRequest- AConsumerthat will call methods onPutResourcePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutResourcePolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putTrace
Submits an agent's execution traces so that AWS Context can extract reusable knowledge and skills from them. Call it when an agent finishes a task or session that is worth learning from. In
agentContextArns, name the agent contexts that the traces are about. AWS Context analyzes the traces for each of them.Each
traceDocumentsentry is one raw trace document in the trace schema thatformatselects. You can send 1–100 documents per call. Each document can be up to 5 MiB before encoding. If you use an AWS SDK, pass each document's raw bytes. If you call PutTrace through the agent context's MCP server or another JSON client, send each document as a base64-encoded string. To send a larger trace, split it across calls that share asessionId.sessionIdgroups related calls into one session. If you omit it, AWS Context generates one and returns it in the response so that you can reuse it.Each agent context can hold up to 100,000 trace documents. If a request would exceed this quota, it fails with
ServiceQuotaExceededException, and AWS Context stores no documents. If a request fails for any other reason, AWS Context might have stored some of its documents. To store the rest without duplicates, retry with the sameclientToken.- Parameters:
putTraceRequest-- Returns:
- A Java Future containing the result of the PutTrace 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putTrace
default CompletableFuture<PutTraceResponse> putTrace(Consumer<PutTraceRequest.Builder> putTraceRequest) Submits an agent's execution traces so that AWS Context can extract reusable knowledge and skills from them. Call it when an agent finishes a task or session that is worth learning from. In
agentContextArns, name the agent contexts that the traces are about. AWS Context analyzes the traces for each of them.Each
traceDocumentsentry is one raw trace document in the trace schema thatformatselects. You can send 1–100 documents per call. Each document can be up to 5 MiB before encoding. If you use an AWS SDK, pass each document's raw bytes. If you call PutTrace through the agent context's MCP server or another JSON client, send each document as a base64-encoded string. To send a larger trace, split it across calls that share asessionId.sessionIdgroups related calls into one session. If you omit it, AWS Context generates one and returns it in the response so that you can reuse it.Each agent context can hold up to 100,000 trace documents. If a request would exceed this quota, it fails with
ServiceQuotaExceededException, and AWS Context stores no documents. If a request fails for any other reason, AWS Context might have stored some of its documents. To store the rest without duplicates, retry with the sameclientToken.
This is a convenience which creates an instance of the
PutTraceRequest.Builderavoiding the need to create one manually viaPutTraceRequest.builder()- Parameters:
putTraceRequest- AConsumerthat will call methods onPutTraceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutTrace 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
rejectCurationProposal
default CompletableFuture<RejectCurationProposalResponse> rejectCurationProposal(RejectCurationProposalRequest rejectCurationProposalRequest) Rejects a curation proposal. Its change is not applied to the agent context.
- Parameters:
rejectCurationProposalRequest-- Returns:
- A Java Future containing the result of the RejectCurationProposal 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
rejectCurationProposal
default CompletableFuture<RejectCurationProposalResponse> rejectCurationProposal(Consumer<RejectCurationProposalRequest.Builder> rejectCurationProposalRequest) Rejects a curation proposal. Its change is not applied to the agent context.
This is a convenience which creates an instance of the
RejectCurationProposalRequest.Builderavoiding the need to create one manually viaRejectCurationProposalRequest.builder()- Parameters:
rejectCurationProposalRequest- AConsumerthat will call methods onRejectCurationProposalRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the RejectCurationProposal 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchAgentContext
default CompletableFuture<SearchAgentContextResponse> searchAgentContext(SearchAgentContextRequest searchAgentContextRequest) Searches an agent context for entities matching a query. Returns ranked entities with relevance scores and metadata. To see the edges around a result node, pass its node ID to TraverseAgentContext.
- Parameters:
searchAgentContextRequest- The request for SearchAgentContext.- Returns:
- A Java Future containing the result of the SearchAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchAgentContext
default CompletableFuture<SearchAgentContextResponse> searchAgentContext(Consumer<SearchAgentContextRequest.Builder> searchAgentContextRequest) Searches an agent context for entities matching a query. Returns ranked entities with relevance scores and metadata. To see the edges around a result node, pass its node ID to TraverseAgentContext.
This is a convenience which creates an instance of the
SearchAgentContextRequest.Builderavoiding the need to create one manually viaSearchAgentContextRequest.builder()- Parameters:
searchAgentContextRequest- AConsumerthat will call methods onSearchAgentContextRequest.Builderto create a request. The request for SearchAgentContext.- Returns:
- A Java Future containing the result of the SearchAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchAgentContextPaginator
default SearchAgentContextPublisher searchAgentContextPaginator(SearchAgentContextRequest searchAgentContextRequest) This is a variant of
searchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest)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.context.paginators.SearchAgentContextPublisher publisher = client.searchAgentContextPaginator(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.context.paginators.SearchAgentContextPublisher publisher = client.searchAgentContextPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.SearchAgentContextResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.SearchAgentContextResponse 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
searchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest)operation.- Parameters:
searchAgentContextRequest- The request for SearchAgentContext.- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
searchAgentContextPaginator
default SearchAgentContextPublisher searchAgentContextPaginator(Consumer<SearchAgentContextRequest.Builder> searchAgentContextRequest) This is a variant of
searchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest)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.context.paginators.SearchAgentContextPublisher publisher = client.searchAgentContextPaginator(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.context.paginators.SearchAgentContextPublisher publisher = client.searchAgentContextPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.SearchAgentContextResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.SearchAgentContextResponse 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
searchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest)operation.
This is a convenience which creates an instance of the
SearchAgentContextRequest.Builderavoiding the need to create one manually viaSearchAgentContextRequest.builder()- Parameters:
searchAgentContextRequest- AConsumerthat will call methods onSearchAgentContextRequest.Builderto create a request. The request for SearchAgentContext.- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startOntologyInduction
default CompletableFuture<StartOntologyInductionResponse> startOntologyInduction(StartOntologyInductionRequest startOntologyInductionRequest) Starts an ontology induction, which induces a draft ontology from the documents that you provide. The induction runs asynchronously. To get its status, call GetOntologyInduction. When the induction's status is
DRAFT, AWS Context has created the ontology as aDRAFT: GetOntologyInduction returns the ontology's ID, and GetOntology returns the draft. To publish the draft, use the AWS Context console. Because AWS Context creates the ontology on your behalf, you needcontext:CreateOntologypermission in addition tocontext:StartOntologyInduction. If you specify tags, you also needcontext:TagResourcepermission.- Parameters:
startOntologyInductionRequest-- Returns:
- A Java Future containing the result of the StartOntologyInduction 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startOntologyInduction
default CompletableFuture<StartOntologyInductionResponse> startOntologyInduction(Consumer<StartOntologyInductionRequest.Builder> startOntologyInductionRequest) Starts an ontology induction, which induces a draft ontology from the documents that you provide. The induction runs asynchronously. To get its status, call GetOntologyInduction. When the induction's status is
DRAFT, AWS Context has created the ontology as aDRAFT: GetOntologyInduction returns the ontology's ID, and GetOntology returns the draft. To publish the draft, use the AWS Context console. Because AWS Context creates the ontology on your behalf, you needcontext:CreateOntologypermission in addition tocontext:StartOntologyInduction. If you specify tags, you also needcontext:TagResourcepermission.
This is a convenience which creates an instance of the
StartOntologyInductionRequest.Builderavoiding the need to create one manually viaStartOntologyInductionRequest.builder()- Parameters:
startOntologyInductionRequest- AConsumerthat will call methods onStartOntologyInductionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartOntologyInduction 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startTask
Starts a task that imports a data dictionary, verified queries, or ontologies into an agent context. The task runs asynchronously and records the changes it makes as change sets. GetTask returns its status.
- Parameters:
startTaskRequest-- Returns:
- A Java Future containing the result of the StartTask 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startTask
default CompletableFuture<StartTaskResponse> startTask(Consumer<StartTaskRequest.Builder> startTaskRequest) Starts a task that imports a data dictionary, verified queries, or ontologies into an agent context. The task runs asynchronously and records the changes it makes as change sets. GetTask returns its status.
This is a convenience which creates an instance of the
StartTaskRequest.Builderavoiding the need to create one manually viaStartTaskRequest.builder()- Parameters:
startTaskRequest- AConsumerthat will call methods onStartTaskRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartTask 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds tags to an agent context, connection, curation policy, customer-owned ontology, or ontology induction.
- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to an agent context, connection, curation policy, customer-owned ontology, or ontology induction.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the TagResource 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
traverseAgentContext
default CompletableFuture<TraverseAgentContextResponse> traverseAgentContext(TraverseAgentContextRequest traverseAgentContextRequest) Returns the neighbors of a seed node in an agent context, each with its properties, hop distance, and the edges that connect it to the seed. To get the seed node ID, call SearchAgentContext.
- Parameters:
traverseAgentContextRequest- The request for TraverseAgentContext.- Returns:
- A Java Future containing the result of the TraverseAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
traverseAgentContext
default CompletableFuture<TraverseAgentContextResponse> traverseAgentContext(Consumer<TraverseAgentContextRequest.Builder> traverseAgentContextRequest) Returns the neighbors of a seed node in an agent context, each with its properties, hop distance, and the edges that connect it to the seed. To get the seed node ID, call SearchAgentContext.
This is a convenience which creates an instance of the
TraverseAgentContextRequest.Builderavoiding the need to create one manually viaTraverseAgentContextRequest.builder()- Parameters:
traverseAgentContextRequest- AConsumerthat will call methods onTraverseAgentContextRequest.Builderto create a request. The request for TraverseAgentContext.- Returns:
- A Java Future containing the result of the TraverseAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
traverseAgentContextPaginator
default TraverseAgentContextPublisher traverseAgentContextPaginator(TraverseAgentContextRequest traverseAgentContextRequest) This is a variant of
traverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest)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.context.paginators.TraverseAgentContextPublisher publisher = client.traverseAgentContextPaginator(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.context.paginators.TraverseAgentContextPublisher publisher = client.traverseAgentContextPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.TraverseAgentContextResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.TraverseAgentContextResponse 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
traverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest)operation.- Parameters:
traverseAgentContextRequest- The request for TraverseAgentContext.- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
traverseAgentContextPaginator
default TraverseAgentContextPublisher traverseAgentContextPaginator(Consumer<TraverseAgentContextRequest.Builder> traverseAgentContextRequest) This is a variant of
traverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest)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.context.paginators.TraverseAgentContextPublisher publisher = client.traverseAgentContextPaginator(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.context.paginators.TraverseAgentContextPublisher publisher = client.traverseAgentContextPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.TraverseAgentContextResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.context.model.TraverseAgentContextResponse 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
traverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest)operation.
This is a convenience which creates an instance of the
TraverseAgentContextRequest.Builderavoiding the need to create one manually viaTraverseAgentContextRequest.builder()- Parameters:
traverseAgentContextRequest- AConsumerthat will call methods onTraverseAgentContextRequest.Builderto create a request. The request for TraverseAgentContext.- 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from an agent context, connection, curation policy, customer-owned ontology, or ontology induction.
- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from an agent context, connection, curation policy, customer-owned ontology, or ontology induction.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UntagResource 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAgentContext
default CompletableFuture<UpdateAgentContextResponse> updateAgentContext(UpdateAgentContextRequest updateAgentContextRequest) Updates an agent context's configuration.
- Parameters:
updateAgentContextRequest-- Returns:
- A Java Future containing the result of the UpdateAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAgentContext
default CompletableFuture<UpdateAgentContextResponse> updateAgentContext(Consumer<UpdateAgentContextRequest.Builder> updateAgentContextRequest) Updates an agent context's configuration.
This is a convenience which creates an instance of the
UpdateAgentContextRequest.Builderavoiding the need to create one manually viaUpdateAgentContextRequest.builder()- Parameters:
updateAgentContextRequest- AConsumerthat will call methods onUpdateAgentContextRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateAgentContext 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateChangeSet
default CompletableFuture<UpdateChangeSetResponse> updateChangeSet(UpdateChangeSetRequest updateChangeSetRequest) Drops operations from a change set that is held for curator review. Returns the updated change set.
- Parameters:
updateChangeSetRequest-- Returns:
- A Java Future containing the result of the UpdateChangeSet 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateChangeSet
default CompletableFuture<UpdateChangeSetResponse> updateChangeSet(Consumer<UpdateChangeSetRequest.Builder> updateChangeSetRequest) Drops operations from a change set that is held for curator review. Returns the updated change set.
This is a convenience which creates an instance of the
UpdateChangeSetRequest.Builderavoiding the need to create one manually viaUpdateChangeSetRequest.builder()- Parameters:
updateChangeSetRequest- AConsumerthat will call methods onUpdateChangeSetRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateChangeSet 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateConnection
default CompletableFuture<UpdateConnectionResponse> updateConnection(UpdateConnectionRequest updateConnectionRequest) Updates a connection's configuration.
- Parameters:
updateConnectionRequest-- Returns:
- A Java Future containing the result of the UpdateConnection 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateConnection
default CompletableFuture<UpdateConnectionResponse> updateConnection(Consumer<UpdateConnectionRequest.Builder> updateConnectionRequest) Updates a connection's configuration.
This is a convenience which creates an instance of the
UpdateConnectionRequest.Builderavoiding the need to create one manually viaUpdateConnectionRequest.builder()- Parameters:
updateConnectionRequest- AConsumerthat will call methods onUpdateConnectionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateConnection 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- ServiceQuotaExceededException The request would exceed a service quota. Check the quota that
quotaCodenames, reduce your usage, and then retry the request. - InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateCurationPolicy
default CompletableFuture<UpdateCurationPolicyResponse> updateCurationPolicy(UpdateCurationPolicyRequest updateCurationPolicyRequest) Updates a curation policy's working copy.
- Parameters:
updateCurationPolicyRequest-- Returns:
- A Java Future containing the result of the UpdateCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateCurationPolicy
default CompletableFuture<UpdateCurationPolicyResponse> updateCurationPolicy(Consumer<UpdateCurationPolicyRequest.Builder> updateCurationPolicyRequest) Updates a curation policy's working copy.
This is a convenience which creates an instance of the
UpdateCurationPolicyRequest.Builderavoiding the need to create one manually viaUpdateCurationPolicyRequest.builder()- Parameters:
updateCurationPolicyRequest- AConsumerthat will call methods onUpdateCurationPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateCurationPolicy 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.- ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
- ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
- ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
- InternalServerException The request failed because of an internal error. Retry the request.
- ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
- 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.
- ContextException 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 aContextAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aContextAsyncClient.
-