Interface ContextClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
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 TypeMethodDescriptiondefault AcceptCurationProposalResponseacceptCurationProposal(Consumer<AcceptCurationProposalRequest.Builder> acceptCurationProposalRequest) Accepts a curation proposal and applies its change to the agent context.default AcceptCurationProposalResponseacceptCurationProposal(AcceptCurationProposalRequest acceptCurationProposalRequest) Accepts a curation proposal and applies its change to the agent context.default AgenticRetrieveResponseagenticRetrieve(Consumer<AgenticRetrieveRequest.Builder> agenticRetrieveRequest) Retrieves ranked context from an agent context for a natural-language question, in a single response.default AgenticRetrieveResponseagenticRetrieve(AgenticRetrieveRequest agenticRetrieveRequest) Retrieves ranked context from an agent context for a natural-language question, in a single response.default AssociateCurationPolicyResponseassociateCurationPolicy(Consumer<AssociateCurationPolicyRequest.Builder> associateCurationPolicyRequest) Associates a curation policy with an agent context.default AssociateCurationPolicyResponseassociateCurationPolicy(AssociateCurationPolicyRequest associateCurationPolicyRequest) Associates a curation policy with an agent context.static ContextClientBuilderbuilder()Create a builder that can be used to configure and create aContextClient.default CancelOntologyInductionResponsecancelOntologyInduction(Consumer<CancelOntologyInductionRequest.Builder> cancelOntologyInductionRequest) Cancels an ontology induction that is stillINDUCING.default CancelOntologyInductionResponsecancelOntologyInduction(CancelOntologyInductionRequest cancelOntologyInductionRequest) Cancels an ontology induction that is stillINDUCING.default CancelTaskResponsecancelTask(Consumer<CancelTaskRequest.Builder> cancelTaskRequest) Cancels a task that isPENDINGorIN_PROGRESS.default CancelTaskResponsecancelTask(CancelTaskRequest cancelTaskRequest) Cancels a task that isPENDINGorIN_PROGRESS.static ContextClientcreate()Create aContextClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateAgentContextResponsecreateAgentContext(Consumer<CreateAgentContextRequest.Builder> createAgentContextRequest) Creates an agent context over one or more connections.default CreateAgentContextResponsecreateAgentContext(CreateAgentContextRequest createAgentContextRequest) Creates an agent context over one or more connections.default CreateChangeSetResponsecreateChangeSet(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 CreateChangeSetResponsecreateChangeSet(CreateChangeSetRequest createChangeSetRequest) Proposes a change to an agent context, as ChangeSetOperation items (the same items that ListChangeSetOperations returns), each setting one ofput,update, ordelete.default CreateConnectionResponsecreateConnection(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.default CreateConnectionResponsecreateConnection(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.default CreateCurationPolicyResponsecreateCurationPolicy(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.default CreateCurationPolicyResponsecreateCurationPolicy(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 CreateOntologyResponsecreateOntology(Consumer<CreateOntologyRequest.Builder> createOntologyRequest) Creates an ontology from an OWL ontology document.default CreateOntologyResponsecreateOntology(CreateOntologyRequest createOntologyRequest) Creates an ontology from an OWL ontology document.default DeleteAgentContextResponsedeleteAgentContext(Consumer<DeleteAgentContextRequest.Builder> deleteAgentContextRequest) Deletes an agent context.default DeleteAgentContextResponsedeleteAgentContext(DeleteAgentContextRequest deleteAgentContextRequest) Deletes an agent context.default DeleteConnectionResponsedeleteConnection(Consumer<DeleteConnectionRequest.Builder> deleteConnectionRequest) Deletes a connection.default DeleteConnectionResponsedeleteConnection(DeleteConnectionRequest deleteConnectionRequest) Deletes a connection.default DeleteCurationPolicyResponsedeleteCurationPolicy(Consumer<DeleteCurationPolicyRequest.Builder> deleteCurationPolicyRequest) Deletes a curation policy.default DeleteCurationPolicyResponsedeleteCurationPolicy(DeleteCurationPolicyRequest deleteCurationPolicyRequest) Deletes a curation policy.default DeleteOntologyResponsedeleteOntology(Consumer<DeleteOntologyRequest.Builder> deleteOntologyRequest) Deletes an ontology that you own and all of its versions.default DeleteOntologyResponsedeleteOntology(DeleteOntologyRequest deleteOntologyRequest) Deletes an ontology that you own and all of its versions.default DeleteOntologyInductionResponsedeleteOntologyInduction(Consumer<DeleteOntologyInductionRequest.Builder> deleteOntologyInductionRequest) Deletes an ontology induction.default DeleteOntologyInductionResponsedeleteOntologyInduction(DeleteOntologyInductionRequest deleteOntologyInductionRequest) Deletes an ontology induction.default DeleteResourcePolicyResponsedeleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Removes the resource-based policy from an agent context.default DeleteResourcePolicyResponsedeleteResourcePolicy(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 ExecuteSqlResponseexecuteSql(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 ExecuteSqlResponseexecuteSql(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 GetAgentContextResponsegetAgentContext(Consumer<GetAgentContextRequest.Builder> getAgentContextRequest) Returns an agent context's configuration and status.default GetAgentContextResponsegetAgentContext(GetAgentContextRequest getAgentContextRequest) Returns an agent context's configuration and status.default GetChangeSetResponsegetChangeSet(Consumer<GetChangeSetRequest.Builder> getChangeSetRequest) Returns one change set's metadata: itsstatusand the other fields of the change set, without its operations.default GetChangeSetResponsegetChangeSet(GetChangeSetRequest getChangeSetRequest) Returns one change set's metadata: itsstatusand the other fields of the change set, without its operations.default GetConnectionResponsegetConnection(Consumer<GetConnectionRequest.Builder> getConnectionRequest) Returns a connection's configuration and status.default GetConnectionResponsegetConnection(GetConnectionRequest getConnectionRequest) Returns a connection's configuration and status.default GetCurationPolicyResponsegetCurationPolicy(Consumer<GetCurationPolicyRequest.Builder> getCurationPolicyRequest) Returns a curation policy's configuration, status, and policy document.default GetCurationPolicyResponsegetCurationPolicy(GetCurationPolicyRequest getCurationPolicyRequest) Returns a curation policy's configuration, status, and policy document.default GetCurationProposalResponsegetCurationProposal(Consumer<GetCurationProposalRequest.Builder> getCurationProposalRequest) Returns a curation proposal and a summary of the change that it holds for review.default GetCurationProposalResponsegetCurationProposal(GetCurationProposalRequest getCurationProposalRequest) Returns a curation proposal and a summary of the change that it holds for review.default GetOntologyResponsegetOntology(Consumer<GetOntologyRequest.Builder> getOntologyRequest) Returns an ontology's status and one of its versions.default GetOntologyResponsegetOntology(GetOntologyRequest getOntologyRequest) Returns an ontology's status and one of its versions.default GetOntologyInductionResponsegetOntologyInduction(Consumer<GetOntologyInductionRequest.Builder> getOntologyInductionRequest) Returns an ontology induction's status, and, once it is a draft, the ontology it created.default GetOntologyInductionResponsegetOntologyInduction(GetOntologyInductionRequest getOntologyInductionRequest) Returns an ontology induction's status, and, once it is a draft, the ontology it created.default GetResourcePolicyResponsegetResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Returns the resource-based policy attached to an agent context, with its revision ID.default GetResourcePolicyResponsegetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Returns the resource-based policy attached to an agent context, with its revision ID.default GetTaskResponsegetTask(Consumer<GetTaskRequest.Builder> getTaskRequest) Returns a task's configuration, status, and results.default GetTaskResponsegetTask(GetTaskRequest getTaskRequest) Returns a task's configuration, status, and results.default ListAgentContextsResponselistAgentContexts(Consumer<ListAgentContextsRequest.Builder> listAgentContextsRequest) Lists the agent contexts in your account.default ListAgentContextsResponselistAgentContexts(ListAgentContextsRequest listAgentContextsRequest) Lists the agent contexts in your account.default ListAgentContextsIterablelistAgentContextsPaginator(Consumer<ListAgentContextsRequest.Builder> listAgentContextsRequest) This is a variant oflistAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest)operation.default ListAgentContextsIterablelistAgentContextsPaginator(ListAgentContextsRequest listAgentContextsRequest) This is a variant oflistAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest)operation.default ListChangeSetOperationsResponselistChangeSetOperations(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.default ListChangeSetOperationsResponselistChangeSetOperations(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 ListChangeSetOperationsIterablelistChangeSetOperationsPaginator(Consumer<ListChangeSetOperationsRequest.Builder> listChangeSetOperationsRequest) This is a variant oflistChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest)operation.default ListChangeSetOperationsIterablelistChangeSetOperationsPaginator(ListChangeSetOperationsRequest listChangeSetOperationsRequest) This is a variant oflistChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest)operation.default ListChangeSetsResponselistChangeSets(Consumer<ListChangeSetsRequest.Builder> listChangeSetsRequest) Lists an agent context's change sets that have the specifiedstatus, newest first.default ListChangeSetsResponselistChangeSets(ListChangeSetsRequest listChangeSetsRequest) Lists an agent context's change sets that have the specifiedstatus, newest first.default ListChangeSetsIterablelistChangeSetsPaginator(Consumer<ListChangeSetsRequest.Builder> listChangeSetsRequest) This is a variant oflistChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest)operation.default ListChangeSetsIterablelistChangeSetsPaginator(ListChangeSetsRequest listChangeSetsRequest) This is a variant oflistChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest)operation.default ListConnectionsResponselistConnections(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) Lists the connections in your account, most recently updated first.default ListConnectionsResponselistConnections(ListConnectionsRequest listConnectionsRequest) Lists the connections in your account, most recently updated first.default ListConnectionsIterablelistConnectionsPaginator(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) This is a variant oflistConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest)operation.default ListConnectionsIterablelistConnectionsPaginator(ListConnectionsRequest listConnectionsRequest) This is a variant oflistConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest)operation.default ListCurationPoliciesResponselistCurationPolicies(Consumer<ListCurationPoliciesRequest.Builder> listCurationPoliciesRequest) Lists the curation policies in your account, or the ones associated with an agent context.default ListCurationPoliciesResponselistCurationPolicies(ListCurationPoliciesRequest listCurationPoliciesRequest) Lists the curation policies in your account, or the ones associated with an agent context.default ListCurationPoliciesIterablelistCurationPoliciesPaginator(Consumer<ListCurationPoliciesRequest.Builder> listCurationPoliciesRequest) This is a variant oflistCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest)operation.default ListCurationPoliciesIterablelistCurationPoliciesPaginator(ListCurationPoliciesRequest listCurationPoliciesRequest) This is a variant oflistCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest)operation.default ListCurationProposalsResponselistCurationProposals(Consumer<ListCurationProposalsRequest.Builder> listCurationProposalsRequest) Lists an agent context's curation proposals, newest first.default ListCurationProposalsResponselistCurationProposals(ListCurationProposalsRequest listCurationProposalsRequest) Lists an agent context's curation proposals, newest first.default ListCurationProposalsIterablelistCurationProposalsPaginator(Consumer<ListCurationProposalsRequest.Builder> listCurationProposalsRequest) This is a variant oflistCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest)operation.default ListCurationProposalsIterablelistCurationProposalsPaginator(ListCurationProposalsRequest listCurationProposalsRequest) This is a variant oflistCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest)operation.default ListOntologiesResponselistOntologies(Consumer<ListOntologiesRequest.Builder> listOntologiesRequest) Lists the ontologies in your account, with the status of each.default ListOntologiesResponselistOntologies(ListOntologiesRequest listOntologiesRequest) Lists the ontologies in your account, with the status of each.default ListOntologiesIterablelistOntologiesPaginator(Consumer<ListOntologiesRequest.Builder> listOntologiesRequest) This is a variant oflistOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest)operation.default ListOntologiesIterablelistOntologiesPaginator(ListOntologiesRequest listOntologiesRequest) This is a variant oflistOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest)operation.default ListOntologyInductionsResponselistOntologyInductions(Consumer<ListOntologyInductionsRequest.Builder> listOntologyInductionsRequest) Lists the ontology inductions in your account.default ListOntologyInductionsResponselistOntologyInductions(ListOntologyInductionsRequest listOntologyInductionsRequest) Lists the ontology inductions in your account.default ListOntologyInductionsIterablelistOntologyInductionsPaginator(Consumer<ListOntologyInductionsRequest.Builder> listOntologyInductionsRequest) This is a variant oflistOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest)operation.default ListOntologyInductionsIterablelistOntologyInductionsPaginator(ListOntologyInductionsRequest listOntologyInductionsRequest) This is a variant oflistOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the tags on an agent context, connection, curation policy, customer-owned ontology, or ontology induction.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the tags on an agent context, connection, curation policy, customer-owned ontology, or ontology induction.default ListTasksResponselistTasks(Consumer<ListTasksRequest.Builder> listTasksRequest) Lists an agent context's tasks, newest first.default ListTasksResponselistTasks(ListTasksRequest listTasksRequest) Lists an agent context's tasks, newest first.default ListTasksIterablelistTasksPaginator(Consumer<ListTasksRequest.Builder> listTasksRequest) This is a variant oflistTasks(software.amazon.awssdk.services.context.model.ListTasksRequest)operation.default ListTasksIterablelistTasksPaginator(ListTasksRequest listTasksRequest) This is a variant oflistTasks(software.amazon.awssdk.services.context.model.ListTasksRequest)operation.default PutResourcePolicyResponseputResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Attaches a resource-based policy to an agent context, or replaces the one it has.default PutResourcePolicyResponseputResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) Attaches a resource-based policy to an agent context, or replaces the one it has.default PutTraceResponseputTrace(Consumer<PutTraceRequest.Builder> putTraceRequest) Submits an agent's execution traces so that AWS Context can extract reusable knowledge and skills from them.default PutTraceResponseputTrace(PutTraceRequest putTraceRequest) Submits an agent's execution traces so that AWS Context can extract reusable knowledge and skills from them.default RejectCurationProposalResponserejectCurationProposal(Consumer<RejectCurationProposalRequest.Builder> rejectCurationProposalRequest) Rejects a curation proposal.default RejectCurationProposalResponserejectCurationProposal(RejectCurationProposalRequest rejectCurationProposalRequest) Rejects a curation proposal.default SearchAgentContextResponsesearchAgentContext(Consumer<SearchAgentContextRequest.Builder> searchAgentContextRequest) Searches an agent context for entities matching a query.default SearchAgentContextResponsesearchAgentContext(SearchAgentContextRequest searchAgentContextRequest) Searches an agent context for entities matching a query.default SearchAgentContextIterablesearchAgentContextPaginator(Consumer<SearchAgentContextRequest.Builder> searchAgentContextRequest) This is a variant ofsearchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest)operation.default SearchAgentContextIterablesearchAgentContextPaginator(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., ClientOverrideConfigurationstatic ServiceMetadatadefault StartOntologyInductionResponsestartOntologyInduction(Consumer<StartOntologyInductionRequest.Builder> startOntologyInductionRequest) Starts an ontology induction, which induces a draft ontology from the documents that you provide.default StartOntologyInductionResponsestartOntologyInduction(StartOntologyInductionRequest startOntologyInductionRequest) Starts an ontology induction, which induces a draft ontology from the documents that you provide.default StartTaskResponsestartTask(Consumer<StartTaskRequest.Builder> startTaskRequest) Starts a task that imports a data dictionary, verified queries, or ontologies into an agent context.default StartTaskResponsestartTask(StartTaskRequest startTaskRequest) Starts a task that imports a data dictionary, verified queries, or ontologies into an agent context.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to an agent context, connection, curation policy, customer-owned ontology, or ontology induction.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds tags to an agent context, connection, curation policy, customer-owned ontology, or ontology induction.default TraverseAgentContextResponsetraverseAgentContext(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.default TraverseAgentContextResponsetraverseAgentContext(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 TraverseAgentContextIterabletraverseAgentContextPaginator(Consumer<TraverseAgentContextRequest.Builder> traverseAgentContextRequest) This is a variant oftraverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest)operation.default TraverseAgentContextIterabletraverseAgentContextPaginator(TraverseAgentContextRequest traverseAgentContextRequest) This is a variant oftraverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest)operation.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from an agent context, connection, curation policy, customer-owned ontology, or ontology induction.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes tags from an agent context, connection, curation policy, customer-owned ontology, or ontology induction.default UpdateAgentContextResponseupdateAgentContext(Consumer<UpdateAgentContextRequest.Builder> updateAgentContextRequest) Updates an agent context's configuration.default UpdateAgentContextResponseupdateAgentContext(UpdateAgentContextRequest updateAgentContextRequest) Updates an agent context's configuration.default UpdateChangeSetResponseupdateChangeSet(Consumer<UpdateChangeSetRequest.Builder> updateChangeSetRequest) Drops operations from a change set that is held for curator review.default UpdateChangeSetResponseupdateChangeSet(UpdateChangeSetRequest updateChangeSetRequest) Drops operations from a change set that is held for curator review.default UpdateConnectionResponseupdateConnection(Consumer<UpdateConnectionRequest.Builder> updateConnectionRequest) Updates a connection's configuration.default UpdateConnectionResponseupdateConnection(UpdateConnectionRequest updateConnectionRequest) Updates a connection's configuration.default UpdateCurationPolicyResponseupdateCurationPolicy(Consumer<UpdateCurationPolicyRequest.Builder> updateCurationPolicyRequest) Updates a curation policy's working copy.default UpdateCurationPolicyResponseupdateCurationPolicy(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 AcceptCurationProposalResponse acceptCurationProposal(AcceptCurationProposalRequest acceptCurationProposalRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Accepts a curation proposal and applies its change to the agent context.
- Parameters:
acceptCurationProposalRequest-- Returns:
- Result of the AcceptCurationProposal operation returned by the service.
- See Also:
-
acceptCurationProposal
default AcceptCurationProposalResponse acceptCurationProposal(Consumer<AcceptCurationProposalRequest.Builder> acceptCurationProposalRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the AcceptCurationProposal operation returned by the service.
- See Also:
-
agenticRetrieve
default AgenticRetrieveResponse agenticRetrieve(AgenticRetrieveRequest agenticRetrieveRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the AgenticRetrieve operation returned by the service.
- See Also:
-
agenticRetrieve
default AgenticRetrieveResponse agenticRetrieve(Consumer<AgenticRetrieveRequest.Builder> agenticRetrieveRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the AgenticRetrieve operation returned by the service.
- See Also:
-
associateCurationPolicy
default AssociateCurationPolicyResponse associateCurationPolicy(AssociateCurationPolicyRequest associateCurationPolicyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the AssociateCurationPolicy operation returned by the service.
- See Also:
-
associateCurationPolicy
default AssociateCurationPolicyResponse associateCurationPolicy(Consumer<AssociateCurationPolicyRequest.Builder> associateCurationPolicyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the AssociateCurationPolicy operation returned by the service.
- See Also:
-
cancelOntologyInduction
default CancelOntologyInductionResponse cancelOntologyInduction(CancelOntologyInductionRequest cancelOntologyInductionRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Cancels an ontology induction that is still
INDUCING. The induction's status changes toCANCELLED, and no ontology is created.- Parameters:
cancelOntologyInductionRequest-- Returns:
- Result of the CancelOntologyInduction operation returned by the service.
- See Also:
-
cancelOntologyInduction
default CancelOntologyInductionResponse cancelOntologyInduction(Consumer<CancelOntologyInductionRequest.Builder> cancelOntologyInductionRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CancelOntologyInduction operation returned by the service.
- See Also:
-
cancelTask
default CancelTaskResponse cancelTask(CancelTaskRequest cancelTaskRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CancelTask operation returned by the service.
- See Also:
-
cancelTask
default CancelTaskResponse cancelTask(Consumer<CancelTaskRequest.Builder> cancelTaskRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CancelTask operation returned by the service.
- See Also:
-
createAgentContext
default CreateAgentContextResponse createAgentContext(CreateAgentContextRequest createAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Creates an agent context over one or more connections. Creation is asynchronous. GetAgentContext returns its status.
- Parameters:
createAgentContextRequest-- Returns:
- Result of the CreateAgentContext operation returned by the service.
- See Also:
-
createAgentContext
default CreateAgentContextResponse createAgentContext(Consumer<CreateAgentContextRequest.Builder> createAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CreateAgentContext operation returned by the service.
- See Also:
-
createChangeSet
default CreateChangeSetResponse createChangeSet(CreateChangeSetRequest createChangeSetRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CreateChangeSet operation returned by the service.
- See Also:
-
createChangeSet
default CreateChangeSetResponse createChangeSet(Consumer<CreateChangeSetRequest.Builder> createChangeSetRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CreateChangeSet operation returned by the service.
- See Also:
-
createConnection
default CreateConnectionResponse createConnection(CreateConnectionRequest createConnectionRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CreateConnection operation returned by the service.
- See Also:
-
createConnection
default CreateConnectionResponse createConnection(Consumer<CreateConnectionRequest.Builder> createConnectionRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CreateConnection operation returned by the service.
- See Also:
-
createCurationPolicy
default CreateCurationPolicyResponse createCurationPolicy(CreateCurationPolicyRequest createCurationPolicyRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CreateCurationPolicy operation returned by the service.
- See Also:
-
createCurationPolicy
default CreateCurationPolicyResponse createCurationPolicy(Consumer<CreateCurationPolicyRequest.Builder> createCurationPolicyRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CreateCurationPolicy operation returned by the service.
- See Also:
-
createCurationPolicyVersion
default CreateCurationPolicyVersionResponse createCurationPolicyVersion(CreateCurationPolicyVersionRequest createCurationPolicyVersionRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CreateCurationPolicyVersion operation returned by the service.
- See Also:
-
createCurationPolicyVersion
default CreateCurationPolicyVersionResponse createCurationPolicyVersion(Consumer<CreateCurationPolicyVersionRequest.Builder> createCurationPolicyVersionRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CreateCurationPolicyVersion operation returned by the service.
- See Also:
-
createOntology
default CreateOntologyResponse createOntology(CreateOntologyRequest createOntologyRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CreateOntology operation returned by the service.
- See Also:
-
createOntology
default CreateOntologyResponse createOntology(Consumer<CreateOntologyRequest.Builder> createOntologyRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the CreateOntology operation returned by the service.
- See Also:
-
deleteAgentContext
default DeleteAgentContextResponse deleteAgentContext(DeleteAgentContextRequest deleteAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Deletes an agent context. Deletion is asynchronous. An agent context that does not exist or is already being deleted returns ResourceNotFoundException.
- Parameters:
deleteAgentContextRequest-- Returns:
- Result of the DeleteAgentContext operation returned by the service.
- See Also:
-
deleteAgentContext
default DeleteAgentContextResponse deleteAgentContext(Consumer<DeleteAgentContextRequest.Builder> deleteAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the DeleteAgentContext operation returned by the service.
- See Also:
-
deleteConnection
default DeleteConnectionResponse deleteConnection(DeleteConnectionRequest deleteConnectionRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the DeleteConnection operation returned by the service.
- See Also:
-
deleteConnection
default DeleteConnectionResponse deleteConnection(Consumer<DeleteConnectionRequest.Builder> deleteConnectionRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the DeleteConnection operation returned by the service.
- See Also:
-
deleteCurationPolicy
default DeleteCurationPolicyResponse deleteCurationPolicy(DeleteCurationPolicyRequest deleteCurationPolicyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the DeleteCurationPolicy operation returned by the service.
- See Also:
-
deleteCurationPolicy
default DeleteCurationPolicyResponse deleteCurationPolicy(Consumer<DeleteCurationPolicyRequest.Builder> deleteCurationPolicyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the DeleteCurationPolicy operation returned by the service.
- See Also:
-
deleteOntology
default DeleteOntologyResponse deleteOntology(DeleteOntologyRequest deleteOntologyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the DeleteOntology operation returned by the service.
- See Also:
-
deleteOntology
default DeleteOntologyResponse deleteOntology(Consumer<DeleteOntologyRequest.Builder> deleteOntologyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the DeleteOntology operation returned by the service.
- See Also:
-
deleteOntologyInduction
default DeleteOntologyInductionResponse deleteOntologyInduction(DeleteOntologyInductionRequest deleteOntologyInductionRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the DeleteOntologyInduction operation returned by the service.
- See Also:
-
deleteOntologyInduction
default DeleteOntologyInductionResponse deleteOntologyInduction(Consumer<DeleteOntologyInductionRequest.Builder> deleteOntologyInductionRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the DeleteOntologyInduction operation returned by the service.
- See Also:
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Removes the resource-based policy from an agent context.
- Parameters:
deleteResourcePolicyRequest-- Returns:
- Result of the DeleteResourcePolicy operation returned by the service.
- See Also:
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the DeleteResourcePolicy operation returned by the service.
- See Also:
-
disassociateCurationPolicy
default DisassociateCurationPolicyResponse disassociateCurationPolicy(DisassociateCurationPolicyRequest disassociateCurationPolicyRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Disassociates a curation policy from an agent context, so the agent context stops enforcing it.
- Parameters:
disassociateCurationPolicyRequest-- Returns:
- Result of the DisassociateCurationPolicy operation returned by the service.
- See Also:
-
disassociateCurationPolicy
default DisassociateCurationPolicyResponse disassociateCurationPolicy(Consumer<DisassociateCurationPolicyRequest.Builder> disassociateCurationPolicyRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the DisassociateCurationPolicy operation returned by the service.
- See Also:
-
executeSql
default ExecuteSqlResponse executeSql(ExecuteSqlRequest executeSqlRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ExecuteSql operation returned by the service.
- See Also:
-
executeSql
default ExecuteSqlResponse executeSql(Consumer<ExecuteSqlRequest.Builder> executeSqlRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ExecuteSql operation returned by the service.
- See Also:
-
getAgentContext
default GetAgentContextResponse getAgentContext(GetAgentContextRequest getAgentContextRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Returns an agent context's configuration and status.
- Parameters:
getAgentContextRequest-- Returns:
- Result of the GetAgentContext operation returned by the service.
- See Also:
-
getAgentContext
default GetAgentContextResponse getAgentContext(Consumer<GetAgentContextRequest.Builder> getAgentContextRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the GetAgentContext operation returned by the service.
- See Also:
-
getChangeSet
default GetChangeSetResponse getChangeSet(GetChangeSetRequest getChangeSetRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the GetChangeSet operation returned by the service.
- See Also:
-
getChangeSet
default GetChangeSetResponse getChangeSet(Consumer<GetChangeSetRequest.Builder> getChangeSetRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the GetChangeSet operation returned by the service.
- See Also:
-
getConnection
default GetConnectionResponse getConnection(GetConnectionRequest getConnectionRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Returns a connection's configuration and status.
- Parameters:
getConnectionRequest-- Returns:
- Result of the GetConnection operation returned by the service.
- See Also:
-
getConnection
default GetConnectionResponse getConnection(Consumer<GetConnectionRequest.Builder> getConnectionRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the GetConnection operation returned by the service.
- See Also:
-
getCurationPolicy
default GetCurationPolicyResponse getCurationPolicy(GetCurationPolicyRequest getCurationPolicyRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Returns a curation policy's configuration, status, and policy document.
- Parameters:
getCurationPolicyRequest-- Returns:
- Result of the GetCurationPolicy operation returned by the service.
- See Also:
-
getCurationPolicy
default GetCurationPolicyResponse getCurationPolicy(Consumer<GetCurationPolicyRequest.Builder> getCurationPolicyRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the GetCurationPolicy operation returned by the service.
- See Also:
-
getCurationProposal
default GetCurationProposalResponse getCurationProposal(GetCurationProposalRequest getCurationProposalRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the GetCurationProposal operation returned by the service.
- See Also:
-
getCurationProposal
default GetCurationProposalResponse getCurationProposal(Consumer<GetCurationProposalRequest.Builder> getCurationProposalRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the GetCurationProposal operation returned by the service.
- See Also:
-
getOntology
default GetOntologyResponse getOntology(GetOntologyRequest getOntologyRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Returns an ontology's status and one of its versions.
- Parameters:
getOntologyRequest- Identifies the ontology to return and, optionally, the version.- Returns:
- Result of the GetOntology operation returned by the service.
- See Also:
-
getOntology
default GetOntologyResponse getOntology(Consumer<GetOntologyRequest.Builder> getOntologyRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the GetOntology operation returned by the service.
- See Also:
-
getOntologyInduction
default GetOntologyInductionResponse getOntologyInduction(GetOntologyInductionRequest getOntologyInductionRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Returns an ontology induction's status, and, once it is a draft, the ontology it created.
- Parameters:
getOntologyInductionRequest-- Returns:
- Result of the GetOntologyInduction operation returned by the service.
- See Also:
-
getOntologyInduction
default GetOntologyInductionResponse getOntologyInduction(Consumer<GetOntologyInductionRequest.Builder> getOntologyInductionRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the GetOntologyInduction operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Returns the resource-based policy attached to an agent context, with its revision ID.
- Parameters:
getResourcePolicyRequest-- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
getTask
default GetTaskResponse getTask(GetTaskRequest getTaskRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Returns a task's configuration, status, and results.
- Parameters:
getTaskRequest-- Returns:
- Result of the GetTask operation returned by the service.
- See Also:
-
getTask
default GetTaskResponse getTask(Consumer<GetTaskRequest.Builder> getTaskRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the GetTask operation returned by the service.
- See Also:
-
listAgentContexts
default ListAgentContextsResponse listAgentContexts(ListAgentContextsRequest listAgentContextsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListAgentContexts operation returned by the service.
- See Also:
-
listAgentContexts
default ListAgentContextsResponse listAgentContexts(Consumer<ListAgentContextsRequest.Builder> listAgentContextsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListAgentContexts operation returned by the service.
- See Also:
-
listAgentContextsPaginator
default ListAgentContextsIterable listAgentContextsPaginator(ListAgentContextsRequest listAgentContextsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListAgentContextsIterable responses = client.listAgentContextsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListAgentContextsIterable responses = client .listAgentContextsPaginator(request); for (software.amazon.awssdk.services.context.model.ListAgentContextsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListAgentContextsIterable responses = client.listAgentContextsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listAgentContextsPaginator
default ListAgentContextsIterable listAgentContextsPaginator(Consumer<ListAgentContextsRequest.Builder> listAgentContextsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListAgentContextsIterable responses = client.listAgentContextsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListAgentContextsIterable responses = client .listAgentContextsPaginator(request); for (software.amazon.awssdk.services.context.model.ListAgentContextsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListAgentContextsIterable responses = client.listAgentContextsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listChangeSetOperations
default ListChangeSetOperationsResponse listChangeSetOperations(ListChangeSetOperationsRequest listChangeSetOperationsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListChangeSetOperations operation returned by the service.
- See Also:
-
listChangeSetOperations
default ListChangeSetOperationsResponse listChangeSetOperations(Consumer<ListChangeSetOperationsRequest.Builder> listChangeSetOperationsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListChangeSetOperations operation returned by the service.
- See Also:
-
listChangeSetOperationsPaginator
default ListChangeSetOperationsIterable listChangeSetOperationsPaginator(ListChangeSetOperationsRequest listChangeSetOperationsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListChangeSetOperationsIterable responses = client.listChangeSetOperationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListChangeSetOperationsIterable responses = client .listChangeSetOperationsPaginator(request); for (software.amazon.awssdk.services.context.model.ListChangeSetOperationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListChangeSetOperationsIterable responses = client.listChangeSetOperationsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listChangeSetOperationsPaginator
default ListChangeSetOperationsIterable listChangeSetOperationsPaginator(Consumer<ListChangeSetOperationsRequest.Builder> listChangeSetOperationsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListChangeSetOperationsIterable responses = client.listChangeSetOperationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListChangeSetOperationsIterable responses = client .listChangeSetOperationsPaginator(request); for (software.amazon.awssdk.services.context.model.ListChangeSetOperationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListChangeSetOperationsIterable responses = client.listChangeSetOperationsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listChangeSets
default ListChangeSetsResponse listChangeSets(ListChangeSetsRequest listChangeSetsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListChangeSets operation returned by the service.
- See Also:
-
listChangeSets
default ListChangeSetsResponse listChangeSets(Consumer<ListChangeSetsRequest.Builder> listChangeSetsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListChangeSets operation returned by the service.
- See Also:
-
listChangeSetsPaginator
default ListChangeSetsIterable listChangeSetsPaginator(ListChangeSetsRequest listChangeSetsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListChangeSetsIterable responses = client.listChangeSetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListChangeSetsIterable responses = client.listChangeSetsPaginator(request); for (software.amazon.awssdk.services.context.model.ListChangeSetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListChangeSetsIterable responses = client.listChangeSetsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listChangeSetsPaginator
default ListChangeSetsIterable listChangeSetsPaginator(Consumer<ListChangeSetsRequest.Builder> listChangeSetsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListChangeSetsIterable responses = client.listChangeSetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListChangeSetsIterable responses = client.listChangeSetsPaginator(request); for (software.amazon.awssdk.services.context.model.ListChangeSetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListChangeSetsIterable responses = client.listChangeSetsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listConnections
default ListConnectionsResponse listConnections(ListConnectionsRequest listConnectionsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Lists the connections in your account, most recently updated first.
- Parameters:
listConnectionsRequest-- Returns:
- Result of the ListConnections operation returned by the service.
- See Also:
-
listConnections
default ListConnectionsResponse listConnections(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListConnections operation returned by the service.
- See Also:
-
listConnectionsPaginator
default ListConnectionsIterable listConnectionsPaginator(ListConnectionsRequest listConnectionsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListConnectionsIterable responses = client .listConnectionsPaginator(request); for (software.amazon.awssdk.services.context.model.ListConnectionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listConnectionsPaginator
default ListConnectionsIterable listConnectionsPaginator(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListConnectionsIterable responses = client .listConnectionsPaginator(request); for (software.amazon.awssdk.services.context.model.ListConnectionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listCurationPolicies
default ListCurationPoliciesResponse listCurationPolicies(ListCurationPoliciesRequest listCurationPoliciesRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListCurationPolicies operation returned by the service.
- See Also:
-
listCurationPolicies
default ListCurationPoliciesResponse listCurationPolicies(Consumer<ListCurationPoliciesRequest.Builder> listCurationPoliciesRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListCurationPolicies operation returned by the service.
- See Also:
-
listCurationPoliciesPaginator
default ListCurationPoliciesIterable listCurationPoliciesPaginator(ListCurationPoliciesRequest listCurationPoliciesRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListCurationPoliciesIterable responses = client.listCurationPoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListCurationPoliciesIterable responses = client .listCurationPoliciesPaginator(request); for (software.amazon.awssdk.services.context.model.ListCurationPoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListCurationPoliciesIterable responses = client.listCurationPoliciesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listCurationPoliciesPaginator
default ListCurationPoliciesIterable listCurationPoliciesPaginator(Consumer<ListCurationPoliciesRequest.Builder> listCurationPoliciesRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListCurationPoliciesIterable responses = client.listCurationPoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListCurationPoliciesIterable responses = client .listCurationPoliciesPaginator(request); for (software.amazon.awssdk.services.context.model.ListCurationPoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListCurationPoliciesIterable responses = client.listCurationPoliciesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listCurationProposals
default ListCurationProposalsResponse listCurationProposals(ListCurationProposalsRequest listCurationProposalsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Lists an agent context's curation proposals, newest first. A curation proposal holds a change to the agent context for review.
- Parameters:
listCurationProposalsRequest-- Returns:
- Result of the ListCurationProposals operation returned by the service.
- See Also:
-
listCurationProposals
default ListCurationProposalsResponse listCurationProposals(Consumer<ListCurationProposalsRequest.Builder> listCurationProposalsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListCurationProposals operation returned by the service.
- See Also:
-
listCurationProposalsPaginator
default ListCurationProposalsIterable listCurationProposalsPaginator(ListCurationProposalsRequest listCurationProposalsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListCurationProposalsIterable responses = client.listCurationProposalsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListCurationProposalsIterable responses = client .listCurationProposalsPaginator(request); for (software.amazon.awssdk.services.context.model.ListCurationProposalsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListCurationProposalsIterable responses = client.listCurationProposalsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listCurationProposalsPaginator
default ListCurationProposalsIterable listCurationProposalsPaginator(Consumer<ListCurationProposalsRequest.Builder> listCurationProposalsRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListCurationProposalsIterable responses = client.listCurationProposalsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListCurationProposalsIterable responses = client .listCurationProposalsPaginator(request); for (software.amazon.awssdk.services.context.model.ListCurationProposalsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListCurationProposalsIterable responses = client.listCurationProposalsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listOntologies
default ListOntologiesResponse listOntologies(ListOntologiesRequest listOntologiesRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Lists the ontologies in your account, with the status of each.
- Parameters:
listOntologiesRequest-- Returns:
- Result of the ListOntologies operation returned by the service.
- See Also:
-
listOntologies
default ListOntologiesResponse listOntologies(Consumer<ListOntologiesRequest.Builder> listOntologiesRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListOntologies operation returned by the service.
- See Also:
-
listOntologiesPaginator
default ListOntologiesIterable listOntologiesPaginator(ListOntologiesRequest listOntologiesRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListOntologiesIterable responses = client.listOntologiesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListOntologiesIterable responses = client.listOntologiesPaginator(request); for (software.amazon.awssdk.services.context.model.ListOntologiesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListOntologiesIterable responses = client.listOntologiesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listOntologiesPaginator
default ListOntologiesIterable listOntologiesPaginator(Consumer<ListOntologiesRequest.Builder> listOntologiesRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListOntologiesIterable responses = client.listOntologiesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListOntologiesIterable responses = client.listOntologiesPaginator(request); for (software.amazon.awssdk.services.context.model.ListOntologiesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListOntologiesIterable responses = client.listOntologiesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listOntologyInductions
default ListOntologyInductionsResponse listOntologyInductions(ListOntologyInductionsRequest listOntologyInductionsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Lists the ontology inductions in your account.
- Parameters:
listOntologyInductionsRequest-- Returns:
- Result of the ListOntologyInductions operation returned by the service.
- See Also:
-
listOntologyInductions
default ListOntologyInductionsResponse listOntologyInductions(Consumer<ListOntologyInductionsRequest.Builder> listOntologyInductionsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListOntologyInductions operation returned by the service.
- See Also:
-
listOntologyInductionsPaginator
default ListOntologyInductionsIterable listOntologyInductionsPaginator(ListOntologyInductionsRequest listOntologyInductionsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListOntologyInductionsIterable responses = client.listOntologyInductionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListOntologyInductionsIterable responses = client .listOntologyInductionsPaginator(request); for (software.amazon.awssdk.services.context.model.ListOntologyInductionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListOntologyInductionsIterable responses = client.listOntologyInductionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listOntologyInductionsPaginator
default ListOntologyInductionsIterable listOntologyInductionsPaginator(Consumer<ListOntologyInductionsRequest.Builder> listOntologyInductionsRequest) throws ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListOntologyInductionsIterable responses = client.listOntologyInductionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListOntologyInductionsIterable responses = client .listOntologyInductionsPaginator(request); for (software.amazon.awssdk.services.context.model.ListOntologyInductionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListOntologyInductionsIterable responses = client.listOntologyInductionsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Returns the tags on an agent context, connection, curation policy, customer-owned ontology, or ontology induction.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTasks
default ListTasksResponse listTasks(ListTasksRequest listTasksRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Lists an agent context's tasks, newest first.
- Parameters:
listTasksRequest-- Returns:
- Result of the ListTasks operation returned by the service.
- See Also:
-
listTasks
default ListTasksResponse listTasks(Consumer<ListTasksRequest.Builder> listTasksRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the ListTasks operation returned by the service.
- See Also:
-
listTasksPaginator
default ListTasksIterable listTasksPaginator(ListTasksRequest listTasksRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listTasks(software.amazon.awssdk.services.context.model.ListTasksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListTasksIterable responses = client.listTasksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListTasksIterable responses = client.listTasksPaginator(request); for (software.amazon.awssdk.services.context.model.ListTasksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListTasksIterable responses = client.listTasksPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listTasksPaginator
default ListTasksIterable listTasksPaginator(Consumer<ListTasksRequest.Builder> listTasksRequest) throws ThrottlingException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
listTasks(software.amazon.awssdk.services.context.model.ListTasksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.ListTasksIterable responses = client.listTasksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.ListTasksIterable responses = client.listTasksPaginator(request); for (software.amazon.awssdk.services.context.model.ListTasksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.ListTasksIterable responses = client.listTasksPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the PutResourcePolicy operation returned by the service.
- See Also:
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the PutResourcePolicy operation returned by the service.
- See Also:
-
putTrace
default PutTraceResponse putTrace(PutTraceRequest putTraceRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the PutTrace operation returned by the service.
- See Also:
-
putTrace
default PutTraceResponse putTrace(Consumer<PutTraceRequest.Builder> putTraceRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the PutTrace operation returned by the service.
- See Also:
-
rejectCurationProposal
default RejectCurationProposalResponse rejectCurationProposal(RejectCurationProposalRequest rejectCurationProposalRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Rejects a curation proposal. Its change is not applied to the agent context.
- Parameters:
rejectCurationProposalRequest-- Returns:
- Result of the RejectCurationProposal operation returned by the service.
- See Also:
-
rejectCurationProposal
default RejectCurationProposalResponse rejectCurationProposal(Consumer<RejectCurationProposalRequest.Builder> rejectCurationProposalRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the RejectCurationProposal operation returned by the service.
- See Also:
-
searchAgentContext
default SearchAgentContextResponse searchAgentContext(SearchAgentContextRequest searchAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the SearchAgentContext operation returned by the service.
- See Also:
-
searchAgentContext
default SearchAgentContextResponse searchAgentContext(Consumer<SearchAgentContextRequest.Builder> searchAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the SearchAgentContext operation returned by the service.
- See Also:
-
searchAgentContextPaginator
default SearchAgentContextIterable searchAgentContextPaginator(SearchAgentContextRequest searchAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
searchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.SearchAgentContextIterable responses = client.searchAgentContextPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.SearchAgentContextIterable responses = client .searchAgentContextPaginator(request); for (software.amazon.awssdk.services.context.model.SearchAgentContextResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.SearchAgentContextIterable responses = client.searchAgentContextPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
searchAgentContextPaginator
default SearchAgentContextIterable searchAgentContextPaginator(Consumer<SearchAgentContextRequest.Builder> searchAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
searchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.SearchAgentContextIterable responses = client.searchAgentContextPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.SearchAgentContextIterable responses = client .searchAgentContextPaginator(request); for (software.amazon.awssdk.services.context.model.SearchAgentContextResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.SearchAgentContextIterable responses = client.searchAgentContextPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
startOntologyInduction
default StartOntologyInductionResponse startOntologyInduction(StartOntologyInductionRequest startOntologyInductionRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the StartOntologyInduction operation returned by the service.
- See Also:
-
startOntologyInduction
default StartOntologyInductionResponse startOntologyInduction(Consumer<StartOntologyInductionRequest.Builder> startOntologyInductionRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the StartOntologyInduction operation returned by the service.
- See Also:
-
startTask
default StartTaskResponse startTask(StartTaskRequest startTaskRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the StartTask operation returned by the service.
- See Also:
-
startTask
default StartTaskResponse startTask(Consumer<StartTaskRequest.Builder> startTaskRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the StartTask operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Adds tags to an agent context, connection, curation policy, customer-owned ontology, or ontology induction.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the TagResource operation returned by the service.
- See Also:
-
traverseAgentContext
default TraverseAgentContextResponse traverseAgentContext(TraverseAgentContextRequest traverseAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the TraverseAgentContext operation returned by the service.
- See Also:
-
traverseAgentContext
default TraverseAgentContextResponse traverseAgentContext(Consumer<TraverseAgentContextRequest.Builder> traverseAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the TraverseAgentContext operation returned by the service.
- See Also:
-
traverseAgentContextPaginator
default TraverseAgentContextIterable traverseAgentContextPaginator(TraverseAgentContextRequest traverseAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
traverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.TraverseAgentContextIterable responses = client.traverseAgentContextPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.TraverseAgentContextIterable responses = client .traverseAgentContextPaginator(request); for (software.amazon.awssdk.services.context.model.TraverseAgentContextResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.TraverseAgentContextIterable responses = client.traverseAgentContextPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
traverseAgentContextPaginator
default TraverseAgentContextIterable traverseAgentContextPaginator(Consumer<TraverseAgentContextRequest.Builder> traverseAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException This is a variant of
traverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.context.paginators.TraverseAgentContextIterable responses = client.traverseAgentContextPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.context.paginators.TraverseAgentContextIterable responses = client .traverseAgentContextPaginator(request); for (software.amazon.awssdk.services.context.model.TraverseAgentContextResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.context.paginators.TraverseAgentContextIterable responses = client.traverseAgentContextPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Removes tags from an agent context, connection, curation policy, customer-owned ontology, or ontology induction.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateAgentContext
default UpdateAgentContextResponse updateAgentContext(UpdateAgentContextRequest updateAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Updates an agent context's configuration.
- Parameters:
updateAgentContextRequest-- Returns:
- Result of the UpdateAgentContext operation returned by the service.
- See Also:
-
updateAgentContext
default UpdateAgentContextResponse updateAgentContext(Consumer<UpdateAgentContextRequest.Builder> updateAgentContextRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the UpdateAgentContext operation returned by the service.
- See Also:
-
updateChangeSet
default UpdateChangeSetResponse updateChangeSet(UpdateChangeSetRequest updateChangeSetRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Drops operations from a change set that is held for curator review. Returns the updated change set.
- Parameters:
updateChangeSetRequest-- Returns:
- Result of the UpdateChangeSet operation returned by the service.
- See Also:
-
updateChangeSet
default UpdateChangeSetResponse updateChangeSet(Consumer<UpdateChangeSetRequest.Builder> updateChangeSetRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the UpdateChangeSet operation returned by the service.
- See Also:
-
updateConnection
default UpdateConnectionResponse updateConnection(UpdateConnectionRequest updateConnectionRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Updates a connection's configuration.
- Parameters:
updateConnectionRequest-- Returns:
- Result of the UpdateConnection operation returned by the service.
- See Also:
-
updateConnection
default UpdateConnectionResponse updateConnection(Consumer<UpdateConnectionRequest.Builder> updateConnectionRequest) throws ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the UpdateConnection operation returned by the service.
- See Also:
-
updateCurationPolicy
default UpdateCurationPolicyResponse updateCurationPolicy(UpdateCurationPolicyRequest updateCurationPolicyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException Updates a curation policy's working copy.
- Parameters:
updateCurationPolicyRequest-- Returns:
- Result of the UpdateCurationPolicy operation returned by the service.
- See Also:
-
updateCurationPolicy
default UpdateCurationPolicyResponse updateCurationPolicy(Consumer<UpdateCurationPolicyRequest.Builder> updateCurationPolicyRequest) throws ThrottlingException, ConflictException, ValidationException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, ContextException 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:
- Result of the UpdateCurationPolicy operation returned by the service.
- See Also:
-
create
Create aContextClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aContextClient. -
serviceMetadata
-
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
-