Interface ContextAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface ContextAsyncClient extends AwsClient
Service client for accessing AWS Context asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call.

AWS Context is a service that connects to your data where it already lives and builds an agent context that maps your business: what your terms mean, how your numbers are calculated, and which rules apply. AI agents use an agent context to find and interpret the information they need. This API reference describes the operations that you use to connect data sources, create agent contexts, describe your data with ontologies, govern changes with curation policies and proposals, and search, traverse, query, or ask questions of an agent context.

  • Field Details

  • Method Details

    • acceptCurationProposal

      default CompletableFuture<AcceptCurationProposalResponse> acceptCurationProposal(AcceptCurationProposalRequest acceptCurationProposalRequest)

      Accepts a curation proposal and applies its change to the agent context.

      Parameters:
      acceptCurationProposalRequest -
      Returns:
      A Java Future containing the result of the AcceptCurationProposal operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • acceptCurationProposal

      default CompletableFuture<AcceptCurationProposalResponse> acceptCurationProposal(Consumer<AcceptCurationProposalRequest.Builder> acceptCurationProposalRequest)

      Accepts a curation proposal and applies its change to the agent context.


      This is a convenience which creates an instance of the AcceptCurationProposalRequest.Builder avoiding the need to create one manually via AcceptCurationProposalRequest.builder()

      Parameters:
      acceptCurationProposalRequest - A Consumer that will call methods on AcceptCurationProposalRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the AcceptCurationProposal operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • agenticRetrieve

      default CompletableFuture<AgenticRetrieveResponse> agenticRetrieve(AgenticRetrieveRequest agenticRetrieveRequest)

      Retrieves ranked context from an agent context for a natural-language question, in a single response. Send the question as a user message in messages and read the ranked retrievedContext. AWS Context searches and traverses the agent context for you until it has gathered enough context or reaches maxIterations. Prefer this over SearchAgentContext when finding the context needs more than one search or hop. To stream progress and receive a generated answer, use AgenticRetrieveStream.

      Parameters:
      agenticRetrieveRequest - A question to answer against an agent context, and optional settings for how the answer is retrieved and returned.
      Returns:
      A Java Future containing the result of the AgenticRetrieve operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • agenticRetrieve

      default CompletableFuture<AgenticRetrieveResponse> agenticRetrieve(Consumer<AgenticRetrieveRequest.Builder> agenticRetrieveRequest)

      Retrieves ranked context from an agent context for a natural-language question, in a single response. Send the question as a user message in messages and read the ranked retrievedContext. AWS Context searches and traverses the agent context for you until it has gathered enough context or reaches maxIterations. 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.Builder avoiding the need to create one manually via AgenticRetrieveRequest.builder()

      Parameters:
      agenticRetrieveRequest - A Consumer that will call methods on AgenticRetrieveRequest.Builder to create a request. A question to answer against an agent context, and optional settings for how the answer is retrieved and returned.
      Returns:
      A Java Future containing the result of the AgenticRetrieve operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • agenticRetrieveStream

      default CompletableFuture<Void> agenticRetrieveStream(AgenticRetrieveStreamRequest agenticRetrieveStreamRequest, AgenticRetrieveStreamResponseHandler asyncResponseHandler)

      Answers a natural-language question against an agent context and streams the work as it happens. The response is an event stream that contains progress events while AWS Context searches the agent context, the answer in chunks as it is generated, and a final result. The final result contains the answer and the ranked retrieved context.

      Parameters:
      agenticRetrieveStreamRequest - A question to answer against an agent context, and optional settings for how the answer is retrieved.
      Returns:
      A Java Future containing the result of the AgenticRetrieveStream operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • agenticRetrieveStream

      default CompletableFuture<Void> agenticRetrieveStream(Consumer<AgenticRetrieveStreamRequest.Builder> agenticRetrieveStreamRequest, AgenticRetrieveStreamResponseHandler asyncResponseHandler)

      Answers a natural-language question against an agent context and streams the work as it happens. The response is an event stream that contains progress events while AWS Context searches the agent context, the answer in chunks as it is generated, and a final result. The final result contains the answer and the ranked retrieved context.


      This is a convenience which creates an instance of the AgenticRetrieveStreamRequest.Builder avoiding the need to create one manually via AgenticRetrieveStreamRequest.builder()

      Parameters:
      agenticRetrieveStreamRequest - A Consumer that will call methods on AgenticRetrieveStreamRequest.Builder to create a request. A question to answer against an agent context, and optional settings for how the answer is retrieved.
      Returns:
      A Java Future containing the result of the AgenticRetrieveStream operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • associateCurationPolicy

      default CompletableFuture<AssociateCurationPolicyResponse> associateCurationPolicy(AssociateCurationPolicyRequest associateCurationPolicyRequest)

      Associates a curation policy with an agent context. The agent context enforces the policy's latest published version, including versions published later. Returns the association.

      Parameters:
      associateCurationPolicyRequest -
      Returns:
      A Java Future containing the result of the AssociateCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • associateCurationPolicy

      default CompletableFuture<AssociateCurationPolicyResponse> associateCurationPolicy(Consumer<AssociateCurationPolicyRequest.Builder> associateCurationPolicyRequest)

      Associates a curation policy with an agent context. The agent context enforces the policy's latest published version, including versions published later. Returns the association.


      This is a convenience which creates an instance of the AssociateCurationPolicyRequest.Builder avoiding the need to create one manually via AssociateCurationPolicyRequest.builder()

      Parameters:
      associateCurationPolicyRequest - A Consumer that will call methods on AssociateCurationPolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the AssociateCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • cancelOntologyInduction

      default CompletableFuture<CancelOntologyInductionResponse> cancelOntologyInduction(CancelOntologyInductionRequest cancelOntologyInductionRequest)

      Cancels an ontology induction that is still INDUCING. The induction's status changes to CANCELLED, and no ontology is created.

      Parameters:
      cancelOntologyInductionRequest -
      Returns:
      A Java Future containing the result of the CancelOntologyInduction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • cancelOntologyInduction

      default CompletableFuture<CancelOntologyInductionResponse> cancelOntologyInduction(Consumer<CancelOntologyInductionRequest.Builder> cancelOntologyInductionRequest)

      Cancels an ontology induction that is still INDUCING. The induction's status changes to CANCELLED, and no ontology is created.


      This is a convenience which creates an instance of the CancelOntologyInductionRequest.Builder avoiding the need to create one manually via CancelOntologyInductionRequest.builder()

      Parameters:
      cancelOntologyInductionRequest - A Consumer that will call methods on CancelOntologyInductionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CancelOntologyInduction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • cancelTask

      default CompletableFuture<CancelTaskResponse> cancelTask(CancelTaskRequest cancelTaskRequest)

      Cancels a task that is PENDING or IN_PROGRESS. The task moves to CANCELLING, and then to CANCELLED when it stops. AWS Context keeps the change sets that the task already created. Canceling a CANCELLED task returns it unchanged. Canceling a CANCELLING task returns it unchanged, unless the task's work has already stopped, in which case the cancel completes and the task is returned as CANCELLED. Canceling a COMPLETED or FAILED task fails with ConflictException.

      Parameters:
      cancelTaskRequest -
      Returns:
      A Java Future containing the result of the CancelTask operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • cancelTask

      default CompletableFuture<CancelTaskResponse> cancelTask(Consumer<CancelTaskRequest.Builder> cancelTaskRequest)

      Cancels a task that is PENDING or IN_PROGRESS. The task moves to CANCELLING, and then to CANCELLED when it stops. AWS Context keeps the change sets that the task already created. Canceling a CANCELLED task returns it unchanged. Canceling a CANCELLING task returns it unchanged, unless the task's work has already stopped, in which case the cancel completes and the task is returned as CANCELLED. Canceling a COMPLETED or FAILED task fails with ConflictException.


      This is a convenience which creates an instance of the CancelTaskRequest.Builder avoiding the need to create one manually via CancelTaskRequest.builder()

      Parameters:
      cancelTaskRequest - A Consumer that will call methods on CancelTaskRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CancelTask operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createAgentContext

      default CompletableFuture<CreateAgentContextResponse> createAgentContext(CreateAgentContextRequest createAgentContextRequest)

      Creates an agent context over one or more connections. Creation is asynchronous. GetAgentContext returns its status.

      Parameters:
      createAgentContextRequest -
      Returns:
      A Java Future containing the result of the CreateAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createAgentContext

      default CompletableFuture<CreateAgentContextResponse> createAgentContext(Consumer<CreateAgentContextRequest.Builder> createAgentContextRequest)

      Creates an agent context over one or more connections. Creation is asynchronous. GetAgentContext returns its status.


      This is a convenience which creates an instance of the CreateAgentContextRequest.Builder avoiding the need to create one manually via CreateAgentContextRequest.builder()

      Parameters:
      createAgentContextRequest - A Consumer that will call methods on CreateAgentContextRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createChangeSet

      default CompletableFuture<CreateChangeSetResponse> createChangeSet(CreateChangeSetRequest createChangeSetRequest)

      Proposes a change to an agent context, as ChangeSetOperation items (the same items that ListChangeSetOperations returns), each setting one of put, update, or delete.

      Parameters:
      createChangeSetRequest - The members that CreateChangeSet takes.
      Returns:
      A Java Future containing the result of the CreateChangeSet operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createChangeSet

      default CompletableFuture<CreateChangeSetResponse> createChangeSet(Consumer<CreateChangeSetRequest.Builder> createChangeSetRequest)

      Proposes a change to an agent context, as ChangeSetOperation items (the same items that ListChangeSetOperations returns), each setting one of put, update, or delete.


      This is a convenience which creates an instance of the CreateChangeSetRequest.Builder avoiding the need to create one manually via CreateChangeSetRequest.builder()

      Parameters:
      createChangeSetRequest - A Consumer that will call methods on CreateChangeSetRequest.Builder to create a request. The members that CreateChangeSet takes.
      Returns:
      A Java Future containing the result of the CreateChangeSet operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createConnection

      default CompletableFuture<CreateConnectionResponse> createConnection(CreateConnectionRequest createConnectionRequest)

      Creates a connection to a data source, such as an AWS Glue Data Catalog, an Amazon Bedrock knowledge base, or a third-party data catalog through an AWS Glue connection. GetConnection returns the connection's status.

      Parameters:
      createConnectionRequest -
      Returns:
      A Java Future containing the result of the CreateConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createConnection

      default CompletableFuture<CreateConnectionResponse> createConnection(Consumer<CreateConnectionRequest.Builder> createConnectionRequest)

      Creates a connection to a data source, such as an AWS Glue Data Catalog, an Amazon Bedrock knowledge base, or a third-party data catalog through an AWS Glue connection. GetConnection returns the connection's status.


      This is a convenience which creates an instance of the CreateConnectionRequest.Builder avoiding the need to create one manually via CreateConnectionRequest.builder()

      Parameters:
      createConnectionRequest - A Consumer that will call methods on CreateConnectionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCurationPolicy

      default CompletableFuture<CreateCurationPolicyResponse> createCurationPolicy(CreateCurationPolicyRequest createCurationPolicyRequest)

      Creates a curation policy, which decides which changes to an agent context are held for review as curation proposals instead of applied automatically. The policy starts as an unpublished draft. The agent contexts associated with it enforce it once CreateCurationPolicyVersion publishes it.

      Parameters:
      createCurationPolicyRequest -
      Returns:
      A Java Future containing the result of the CreateCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCurationPolicy

      default CompletableFuture<CreateCurationPolicyResponse> createCurationPolicy(Consumer<CreateCurationPolicyRequest.Builder> createCurationPolicyRequest)

      Creates a curation policy, which decides which changes to an agent context are held for review as curation proposals instead of applied automatically. The policy starts as an unpublished draft. The agent contexts associated with it enforce it once CreateCurationPolicyVersion publishes it.


      This is a convenience which creates an instance of the CreateCurationPolicyRequest.Builder avoiding the need to create one manually via CreateCurationPolicyRequest.builder()

      Parameters:
      createCurationPolicyRequest - A Consumer that will call methods on CreateCurationPolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCurationPolicyVersion

      default CompletableFuture<CreateCurationPolicyVersionResponse> createCurationPolicyVersion(CreateCurationPolicyVersionRequest createCurationPolicyVersionRequest)

      Publishes a curation policy's working copy as a new, immutable version. The agent contexts associated with the policy start enforcing the new version. Returns the updated policy.

      Parameters:
      createCurationPolicyVersionRequest -
      Returns:
      A Java Future containing the result of the CreateCurationPolicyVersion operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCurationPolicyVersion

      default CompletableFuture<CreateCurationPolicyVersionResponse> createCurationPolicyVersion(Consumer<CreateCurationPolicyVersionRequest.Builder> createCurationPolicyVersionRequest)

      Publishes a curation policy's working copy as a new, immutable version. The agent contexts associated with the policy start enforcing the new version. Returns the updated policy.


      This is a convenience which creates an instance of the CreateCurationPolicyVersionRequest.Builder avoiding the need to create one manually via CreateCurationPolicyVersionRequest.builder()

      Parameters:
      createCurationPolicyVersionRequest - A Consumer that will call methods on CreateCurationPolicyVersionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateCurationPolicyVersion operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createOntology

      default CompletableFuture<CreateOntologyResponse> createOntology(CreateOntologyRequest createOntologyRequest)

      Creates an ontology from an OWL ontology document. An ontology defines the types of nodes and edges in an agent context. Returns the new ontology's ID and ARN.

      Parameters:
      createOntologyRequest -
      Returns:
      A Java Future containing the result of the CreateOntology operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createOntology

      default CompletableFuture<CreateOntologyResponse> createOntology(Consumer<CreateOntologyRequest.Builder> createOntologyRequest)

      Creates an ontology from an OWL ontology document. An ontology defines the types of nodes and edges in an agent context. Returns the new ontology's ID and ARN.


      This is a convenience which creates an instance of the CreateOntologyRequest.Builder avoiding the need to create one manually via CreateOntologyRequest.builder()

      Parameters:
      createOntologyRequest - A Consumer that will call methods on CreateOntologyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateOntology operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteAgentContext

      default CompletableFuture<DeleteAgentContextResponse> deleteAgentContext(DeleteAgentContextRequest deleteAgentContextRequest)

      Deletes an agent context. Deletion is asynchronous. An agent context that does not exist or is already being deleted returns ResourceNotFoundException.

      Parameters:
      deleteAgentContextRequest -
      Returns:
      A Java Future containing the result of the DeleteAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteAgentContext

      default CompletableFuture<DeleteAgentContextResponse> deleteAgentContext(Consumer<DeleteAgentContextRequest.Builder> deleteAgentContextRequest)

      Deletes an agent context. Deletion is asynchronous. An agent context that does not exist or is already being deleted returns ResourceNotFoundException.


      This is a convenience which creates an instance of the DeleteAgentContextRequest.Builder avoiding the need to create one manually via DeleteAgentContextRequest.builder()

      Parameters:
      deleteAgentContextRequest - A Consumer that will call methods on DeleteAgentContextRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteConnection

      default CompletableFuture<DeleteConnectionResponse> deleteConnection(DeleteConnectionRequest deleteConnectionRequest)

      Deletes a connection. While any agent context still uses the connection, the request fails with ConflictException. Remove the connection from each agent context with UpdateAgentContext, and wait until AWS Context has removed the connection's data from the agent context, before you retry. For a DATABRICKS or SNOWFLAKE connection, deletionMode specifies whether AWS Context also deletes the AWS Glue connection. If the connection stays DELETING, call DeleteConnection again to finish the cleanup. Deleting a connection that doesn't exist or is already being deleted succeeds, so you can safely retry.

      Parameters:
      deleteConnectionRequest -
      Returns:
      A Java Future containing the result of the DeleteConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteConnection

      default CompletableFuture<DeleteConnectionResponse> deleteConnection(Consumer<DeleteConnectionRequest.Builder> deleteConnectionRequest)

      Deletes a connection. While any agent context still uses the connection, the request fails with ConflictException. Remove the connection from each agent context with UpdateAgentContext, and wait until AWS Context has removed the connection's data from the agent context, before you retry. For a DATABRICKS or SNOWFLAKE connection, deletionMode specifies whether AWS Context also deletes the AWS Glue connection. If the connection stays DELETING, 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.Builder avoiding the need to create one manually via DeleteConnectionRequest.builder()

      Parameters:
      deleteConnectionRequest - A Consumer that will call methods on DeleteConnectionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteCurationPolicy

      default CompletableFuture<DeleteCurationPolicyResponse> deleteCurationPolicy(DeleteCurationPolicyRequest deleteCurationPolicyRequest)

      Deletes a curation policy. While the policy is associated with any agent context, the request fails with ConflictException. Disassociate it with DisassociateCurationPolicy first. You can't delete a default policy that AWS Context created in your account: the request fails with ConflictException. Disassociate it instead. After the delete, GetCurationPolicy returns the policy with status DELETED, and ListCurationPolicies doesn't return it. Deleting a policy that is already deleted succeeds.

      Parameters:
      deleteCurationPolicyRequest -
      Returns:
      A Java Future containing the result of the DeleteCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteCurationPolicy

      default CompletableFuture<DeleteCurationPolicyResponse> deleteCurationPolicy(Consumer<DeleteCurationPolicyRequest.Builder> deleteCurationPolicyRequest)

      Deletes a curation policy. While the policy is associated with any agent context, the request fails with ConflictException. Disassociate it with DisassociateCurationPolicy first. You can't delete a default policy that AWS Context created in your account: the request fails with ConflictException. Disassociate it instead. After the delete, GetCurationPolicy returns the policy with status DELETED, 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.Builder avoiding the need to create one manually via DeleteCurationPolicyRequest.builder()

      Parameters:
      deleteCurationPolicyRequest - A Consumer that will call methods on DeleteCurationPolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteOntology

      default CompletableFuture<DeleteOntologyResponse> deleteOntology(DeleteOntologyRequest deleteOntologyRequest)

      Deletes an ontology that you own and all of its versions. You can't delete an AWS managed ontology. While an agent context maps the ontology, the request fails with ConflictException. Remove the ontology from the agent context's connection mappings with UpdateAgentContext first. If an agent context mapped the ontology in the last 5 minutes, the request also fails with ConflictException, and you can retry later. A DRAFT ontology that an induction created is deleted together with its induction. Deleting an ontology that is already deleted succeeds. AWS Context never reuses the ID of a deleted ontology.

      Parameters:
      deleteOntologyRequest -
      Returns:
      A Java Future containing the result of the DeleteOntology operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteOntology

      default CompletableFuture<DeleteOntologyResponse> deleteOntology(Consumer<DeleteOntologyRequest.Builder> deleteOntologyRequest)

      Deletes an ontology that you own and all of its versions. You can't delete an AWS managed ontology. While an agent context maps the ontology, the request fails with ConflictException. Remove the ontology from the agent context's connection mappings with UpdateAgentContext first. If an agent context mapped the ontology in the last 5 minutes, the request also fails with ConflictException, and you can retry later. A DRAFT ontology 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.Builder avoiding the need to create one manually via DeleteOntologyRequest.builder()

      Parameters:
      deleteOntologyRequest - A Consumer that will call methods on DeleteOntologyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteOntology operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteOntologyInduction

      default CompletableFuture<DeleteOntologyInductionResponse> deleteOntologyInduction(DeleteOntologyInductionRequest deleteOntologyInductionRequest)

      Deletes an ontology induction. You can delete a FAILED or CANCELLED induction, or one whose ontology is PUBLISHED or was deleted after it was published. While the induction is INDUCING, or while its ontology is still a DRAFT, the request fails with ConflictException. To stop a running induction, call CancelOntologyInduction first. To delete a draft ontology and its induction together, call DeleteOntology. Deleting an induction doesn't change its published ontology.

      Parameters:
      deleteOntologyInductionRequest -
      Returns:
      A Java Future containing the result of the DeleteOntologyInduction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteOntologyInduction

      default CompletableFuture<DeleteOntologyInductionResponse> deleteOntologyInduction(Consumer<DeleteOntologyInductionRequest.Builder> deleteOntologyInductionRequest)

      Deletes an ontology induction. You can delete a FAILED or CANCELLED induction, or one whose ontology is PUBLISHED or was deleted after it was published. While the induction is INDUCING, or while its ontology is still a DRAFT, the request fails with ConflictException. 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.Builder avoiding the need to create one manually via DeleteOntologyInductionRequest.builder()

      Parameters:
      deleteOntologyInductionRequest - A Consumer that will call methods on DeleteOntologyInductionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteOntologyInduction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteResourcePolicy

      default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest)

      Removes the resource-based policy from an agent context.

      Parameters:
      deleteResourcePolicyRequest -
      Returns:
      A Java Future containing the result of the DeleteResourcePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteResourcePolicy

      default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest)

      Removes the resource-based policy from an agent context.


      This is a convenience which creates an instance of the DeleteResourcePolicyRequest.Builder avoiding the need to create one manually via DeleteResourcePolicyRequest.builder()

      Parameters:
      deleteResourcePolicyRequest - A Consumer that will call methods on DeleteResourcePolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteResourcePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateCurationPolicy

      default CompletableFuture<DisassociateCurationPolicyResponse> disassociateCurationPolicy(DisassociateCurationPolicyRequest disassociateCurationPolicyRequest)

      Disassociates a curation policy from an agent context, so the agent context stops enforcing it.

      Parameters:
      disassociateCurationPolicyRequest -
      Returns:
      A Java Future containing the result of the DisassociateCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateCurationPolicy

      default CompletableFuture<DisassociateCurationPolicyResponse> disassociateCurationPolicy(Consumer<DisassociateCurationPolicyRequest.Builder> disassociateCurationPolicyRequest)

      Disassociates a curation policy from an agent context, so the agent context stops enforcing it.


      This is a convenience which creates an instance of the DisassociateCurationPolicyRequest.Builder avoiding the need to create one manually via DisassociateCurationPolicyRequest.builder()

      Parameters:
      disassociateCurationPolicyRequest - A Consumer that will call methods on DisassociateCurationPolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DisassociateCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • executeSql

      default CompletableFuture<ExecuteSqlResponse> executeSql(ExecuteSqlRequest executeSqlRequest)

      Runs one read-only SQL query over the tables of a connection in an agent context, and returns the result as typed columns and rows. 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 a LIMIT clause or select fewer columns.

      Parameters:
      executeSqlRequest -
      Returns:
      A Java Future containing the result of the ExecuteSql operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • executeSql

      default CompletableFuture<ExecuteSqlResponse> executeSql(Consumer<ExecuteSqlRequest.Builder> executeSqlRequest)

      Runs one read-only SQL query over the tables of a connection in an agent context, and returns the result as typed columns and rows. Use this to read structured data directly when you can write the query yourself. If the result's rows are larger than 5 MiB, the call fails with ValidationException. Add a LIMIT clause or select fewer columns.


      This is a convenience which creates an instance of the ExecuteSqlRequest.Builder avoiding the need to create one manually via ExecuteSqlRequest.builder()

      Parameters:
      executeSqlRequest - A Consumer that will call methods on ExecuteSqlRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ExecuteSql operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getAgentContext

      default CompletableFuture<GetAgentContextResponse> getAgentContext(GetAgentContextRequest getAgentContextRequest)

      Returns an agent context's configuration and status.

      Parameters:
      getAgentContextRequest -
      Returns:
      A Java Future containing the result of the GetAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getAgentContext

      default CompletableFuture<GetAgentContextResponse> getAgentContext(Consumer<GetAgentContextRequest.Builder> getAgentContextRequest)

      Returns an agent context's configuration and status.


      This is a convenience which creates an instance of the GetAgentContextRequest.Builder avoiding the need to create one manually via GetAgentContextRequest.builder()

      Parameters:
      getAgentContextRequest - A Consumer that will call methods on GetAgentContextRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getChangeSet

      default CompletableFuture<GetChangeSetResponse> getChangeSet(GetChangeSetRequest getChangeSetRequest)

      Returns one change set's metadata: its status and the other fields of the change set, without its operations. To see what the change set wrote, list its operations with ListChangeSetOperations. For changeSetId, pass a change set's id from ListChangeSets.

      Parameters:
      getChangeSetRequest -
      Returns:
      A Java Future containing the result of the GetChangeSet operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getChangeSet

      default CompletableFuture<GetChangeSetResponse> getChangeSet(Consumer<GetChangeSetRequest.Builder> getChangeSetRequest)

      Returns one change set's metadata: its status and the other fields of the change set, without its operations. To see what the change set wrote, list its operations with ListChangeSetOperations. For changeSetId, pass a change set's id from ListChangeSets.


      This is a convenience which creates an instance of the GetChangeSetRequest.Builder avoiding the need to create one manually via GetChangeSetRequest.builder()

      Parameters:
      getChangeSetRequest - A Consumer that will call methods on GetChangeSetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetChangeSet operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getConnection

      default CompletableFuture<GetConnectionResponse> getConnection(GetConnectionRequest getConnectionRequest)

      Returns a connection's configuration and status.

      Parameters:
      getConnectionRequest -
      Returns:
      A Java Future containing the result of the GetConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getConnection

      default CompletableFuture<GetConnectionResponse> getConnection(Consumer<GetConnectionRequest.Builder> getConnectionRequest)

      Returns a connection's configuration and status.


      This is a convenience which creates an instance of the GetConnectionRequest.Builder avoiding the need to create one manually via GetConnectionRequest.builder()

      Parameters:
      getConnectionRequest - A Consumer that will call methods on GetConnectionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCurationPolicy

      default CompletableFuture<GetCurationPolicyResponse> getCurationPolicy(GetCurationPolicyRequest getCurationPolicyRequest)

      Returns a curation policy's configuration, status, and policy document.

      Parameters:
      getCurationPolicyRequest -
      Returns:
      A Java Future containing the result of the GetCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCurationPolicy

      default CompletableFuture<GetCurationPolicyResponse> getCurationPolicy(Consumer<GetCurationPolicyRequest.Builder> getCurationPolicyRequest)

      Returns a curation policy's configuration, status, and policy document.


      This is a convenience which creates an instance of the GetCurationPolicyRequest.Builder avoiding the need to create one manually via GetCurationPolicyRequest.builder()

      Parameters:
      getCurationPolicyRequest - A Consumer that will call methods on GetCurationPolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCurationProposal

      default CompletableFuture<GetCurationProposalResponse> getCurationProposal(GetCurationProposalRequest getCurationProposalRequest)

      Returns a curation proposal and a summary of the change that it holds for review. ListChangeSetOperations returns the change's individual operations.

      Parameters:
      getCurationProposalRequest -
      Returns:
      A Java Future containing the result of the GetCurationProposal operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCurationProposal

      default CompletableFuture<GetCurationProposalResponse> getCurationProposal(Consumer<GetCurationProposalRequest.Builder> getCurationProposalRequest)

      Returns a curation proposal and a summary of the change that it holds for review. ListChangeSetOperations returns the change's individual operations.


      This is a convenience which creates an instance of the GetCurationProposalRequest.Builder avoiding the need to create one manually via GetCurationProposalRequest.builder()

      Parameters:
      getCurationProposalRequest - A Consumer that will call methods on GetCurationProposalRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetCurationProposal operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getOntology

      default CompletableFuture<GetOntologyResponse> getOntology(GetOntologyRequest getOntologyRequest)

      Returns an ontology's status and one of its versions.

      Parameters:
      getOntologyRequest - Identifies the ontology to return and, optionally, the version.
      Returns:
      A Java Future containing the result of the GetOntology operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getOntology

      default CompletableFuture<GetOntologyResponse> getOntology(Consumer<GetOntologyRequest.Builder> getOntologyRequest)

      Returns an ontology's status and one of its versions.


      This is a convenience which creates an instance of the GetOntologyRequest.Builder avoiding the need to create one manually via GetOntologyRequest.builder()

      Parameters:
      getOntologyRequest - A Consumer that will call methods on GetOntologyRequest.Builder to create a request. Identifies the ontology to return and, optionally, the version.
      Returns:
      A Java Future containing the result of the GetOntology operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getOntologyInduction

      default CompletableFuture<GetOntologyInductionResponse> getOntologyInduction(GetOntologyInductionRequest getOntologyInductionRequest)

      Returns an ontology induction's status, and, once it is a draft, the ontology it created.

      Parameters:
      getOntologyInductionRequest -
      Returns:
      A Java Future containing the result of the GetOntologyInduction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getOntologyInduction

      default CompletableFuture<GetOntologyInductionResponse> getOntologyInduction(Consumer<GetOntologyInductionRequest.Builder> getOntologyInductionRequest)

      Returns an ontology induction's status, and, once it is a draft, the ontology it created.


      This is a convenience which creates an instance of the GetOntologyInductionRequest.Builder avoiding the need to create one manually via GetOntologyInductionRequest.builder()

      Parameters:
      getOntologyInductionRequest - A Consumer that will call methods on GetOntologyInductionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetOntologyInduction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getResourcePolicy

      default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest)

      Returns the resource-based policy attached to an agent context, with its revision ID.

      Parameters:
      getResourcePolicyRequest -
      Returns:
      A Java Future containing the result of the GetResourcePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getResourcePolicy

      default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest)

      Returns the resource-based policy attached to an agent context, with its revision ID.


      This is a convenience which creates an instance of the GetResourcePolicyRequest.Builder avoiding the need to create one manually via GetResourcePolicyRequest.builder()

      Parameters:
      getResourcePolicyRequest - A Consumer that will call methods on GetResourcePolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetResourcePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getTask

      default CompletableFuture<GetTaskResponse> getTask(GetTaskRequest getTaskRequest)

      Returns a task's configuration, status, and results.

      Parameters:
      getTaskRequest -
      Returns:
      A Java Future containing the result of the GetTask operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getTask

      Returns a task's configuration, status, and results.


      This is a convenience which creates an instance of the GetTaskRequest.Builder avoiding the need to create one manually via GetTaskRequest.builder()

      Parameters:
      getTaskRequest - A Consumer that will call methods on GetTaskRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetTask operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAgentContexts

      default CompletableFuture<ListAgentContextsResponse> listAgentContexts(ListAgentContextsRequest listAgentContextsRequest)

      Lists the agent contexts in your account. A page can hold fewer items than maxResults, or none, and still return a nextToken. Keep paging until nextToken is absent.

      Parameters:
      listAgentContextsRequest -
      Returns:
      A Java Future containing the result of the ListAgentContexts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAgentContexts

      default CompletableFuture<ListAgentContextsResponse> listAgentContexts(Consumer<ListAgentContextsRequest.Builder> listAgentContextsRequest)

      Lists the agent contexts in your account. A page can hold fewer items than maxResults, or none, and still return a nextToken. Keep paging until nextToken is absent.


      This is a convenience which creates an instance of the ListAgentContextsRequest.Builder avoiding the need to create one manually via ListAgentContextsRequest.builder()

      Parameters:
      listAgentContextsRequest - A Consumer that will call methods on ListAgentContextsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListAgentContexts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAgentContextsPaginator

      default ListAgentContextsPublisher listAgentContextsPaginator(ListAgentContextsRequest listAgentContextsRequest)

      This is a variant of listAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListAgentContextsPublisher publisher = client.listAgentContextsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListAgentContextsPublisher publisher = client.listAgentContextsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListAgentContextsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListAgentContextsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest) operation.

      Parameters:
      listAgentContextsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listAgentContextsPaginator

      default ListAgentContextsPublisher listAgentContextsPaginator(Consumer<ListAgentContextsRequest.Builder> listAgentContextsRequest)

      This is a variant of listAgentContexts(software.amazon.awssdk.services.context.model.ListAgentContextsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListAgentContextsPublisher publisher = client.listAgentContextsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListAgentContextsPublisher publisher = client.listAgentContextsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListAgentContextsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListAgentContextsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListAgentContextsRequest.builder()

      Parameters:
      listAgentContextsRequest - A Consumer that will call methods on ListAgentContextsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listChangeSetOperations

      default CompletableFuture<ListChangeSetOperationsResponse> listChangeSetOperations(ListChangeSetOperationsRequest listChangeSetOperationsRequest)

      Returns what one change set wrote: every operation it holds (the nodes and relationships it adds, updates, or deletes), one page at a time, in order. This is the only read that returns a change set's contents.

      Parameters:
      listChangeSetOperationsRequest -
      Returns:
      A Java Future containing the result of the ListChangeSetOperations operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listChangeSetOperations

      default CompletableFuture<ListChangeSetOperationsResponse> listChangeSetOperations(Consumer<ListChangeSetOperationsRequest.Builder> listChangeSetOperationsRequest)

      Returns what one change set wrote: every operation it holds (the nodes and relationships it adds, updates, or deletes), one page at a time, in order. This is the only read that returns a change set's contents.


      This is a convenience which creates an instance of the ListChangeSetOperationsRequest.Builder avoiding the need to create one manually via ListChangeSetOperationsRequest.builder()

      Parameters:
      listChangeSetOperationsRequest - A Consumer that will call methods on ListChangeSetOperationsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListChangeSetOperations operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listChangeSetOperationsPaginator

      default ListChangeSetOperationsPublisher listChangeSetOperationsPaginator(ListChangeSetOperationsRequest listChangeSetOperationsRequest)

      This is a variant of listChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListChangeSetOperationsPublisher publisher = client.listChangeSetOperationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListChangeSetOperationsPublisher publisher = client.listChangeSetOperationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListChangeSetOperationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListChangeSetOperationsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest) operation.

      Parameters:
      listChangeSetOperationsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listChangeSetOperationsPaginator

      default ListChangeSetOperationsPublisher listChangeSetOperationsPaginator(Consumer<ListChangeSetOperationsRequest.Builder> listChangeSetOperationsRequest)

      This is a variant of listChangeSetOperations(software.amazon.awssdk.services.context.model.ListChangeSetOperationsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListChangeSetOperationsPublisher publisher = client.listChangeSetOperationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListChangeSetOperationsPublisher publisher = client.listChangeSetOperationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListChangeSetOperationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListChangeSetOperationsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListChangeSetOperationsRequest.builder()

      Parameters:
      listChangeSetOperationsRequest - A Consumer that will call methods on ListChangeSetOperationsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listChangeSets

      default CompletableFuture<ListChangeSetsResponse> listChangeSets(ListChangeSetsRequest listChangeSetsRequest)

      Lists an agent context's change sets that have the specified status, newest first. Each item is a summary of the change set, without its operations. To see what a change set wrote, call ListChangeSetOperations with its id as changeSetId.

      Parameters:
      listChangeSetsRequest -
      Returns:
      A Java Future containing the result of the ListChangeSets operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listChangeSets

      default CompletableFuture<ListChangeSetsResponse> listChangeSets(Consumer<ListChangeSetsRequest.Builder> listChangeSetsRequest)

      Lists an agent context's change sets that have the specified status, newest first. Each item is a summary of the change set, without its operations. To see what a change set wrote, call ListChangeSetOperations with its id as changeSetId.


      This is a convenience which creates an instance of the ListChangeSetsRequest.Builder avoiding the need to create one manually via ListChangeSetsRequest.builder()

      Parameters:
      listChangeSetsRequest - A Consumer that will call methods on ListChangeSetsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListChangeSets operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listChangeSetsPaginator

      default ListChangeSetsPublisher listChangeSetsPaginator(ListChangeSetsRequest listChangeSetsRequest)

      This is a variant of listChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListChangeSetsPublisher publisher = client.listChangeSetsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListChangeSetsPublisher publisher = client.listChangeSetsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListChangeSetsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListChangeSetsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest) operation.

      Parameters:
      listChangeSetsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listChangeSetsPaginator

      default ListChangeSetsPublisher listChangeSetsPaginator(Consumer<ListChangeSetsRequest.Builder> listChangeSetsRequest)

      This is a variant of listChangeSets(software.amazon.awssdk.services.context.model.ListChangeSetsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListChangeSetsPublisher publisher = client.listChangeSetsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListChangeSetsPublisher publisher = client.listChangeSetsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListChangeSetsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListChangeSetsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListChangeSetsRequest.builder()

      Parameters:
      listChangeSetsRequest - A Consumer that will call methods on ListChangeSetsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listConnections

      default CompletableFuture<ListConnectionsResponse> listConnections(ListConnectionsRequest listConnectionsRequest)

      Lists the connections in your account, most recently updated first.

      Parameters:
      listConnectionsRequest -
      Returns:
      A Java Future containing the result of the ListConnections operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listConnections

      default CompletableFuture<ListConnectionsResponse> listConnections(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest)

      Lists the connections in your account, most recently updated first.


      This is a convenience which creates an instance of the ListConnectionsRequest.Builder avoiding the need to create one manually via ListConnectionsRequest.builder()

      Parameters:
      listConnectionsRequest - A Consumer that will call methods on ListConnectionsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListConnections operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listConnectionsPaginator

      default ListConnectionsPublisher listConnectionsPaginator(ListConnectionsRequest listConnectionsRequest)

      This is a variant of listConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListConnectionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListConnectionsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest) operation.

      Parameters:
      listConnectionsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listConnectionsPaginator

      default ListConnectionsPublisher listConnectionsPaginator(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest)

      This is a variant of listConnections(software.amazon.awssdk.services.context.model.ListConnectionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListConnectionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListConnectionsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListConnectionsRequest.builder()

      Parameters:
      listConnectionsRequest - A Consumer that will call methods on ListConnectionsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCurationPolicies

      default CompletableFuture<ListCurationPoliciesResponse> listCurationPolicies(ListCurationPoliciesRequest listCurationPoliciesRequest)

      Lists the curation policies in your account, or the ones associated with an agent context. Each item is a summary without the policy document. GetCurationPolicy returns the document. If agentContextId doesn't name an agent context in your account, the operation returns an empty page instead of an error.

      Parameters:
      listCurationPoliciesRequest -
      Returns:
      A Java Future containing the result of the ListCurationPolicies operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCurationPolicies

      default CompletableFuture<ListCurationPoliciesResponse> listCurationPolicies(Consumer<ListCurationPoliciesRequest.Builder> listCurationPoliciesRequest)

      Lists the curation policies in your account, or the ones associated with an agent context. Each item is a summary without the policy document. GetCurationPolicy returns the document. If agentContextId doesn'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.Builder avoiding the need to create one manually via ListCurationPoliciesRequest.builder()

      Parameters:
      listCurationPoliciesRequest - A Consumer that will call methods on ListCurationPoliciesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCurationPolicies operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCurationPoliciesPaginator

      default ListCurationPoliciesPublisher listCurationPoliciesPaginator(ListCurationPoliciesRequest listCurationPoliciesRequest)

      This is a variant of listCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListCurationPoliciesPublisher publisher = client.listCurationPoliciesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListCurationPoliciesPublisher publisher = client.listCurationPoliciesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListCurationPoliciesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListCurationPoliciesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest) operation.

      Parameters:
      listCurationPoliciesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCurationPoliciesPaginator

      default ListCurationPoliciesPublisher listCurationPoliciesPaginator(Consumer<ListCurationPoliciesRequest.Builder> listCurationPoliciesRequest)

      This is a variant of listCurationPolicies(software.amazon.awssdk.services.context.model.ListCurationPoliciesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListCurationPoliciesPublisher publisher = client.listCurationPoliciesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListCurationPoliciesPublisher publisher = client.listCurationPoliciesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListCurationPoliciesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListCurationPoliciesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListCurationPoliciesRequest.builder()

      Parameters:
      listCurationPoliciesRequest - A Consumer that will call methods on ListCurationPoliciesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCurationProposals

      default CompletableFuture<ListCurationProposalsResponse> listCurationProposals(ListCurationProposalsRequest listCurationProposalsRequest)

      Lists an agent context's curation proposals, newest first. A curation proposal holds a change to the agent context for review.

      Parameters:
      listCurationProposalsRequest -
      Returns:
      A Java Future containing the result of the ListCurationProposals operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCurationProposals

      default CompletableFuture<ListCurationProposalsResponse> listCurationProposals(Consumer<ListCurationProposalsRequest.Builder> listCurationProposalsRequest)

      Lists an agent context's curation proposals, newest first. A curation proposal holds a change to the agent context for review.


      This is a convenience which creates an instance of the ListCurationProposalsRequest.Builder avoiding the need to create one manually via ListCurationProposalsRequest.builder()

      Parameters:
      listCurationProposalsRequest - A Consumer that will call methods on ListCurationProposalsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCurationProposals operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCurationProposalsPaginator

      default ListCurationProposalsPublisher listCurationProposalsPaginator(ListCurationProposalsRequest listCurationProposalsRequest)

      This is a variant of listCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListCurationProposalsPublisher publisher = client.listCurationProposalsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListCurationProposalsPublisher publisher = client.listCurationProposalsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListCurationProposalsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListCurationProposalsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest) operation.

      Parameters:
      listCurationProposalsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCurationProposalsPaginator

      default ListCurationProposalsPublisher listCurationProposalsPaginator(Consumer<ListCurationProposalsRequest.Builder> listCurationProposalsRequest)

      This is a variant of listCurationProposals(software.amazon.awssdk.services.context.model.ListCurationProposalsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListCurationProposalsPublisher publisher = client.listCurationProposalsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListCurationProposalsPublisher publisher = client.listCurationProposalsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListCurationProposalsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListCurationProposalsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListCurationProposalsRequest.builder()

      Parameters:
      listCurationProposalsRequest - A Consumer that will call methods on ListCurationProposalsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOntologies

      default CompletableFuture<ListOntologiesResponse> listOntologies(ListOntologiesRequest listOntologiesRequest)

      Lists the ontologies in your account, with the status of each.

      Parameters:
      listOntologiesRequest -
      Returns:
      A Java Future containing the result of the ListOntologies operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOntologies

      default CompletableFuture<ListOntologiesResponse> listOntologies(Consumer<ListOntologiesRequest.Builder> listOntologiesRequest)

      Lists the ontologies in your account, with the status of each.


      This is a convenience which creates an instance of the ListOntologiesRequest.Builder avoiding the need to create one manually via ListOntologiesRequest.builder()

      Parameters:
      listOntologiesRequest - A Consumer that will call methods on ListOntologiesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListOntologies operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOntologiesPaginator

      default ListOntologiesPublisher listOntologiesPaginator(ListOntologiesRequest listOntologiesRequest)

      This is a variant of listOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListOntologiesPublisher publisher = client.listOntologiesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListOntologiesPublisher publisher = client.listOntologiesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListOntologiesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListOntologiesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest) operation.

      Parameters:
      listOntologiesRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOntologiesPaginator

      default ListOntologiesPublisher listOntologiesPaginator(Consumer<ListOntologiesRequest.Builder> listOntologiesRequest)

      This is a variant of listOntologies(software.amazon.awssdk.services.context.model.ListOntologiesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListOntologiesPublisher publisher = client.listOntologiesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListOntologiesPublisher publisher = client.listOntologiesPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListOntologiesResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListOntologiesResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListOntologiesRequest.builder()

      Parameters:
      listOntologiesRequest - A Consumer that will call methods on ListOntologiesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOntologyInductions

      default CompletableFuture<ListOntologyInductionsResponse> listOntologyInductions(ListOntologyInductionsRequest listOntologyInductionsRequest)

      Lists the ontology inductions in your account.

      Parameters:
      listOntologyInductionsRequest -
      Returns:
      A Java Future containing the result of the ListOntologyInductions operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOntologyInductions

      default CompletableFuture<ListOntologyInductionsResponse> listOntologyInductions(Consumer<ListOntologyInductionsRequest.Builder> listOntologyInductionsRequest)

      Lists the ontology inductions in your account.


      This is a convenience which creates an instance of the ListOntologyInductionsRequest.Builder avoiding the need to create one manually via ListOntologyInductionsRequest.builder()

      Parameters:
      listOntologyInductionsRequest - A Consumer that will call methods on ListOntologyInductionsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListOntologyInductions operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOntologyInductionsPaginator

      default ListOntologyInductionsPublisher listOntologyInductionsPaginator(ListOntologyInductionsRequest listOntologyInductionsRequest)

      This is a variant of listOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListOntologyInductionsPublisher publisher = client.listOntologyInductionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListOntologyInductionsPublisher publisher = client.listOntologyInductionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListOntologyInductionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListOntologyInductionsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest) operation.

      Parameters:
      listOntologyInductionsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOntologyInductionsPaginator

      default ListOntologyInductionsPublisher listOntologyInductionsPaginator(Consumer<ListOntologyInductionsRequest.Builder> listOntologyInductionsRequest)

      This is a variant of listOntologyInductions(software.amazon.awssdk.services.context.model.ListOntologyInductionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListOntologyInductionsPublisher publisher = client.listOntologyInductionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListOntologyInductionsPublisher publisher = client.listOntologyInductionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListOntologyInductionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListOntologyInductionsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListOntologyInductionsRequest.builder()

      Parameters:
      listOntologyInductionsRequest - A Consumer that will call methods on ListOntologyInductionsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)

      Returns the tags on an agent context, connection, curation policy, customer-owned ontology, or ontology induction.

      Parameters:
      listTagsForResourceRequest -
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

      Returns the tags on an agent context, connection, curation policy, customer-owned ontology, or ontology induction.


      This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the need to create one manually via ListTagsForResourceRequest.builder()

      Parameters:
      listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTasks

      default CompletableFuture<ListTasksResponse> listTasks(ListTasksRequest listTasksRequest)

      Lists an agent context's tasks, newest first.

      Parameters:
      listTasksRequest -
      Returns:
      A Java Future containing the result of the ListTasks operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTasks

      default CompletableFuture<ListTasksResponse> listTasks(Consumer<ListTasksRequest.Builder> listTasksRequest)

      Lists an agent context's tasks, newest first.


      This is a convenience which creates an instance of the ListTasksRequest.Builder avoiding the need to create one manually via ListTasksRequest.builder()

      Parameters:
      listTasksRequest - A Consumer that will call methods on ListTasksRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListTasks operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTasksPaginator

      default ListTasksPublisher listTasksPaginator(ListTasksRequest listTasksRequest)

      This is a variant of listTasks(software.amazon.awssdk.services.context.model.ListTasksRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListTasksPublisher publisher = client.listTasksPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListTasksPublisher publisher = client.listTasksPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListTasksResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListTasksResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listTasks(software.amazon.awssdk.services.context.model.ListTasksRequest) operation.

      Parameters:
      listTasksRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTasksPaginator

      default ListTasksPublisher listTasksPaginator(Consumer<ListTasksRequest.Builder> listTasksRequest)

      This is a variant of listTasks(software.amazon.awssdk.services.context.model.ListTasksRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.ListTasksPublisher publisher = client.listTasksPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.ListTasksPublisher publisher = client.listTasksPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.ListTasksResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.ListTasksResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via ListTasksRequest.builder()

      Parameters:
      listTasksRequest - A Consumer that will call methods on ListTasksRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putResourcePolicy

      default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest)

      Attaches a resource-based policy to an agent context, or replaces the one it has. The policy controls which other accounts can call operations on the agent context. Returns the policy's revision ID.

      Parameters:
      putResourcePolicyRequest -
      Returns:
      A Java Future containing the result of the PutResourcePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putResourcePolicy

      default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest)

      Attaches a resource-based policy to an agent context, or replaces the one it has. The policy controls which other accounts can call operations on the agent context. Returns the policy's revision ID.


      This is a convenience which creates an instance of the PutResourcePolicyRequest.Builder avoiding the need to create one manually via PutResourcePolicyRequest.builder()

      Parameters:
      putResourcePolicyRequest - A Consumer that will call methods on PutResourcePolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the PutResourcePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putTrace

      default CompletableFuture<PutTraceResponse> putTrace(PutTraceRequest putTraceRequest)

      Submits an agent's execution traces so that AWS Context can extract reusable knowledge and skills from them. Call it when an agent finishes a task or session that is worth learning from. In agentContextArns, name the agent contexts that the traces are about. AWS Context analyzes the traces for each of them.

      Each traceDocuments entry is one raw trace document in the trace schema that format selects. 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 a sessionId.

      sessionId groups 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 same clientToken.

      Parameters:
      putTraceRequest -
      Returns:
      A Java Future containing the result of the PutTrace operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putTrace

      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 traceDocuments entry is one raw trace document in the trace schema that format selects. 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 a sessionId.

      sessionId groups 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 same clientToken.


      This is a convenience which creates an instance of the PutTraceRequest.Builder avoiding the need to create one manually via PutTraceRequest.builder()

      Parameters:
      putTraceRequest - A Consumer that will call methods on PutTraceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the PutTrace operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • rejectCurationProposal

      default CompletableFuture<RejectCurationProposalResponse> rejectCurationProposal(RejectCurationProposalRequest rejectCurationProposalRequest)

      Rejects a curation proposal. Its change is not applied to the agent context.

      Parameters:
      rejectCurationProposalRequest -
      Returns:
      A Java Future containing the result of the RejectCurationProposal operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • rejectCurationProposal

      default CompletableFuture<RejectCurationProposalResponse> rejectCurationProposal(Consumer<RejectCurationProposalRequest.Builder> rejectCurationProposalRequest)

      Rejects a curation proposal. Its change is not applied to the agent context.


      This is a convenience which creates an instance of the RejectCurationProposalRequest.Builder avoiding the need to create one manually via RejectCurationProposalRequest.builder()

      Parameters:
      rejectCurationProposalRequest - A Consumer that will call methods on RejectCurationProposalRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the RejectCurationProposal operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • searchAgentContext

      default CompletableFuture<SearchAgentContextResponse> searchAgentContext(SearchAgentContextRequest searchAgentContextRequest)

      Searches an agent context for entities matching a query. Returns ranked entities with relevance scores and metadata. To see the edges around a result node, pass its node ID to TraverseAgentContext.

      Parameters:
      searchAgentContextRequest - The request for SearchAgentContext.
      Returns:
      A Java Future containing the result of the SearchAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • searchAgentContext

      default CompletableFuture<SearchAgentContextResponse> searchAgentContext(Consumer<SearchAgentContextRequest.Builder> searchAgentContextRequest)

      Searches an agent context for entities matching a query. Returns ranked entities with relevance scores and metadata. To see the edges around a result node, pass its node ID to TraverseAgentContext.


      This is a convenience which creates an instance of the SearchAgentContextRequest.Builder avoiding the need to create one manually via SearchAgentContextRequest.builder()

      Parameters:
      searchAgentContextRequest - A Consumer that will call methods on SearchAgentContextRequest.Builder to create a request. The request for SearchAgentContext.
      Returns:
      A Java Future containing the result of the SearchAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • searchAgentContextPaginator

      default SearchAgentContextPublisher searchAgentContextPaginator(SearchAgentContextRequest searchAgentContextRequest)

      This is a variant of searchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.SearchAgentContextPublisher publisher = client.searchAgentContextPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.SearchAgentContextPublisher publisher = client.searchAgentContextPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.SearchAgentContextResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.SearchAgentContextResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the searchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest) operation.

      Parameters:
      searchAgentContextRequest - The request for SearchAgentContext.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • searchAgentContextPaginator

      default SearchAgentContextPublisher searchAgentContextPaginator(Consumer<SearchAgentContextRequest.Builder> searchAgentContextRequest)

      This is a variant of searchAgentContext(software.amazon.awssdk.services.context.model.SearchAgentContextRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.SearchAgentContextPublisher publisher = client.searchAgentContextPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.SearchAgentContextPublisher publisher = client.searchAgentContextPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.SearchAgentContextResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.SearchAgentContextResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via SearchAgentContextRequest.builder()

      Parameters:
      searchAgentContextRequest - A Consumer that will call methods on SearchAgentContextRequest.Builder to create a request. The request for SearchAgentContext.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startOntologyInduction

      default CompletableFuture<StartOntologyInductionResponse> startOntologyInduction(StartOntologyInductionRequest startOntologyInductionRequest)

      Starts an ontology induction, which induces a draft ontology from the documents that you provide. The induction runs asynchronously. To get its status, call GetOntologyInduction. When the induction's status is DRAFT, AWS Context has created the ontology as a DRAFT: 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 need context:CreateOntology permission in addition to context:StartOntologyInduction. If you specify tags, you also need context:TagResource permission.

      Parameters:
      startOntologyInductionRequest -
      Returns:
      A Java Future containing the result of the StartOntologyInduction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startOntologyInduction

      default CompletableFuture<StartOntologyInductionResponse> startOntologyInduction(Consumer<StartOntologyInductionRequest.Builder> startOntologyInductionRequest)

      Starts an ontology induction, which induces a draft ontology from the documents that you provide. The induction runs asynchronously. To get its status, call GetOntologyInduction. When the induction's status is DRAFT, AWS Context has created the ontology as a DRAFT: 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 need context:CreateOntology permission in addition to context:StartOntologyInduction. If you specify tags, you also need context:TagResource permission.


      This is a convenience which creates an instance of the StartOntologyInductionRequest.Builder avoiding the need to create one manually via StartOntologyInductionRequest.builder()

      Parameters:
      startOntologyInductionRequest - A Consumer that will call methods on StartOntologyInductionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartOntologyInduction operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startTask

      default CompletableFuture<StartTaskResponse> startTask(StartTaskRequest startTaskRequest)

      Starts a task that imports a data dictionary, verified queries, or ontologies into an agent context. The task runs asynchronously and records the changes it makes as change sets. GetTask returns its status.

      Parameters:
      startTaskRequest -
      Returns:
      A Java Future containing the result of the StartTask operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startTask

      default CompletableFuture<StartTaskResponse> startTask(Consumer<StartTaskRequest.Builder> startTaskRequest)

      Starts a task that imports a data dictionary, verified queries, or ontologies into an agent context. The task runs asynchronously and records the changes it makes as change sets. GetTask returns its status.


      This is a convenience which creates an instance of the StartTaskRequest.Builder avoiding the need to create one manually via StartTaskRequest.builder()

      Parameters:
      startTaskRequest - A Consumer that will call methods on StartTaskRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartTask operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)

      Adds tags to an agent context, connection, curation policy, customer-owned ontology, or ontology induction.

      Parameters:
      tagResourceRequest -
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)

      Adds tags to an agent context, connection, curation policy, customer-owned ontology, or ontology induction.


      This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to create one manually via TagResourceRequest.builder()

      Parameters:
      tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • traverseAgentContext

      default CompletableFuture<TraverseAgentContextResponse> traverseAgentContext(TraverseAgentContextRequest traverseAgentContextRequest)

      Returns the neighbors of a seed node in an agent context, each with its properties, hop distance, and the edges that connect it to the seed. To get the seed node ID, call SearchAgentContext.

      Parameters:
      traverseAgentContextRequest - The request for TraverseAgentContext.
      Returns:
      A Java Future containing the result of the TraverseAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • traverseAgentContext

      default CompletableFuture<TraverseAgentContextResponse> traverseAgentContext(Consumer<TraverseAgentContextRequest.Builder> traverseAgentContextRequest)

      Returns the neighbors of a seed node in an agent context, each with its properties, hop distance, and the edges that connect it to the seed. To get the seed node ID, call SearchAgentContext.


      This is a convenience which creates an instance of the TraverseAgentContextRequest.Builder avoiding the need to create one manually via TraverseAgentContextRequest.builder()

      Parameters:
      traverseAgentContextRequest - A Consumer that will call methods on TraverseAgentContextRequest.Builder to create a request. The request for TraverseAgentContext.
      Returns:
      A Java Future containing the result of the TraverseAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • traverseAgentContextPaginator

      default TraverseAgentContextPublisher traverseAgentContextPaginator(TraverseAgentContextRequest traverseAgentContextRequest)

      This is a variant of traverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.TraverseAgentContextPublisher publisher = client.traverseAgentContextPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.TraverseAgentContextPublisher publisher = client.traverseAgentContextPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.TraverseAgentContextResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.TraverseAgentContextResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the traverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest) operation.

      Parameters:
      traverseAgentContextRequest - The request for TraverseAgentContext.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • traverseAgentContextPaginator

      default TraverseAgentContextPublisher traverseAgentContextPaginator(Consumer<TraverseAgentContextRequest.Builder> traverseAgentContextRequest)

      This is a variant of traverseAgentContext(software.amazon.awssdk.services.context.model.TraverseAgentContextRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.context.paginators.TraverseAgentContextPublisher publisher = client.traverseAgentContextPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.context.paginators.TraverseAgentContextPublisher publisher = client.traverseAgentContextPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.context.model.TraverseAgentContextResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.context.model.TraverseAgentContextResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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.Builder avoiding the need to create one manually via TraverseAgentContextRequest.builder()

      Parameters:
      traverseAgentContextRequest - A Consumer that will call methods on TraverseAgentContextRequest.Builder to create a request. The request for TraverseAgentContext.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)

      Removes tags from an agent context, connection, curation policy, customer-owned ontology, or ontology induction.

      Parameters:
      untagResourceRequest -
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

      Removes tags from an agent context, connection, curation policy, customer-owned ontology, or ontology induction.


      This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to create one manually via UntagResourceRequest.builder()

      Parameters:
      untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateAgentContext

      default CompletableFuture<UpdateAgentContextResponse> updateAgentContext(UpdateAgentContextRequest updateAgentContextRequest)

      Updates an agent context's configuration.

      Parameters:
      updateAgentContextRequest -
      Returns:
      A Java Future containing the result of the UpdateAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateAgentContext

      default CompletableFuture<UpdateAgentContextResponse> updateAgentContext(Consumer<UpdateAgentContextRequest.Builder> updateAgentContextRequest)

      Updates an agent context's configuration.


      This is a convenience which creates an instance of the UpdateAgentContextRequest.Builder avoiding the need to create one manually via UpdateAgentContextRequest.builder()

      Parameters:
      updateAgentContextRequest - A Consumer that will call methods on UpdateAgentContextRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateAgentContext operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateChangeSet

      default CompletableFuture<UpdateChangeSetResponse> updateChangeSet(UpdateChangeSetRequest updateChangeSetRequest)

      Drops operations from a change set that is held for curator review. Returns the updated change set.

      Parameters:
      updateChangeSetRequest -
      Returns:
      A Java Future containing the result of the UpdateChangeSet operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateChangeSet

      default CompletableFuture<UpdateChangeSetResponse> updateChangeSet(Consumer<UpdateChangeSetRequest.Builder> updateChangeSetRequest)

      Drops operations from a change set that is held for curator review. Returns the updated change set.


      This is a convenience which creates an instance of the UpdateChangeSetRequest.Builder avoiding the need to create one manually via UpdateChangeSetRequest.builder()

      Parameters:
      updateChangeSetRequest - A Consumer that will call methods on UpdateChangeSetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateChangeSet operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateConnection

      default CompletableFuture<UpdateConnectionResponse> updateConnection(UpdateConnectionRequest updateConnectionRequest)

      Updates a connection's configuration.

      Parameters:
      updateConnectionRequest -
      Returns:
      A Java Future containing the result of the UpdateConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateConnection

      default CompletableFuture<UpdateConnectionResponse> updateConnection(Consumer<UpdateConnectionRequest.Builder> updateConnectionRequest)

      Updates a connection's configuration.


      This is a convenience which creates an instance of the UpdateConnectionRequest.Builder avoiding the need to create one manually via UpdateConnectionRequest.builder()

      Parameters:
      updateConnectionRequest - A Consumer that will call methods on UpdateConnectionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • ServiceQuotaExceededException The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateCurationPolicy

      default CompletableFuture<UpdateCurationPolicyResponse> updateCurationPolicy(UpdateCurationPolicyRequest updateCurationPolicyRequest)

      Updates a curation policy's working copy.

      Parameters:
      updateCurationPolicyRequest -
      Returns:
      A Java Future containing the result of the UpdateCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateCurationPolicy

      default CompletableFuture<UpdateCurationPolicyResponse> updateCurationPolicy(Consumer<UpdateCurationPolicyRequest.Builder> updateCurationPolicyRequest)

      Updates a curation policy's working copy.


      This is a convenience which creates an instance of the UpdateCurationPolicyRequest.Builder avoiding the need to create one manually via UpdateCurationPolicyRequest.builder()

      Parameters:
      updateCurationPolicyRequest - A Consumer that will call methods on UpdateCurationPolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateCurationPolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because it exceeded a request rate quota. Wait, then retry the request.
      • ConflictException The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.
      • ValidationException The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
      • InternalServerException The request failed because of an internal error. Retry the request.
      • ResourceNotFoundException The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
      • AccessDeniedException You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • ContextException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default ContextServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      static ContextAsyncClient create()
      Create a ContextAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      static ContextAsyncClientBuilder builder()
      Create a builder that can be used to configure and create a ContextAsyncClient.