Interface NovaActAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
some cases such as credentials retrieval and endpoint discovery as part of the async API call.
The Nova Act service provides a REST API for managing AI-powered workflow automation. It enables users to create workflow definitions, execute workflow runs, manage sessions, and orchestrate acts (individual AI tasks) with tool integrations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic NovaActAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aNovaActAsyncClient.static NovaActAsyncClientcreate()Create aNovaActAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<CreateActResponse> createAct(Consumer<CreateActRequest.Builder> createActRequest) Creates a new AI task (act) within a session that can interact with tools and perform specific actions.default CompletableFuture<CreateActResponse> createAct(CreateActRequest createActRequest) Creates a new AI task (act) within a session that can interact with tools and perform specific actions.default CompletableFuture<CreateSessionResponse> createSession(Consumer<CreateSessionRequest.Builder> createSessionRequest) Creates a new session context within a workflow run to manage conversation state and acts.default CompletableFuture<CreateSessionResponse> createSession(CreateSessionRequest createSessionRequest) Creates a new session context within a workflow run to manage conversation state and acts.createWorkflowDefinition(Consumer<CreateWorkflowDefinitionRequest.Builder> createWorkflowDefinitionRequest) Creates a new workflow definition template that can be used to execute multiple workflow runs.createWorkflowDefinition(CreateWorkflowDefinitionRequest createWorkflowDefinitionRequest) Creates a new workflow definition template that can be used to execute multiple workflow runs.createWorkflowRun(Consumer<CreateWorkflowRunRequest.Builder> createWorkflowRunRequest) Creates a new execution instance of a workflow definition with specified parameters.createWorkflowRun(CreateWorkflowRunRequest createWorkflowRunRequest) Creates a new execution instance of a workflow definition with specified parameters.deleteWorkflowDefinition(Consumer<DeleteWorkflowDefinitionRequest.Builder> deleteWorkflowDefinitionRequest) Deletes a workflow definition and all associated resources.deleteWorkflowDefinition(DeleteWorkflowDefinitionRequest deleteWorkflowDefinitionRequest) Deletes a workflow definition and all associated resources.deleteWorkflowRun(Consumer<DeleteWorkflowRunRequest.Builder> deleteWorkflowRunRequest) Terminates and cleans up a workflow run, stopping all associated acts and sessions.deleteWorkflowRun(DeleteWorkflowRunRequest deleteWorkflowRunRequest) Terminates and cleans up a workflow run, stopping all associated acts and sessions.getWorkflowDefinition(Consumer<GetWorkflowDefinitionRequest.Builder> getWorkflowDefinitionRequest) Retrieves the details and configuration of a specific workflow definition.getWorkflowDefinition(GetWorkflowDefinitionRequest getWorkflowDefinitionRequest) Retrieves the details and configuration of a specific workflow definition.default CompletableFuture<GetWorkflowRunResponse> getWorkflowRun(Consumer<GetWorkflowRunRequest.Builder> getWorkflowRunRequest) Retrieves the current state, configuration, and execution details of a workflow run.default CompletableFuture<GetWorkflowRunResponse> getWorkflowRun(GetWorkflowRunRequest getWorkflowRunRequest) Retrieves the current state, configuration, and execution details of a workflow run.default CompletableFuture<InvokeActStepResponse> invokeActStep(Consumer<InvokeActStepRequest.Builder> invokeActStepRequest) Executes the next step of an act, processing tool call results and returning new tool calls if needed.default CompletableFuture<InvokeActStepResponse> invokeActStep(InvokeActStepRequest invokeActStepRequest) Executes the next step of an act, processing tool call results and returning new tool calls if needed.default CompletableFuture<ListActsResponse> listActs(Consumer<ListActsRequest.Builder> listActsRequest) Lists all acts within a specific session with their current status and execution details.default CompletableFuture<ListActsResponse> listActs(ListActsRequest listActsRequest) Lists all acts within a specific session with their current status and execution details.default ListActsPublisherlistActsPaginator(Consumer<ListActsRequest.Builder> listActsRequest) This is a variant oflistActs(software.amazon.awssdk.services.novaact.model.ListActsRequest)operation.default ListActsPublisherlistActsPaginator(ListActsRequest listActsRequest) This is a variant oflistActs(software.amazon.awssdk.services.novaact.model.ListActsRequest)operation.default CompletableFuture<ListModelsResponse> listModels(Consumer<ListModelsRequest.Builder> listModelsRequest) Lists all available AI models that can be used for workflow execution, including their status and compatibility information.default CompletableFuture<ListModelsResponse> listModels(ListModelsRequest listModelsRequest) Lists all available AI models that can be used for workflow execution, including their status and compatibility information.default CompletableFuture<ListSessionsResponse> listSessions(Consumer<ListSessionsRequest.Builder> listSessionsRequest) Lists all sessions within a specific workflow run.default CompletableFuture<ListSessionsResponse> listSessions(ListSessionsRequest listSessionsRequest) Lists all sessions within a specific workflow run.default ListSessionsPublisherlistSessionsPaginator(Consumer<ListSessionsRequest.Builder> listSessionsRequest) This is a variant oflistSessions(software.amazon.awssdk.services.novaact.model.ListSessionsRequest)operation.default ListSessionsPublisherlistSessionsPaginator(ListSessionsRequest listSessionsRequest) This is a variant oflistSessions(software.amazon.awssdk.services.novaact.model.ListSessionsRequest)operation.listWorkflowDefinitions(Consumer<ListWorkflowDefinitionsRequest.Builder> listWorkflowDefinitionsRequest) Lists all workflow definitions in your account with optional filtering and pagination.listWorkflowDefinitions(ListWorkflowDefinitionsRequest listWorkflowDefinitionsRequest) Lists all workflow definitions in your account with optional filtering and pagination.default ListWorkflowDefinitionsPublisherlistWorkflowDefinitionsPaginator(Consumer<ListWorkflowDefinitionsRequest.Builder> listWorkflowDefinitionsRequest) This is a variant oflistWorkflowDefinitions(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsRequest)operation.default ListWorkflowDefinitionsPublisherlistWorkflowDefinitionsPaginator(ListWorkflowDefinitionsRequest listWorkflowDefinitionsRequest) This is a variant oflistWorkflowDefinitions(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsRequest)operation.listWorkflowRuns(Consumer<ListWorkflowRunsRequest.Builder> listWorkflowRunsRequest) Lists all workflow runs for a specific workflow definition with optional filtering and pagination.listWorkflowRuns(ListWorkflowRunsRequest listWorkflowRunsRequest) Lists all workflow runs for a specific workflow definition with optional filtering and pagination.default ListWorkflowRunsPublisherlistWorkflowRunsPaginator(Consumer<ListWorkflowRunsRequest.Builder> listWorkflowRunsRequest) This is a variant oflistWorkflowRuns(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsRequest)operation.default ListWorkflowRunsPublisherlistWorkflowRunsPaginator(ListWorkflowRunsRequest listWorkflowRunsRequest) This is a variant oflistWorkflowRuns(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsRequest)operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<UpdateActResponse> updateAct(Consumer<UpdateActRequest.Builder> updateActRequest) Updates an existing act's configuration, status, or error information.default CompletableFuture<UpdateActResponse> updateAct(UpdateActRequest updateActRequest) Updates an existing act's configuration, status, or error information.updateWorkflowRun(Consumer<UpdateWorkflowRunRequest.Builder> updateWorkflowRunRequest) Updates the configuration or state of an active workflow run.updateWorkflowRun(UpdateWorkflowRunRequest updateWorkflowRunRequest) Updates the configuration or state of an active workflow run.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createAct
Creates a new AI task (act) within a session that can interact with tools and perform specific actions.
- Parameters:
createActRequest-- Returns:
- A Java Future containing the result of the CreateAct operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota limit.
- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createAct
default CompletableFuture<CreateActResponse> createAct(Consumer<CreateActRequest.Builder> createActRequest) Creates a new AI task (act) within a session that can interact with tools and perform specific actions.
This is a convenience which creates an instance of the
CreateActRequest.Builderavoiding the need to create one manually viaCreateActRequest.builder()- Parameters:
createActRequest- AConsumerthat will call methods onCreateActRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateAct operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota limit.
- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSession
default CompletableFuture<CreateSessionResponse> createSession(CreateSessionRequest createSessionRequest) Creates a new session context within a workflow run to manage conversation state and acts.
- Parameters:
createSessionRequest-- Returns:
- A Java Future containing the result of the CreateSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota limit.
- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSession
default CompletableFuture<CreateSessionResponse> createSession(Consumer<CreateSessionRequest.Builder> createSessionRequest) Creates a new session context within a workflow run to manage conversation state and acts.
This is a convenience which creates an instance of the
CreateSessionRequest.Builderavoiding the need to create one manually viaCreateSessionRequest.builder()- Parameters:
createSessionRequest- AConsumerthat will call methods onCreateSessionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateSession operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota limit.
- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWorkflowDefinition
default CompletableFuture<CreateWorkflowDefinitionResponse> createWorkflowDefinition(CreateWorkflowDefinitionRequest createWorkflowDefinitionRequest) Creates a new workflow definition template that can be used to execute multiple workflow runs.
- Parameters:
createWorkflowDefinitionRequest-- Returns:
- A Java Future containing the result of the CreateWorkflowDefinition operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota limit.
- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWorkflowDefinition
default CompletableFuture<CreateWorkflowDefinitionResponse> createWorkflowDefinition(Consumer<CreateWorkflowDefinitionRequest.Builder> createWorkflowDefinitionRequest) Creates a new workflow definition template that can be used to execute multiple workflow runs.
This is a convenience which creates an instance of the
CreateWorkflowDefinitionRequest.Builderavoiding the need to create one manually viaCreateWorkflowDefinitionRequest.builder()- Parameters:
createWorkflowDefinitionRequest- AConsumerthat will call methods onCreateWorkflowDefinitionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateWorkflowDefinition operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota limit.
- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWorkflowRun
default CompletableFuture<CreateWorkflowRunResponse> createWorkflowRun(CreateWorkflowRunRequest createWorkflowRunRequest) Creates a new execution instance of a workflow definition with specified parameters.
- Parameters:
createWorkflowRunRequest-- Returns:
- A Java Future containing the result of the CreateWorkflowRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWorkflowRun
default CompletableFuture<CreateWorkflowRunResponse> createWorkflowRun(Consumer<CreateWorkflowRunRequest.Builder> createWorkflowRunRequest) Creates a new execution instance of a workflow definition with specified parameters.
This is a convenience which creates an instance of the
CreateWorkflowRunRequest.Builderavoiding the need to create one manually viaCreateWorkflowRunRequest.builder()- Parameters:
createWorkflowRunRequest- AConsumerthat will call methods onCreateWorkflowRunRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateWorkflowRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWorkflowDefinition
default CompletableFuture<DeleteWorkflowDefinitionResponse> deleteWorkflowDefinition(DeleteWorkflowDefinitionRequest deleteWorkflowDefinitionRequest) Deletes a workflow definition and all associated resources. This operation cannot be undone.
- Parameters:
deleteWorkflowDefinitionRequest-- Returns:
- A Java Future containing the result of the DeleteWorkflowDefinition operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWorkflowDefinition
default CompletableFuture<DeleteWorkflowDefinitionResponse> deleteWorkflowDefinition(Consumer<DeleteWorkflowDefinitionRequest.Builder> deleteWorkflowDefinitionRequest) Deletes a workflow definition and all associated resources. This operation cannot be undone.
This is a convenience which creates an instance of the
DeleteWorkflowDefinitionRequest.Builderavoiding the need to create one manually viaDeleteWorkflowDefinitionRequest.builder()- Parameters:
deleteWorkflowDefinitionRequest- AConsumerthat will call methods onDeleteWorkflowDefinitionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteWorkflowDefinition operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWorkflowRun
default CompletableFuture<DeleteWorkflowRunResponse> deleteWorkflowRun(DeleteWorkflowRunRequest deleteWorkflowRunRequest) Terminates and cleans up a workflow run, stopping all associated acts and sessions.
- Parameters:
deleteWorkflowRunRequest-- Returns:
- A Java Future containing the result of the DeleteWorkflowRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWorkflowRun
default CompletableFuture<DeleteWorkflowRunResponse> deleteWorkflowRun(Consumer<DeleteWorkflowRunRequest.Builder> deleteWorkflowRunRequest) Terminates and cleans up a workflow run, stopping all associated acts and sessions.
This is a convenience which creates an instance of the
DeleteWorkflowRunRequest.Builderavoiding the need to create one manually viaDeleteWorkflowRunRequest.builder()- Parameters:
deleteWorkflowRunRequest- AConsumerthat will call methods onDeleteWorkflowRunRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteWorkflowRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkflowDefinition
default CompletableFuture<GetWorkflowDefinitionResponse> getWorkflowDefinition(GetWorkflowDefinitionRequest getWorkflowDefinitionRequest) Retrieves the details and configuration of a specific workflow definition.
- Parameters:
getWorkflowDefinitionRequest-- Returns:
- A Java Future containing the result of the GetWorkflowDefinition operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkflowDefinition
default CompletableFuture<GetWorkflowDefinitionResponse> getWorkflowDefinition(Consumer<GetWorkflowDefinitionRequest.Builder> getWorkflowDefinitionRequest) Retrieves the details and configuration of a specific workflow definition.
This is a convenience which creates an instance of the
GetWorkflowDefinitionRequest.Builderavoiding the need to create one manually viaGetWorkflowDefinitionRequest.builder()- Parameters:
getWorkflowDefinitionRequest- AConsumerthat will call methods onGetWorkflowDefinitionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetWorkflowDefinition operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkflowRun
default CompletableFuture<GetWorkflowRunResponse> getWorkflowRun(GetWorkflowRunRequest getWorkflowRunRequest) Retrieves the current state, configuration, and execution details of a workflow run.
- Parameters:
getWorkflowRunRequest-- Returns:
- A Java Future containing the result of the GetWorkflowRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkflowRun
default CompletableFuture<GetWorkflowRunResponse> getWorkflowRun(Consumer<GetWorkflowRunRequest.Builder> getWorkflowRunRequest) Retrieves the current state, configuration, and execution details of a workflow run.
This is a convenience which creates an instance of the
GetWorkflowRunRequest.Builderavoiding the need to create one manually viaGetWorkflowRunRequest.builder()- Parameters:
getWorkflowRunRequest- AConsumerthat will call methods onGetWorkflowRunRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetWorkflowRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeActStep
default CompletableFuture<InvokeActStepResponse> invokeActStep(InvokeActStepRequest invokeActStepRequest) Executes the next step of an act, processing tool call results and returning new tool calls if needed.
- Parameters:
invokeActStepRequest-- Returns:
- A Java Future containing the result of the InvokeActStep operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota limit.
- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invokeActStep
default CompletableFuture<InvokeActStepResponse> invokeActStep(Consumer<InvokeActStepRequest.Builder> invokeActStepRequest) Executes the next step of an act, processing tool call results and returning new tool calls if needed.
This is a convenience which creates an instance of the
InvokeActStepRequest.Builderavoiding the need to create one manually viaInvokeActStepRequest.builder()- Parameters:
invokeActStepRequest- AConsumerthat will call methods onInvokeActStepRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the InvokeActStep operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota limit.
- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listActs
Lists all acts within a specific session with their current status and execution details.
- Parameters:
listActsRequest-- Returns:
- A Java Future containing the result of the ListActs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listActs
default CompletableFuture<ListActsResponse> listActs(Consumer<ListActsRequest.Builder> listActsRequest) Lists all acts within a specific session with their current status and execution details.
This is a convenience which creates an instance of the
ListActsRequest.Builderavoiding the need to create one manually viaListActsRequest.builder()- Parameters:
listActsRequest- AConsumerthat will call methods onListActsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListActs operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listActsPaginator
This is a variant of
listActs(software.amazon.awssdk.services.novaact.model.ListActsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.novaact.paginators.ListActsPublisher publisher = client.listActsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.novaact.paginators.ListActsPublisher publisher = client.listActsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.novaact.model.ListActsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.novaact.model.ListActsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listActs(software.amazon.awssdk.services.novaact.model.ListActsRequest)operation.- Parameters:
listActsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listActsPaginator
This is a variant of
listActs(software.amazon.awssdk.services.novaact.model.ListActsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.novaact.paginators.ListActsPublisher publisher = client.listActsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.novaact.paginators.ListActsPublisher publisher = client.listActsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.novaact.model.ListActsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.novaact.model.ListActsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listActs(software.amazon.awssdk.services.novaact.model.ListActsRequest)operation.
This is a convenience which creates an instance of the
ListActsRequest.Builderavoiding the need to create one manually viaListActsRequest.builder()- Parameters:
listActsRequest- AConsumerthat will call methods onListActsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModels
Lists all available AI models that can be used for workflow execution, including their status and compatibility information.
- Parameters:
listModelsRequest-- Returns:
- A Java Future containing the result of the ListModels operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listModels
default CompletableFuture<ListModelsResponse> listModels(Consumer<ListModelsRequest.Builder> listModelsRequest) Lists all available AI models that can be used for workflow execution, including their status and compatibility information.
This is a convenience which creates an instance of the
ListModelsRequest.Builderavoiding the need to create one manually viaListModelsRequest.builder()- Parameters:
listModelsRequest- AConsumerthat will call methods onListModelsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListModels operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSessions
default CompletableFuture<ListSessionsResponse> listSessions(ListSessionsRequest listSessionsRequest) Lists all sessions within a specific workflow run.
- Parameters:
listSessionsRequest-- Returns:
- A Java Future containing the result of the ListSessions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSessions
default CompletableFuture<ListSessionsResponse> listSessions(Consumer<ListSessionsRequest.Builder> listSessionsRequest) Lists all sessions within a specific workflow run.
This is a convenience which creates an instance of the
ListSessionsRequest.Builderavoiding the need to create one manually viaListSessionsRequest.builder()- Parameters:
listSessionsRequest- AConsumerthat will call methods onListSessionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListSessions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSessionsPaginator
This is a variant of
listSessions(software.amazon.awssdk.services.novaact.model.ListSessionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.novaact.paginators.ListSessionsPublisher publisher = client.listSessionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.novaact.paginators.ListSessionsPublisher publisher = client.listSessionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.novaact.model.ListSessionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.novaact.model.ListSessionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSessions(software.amazon.awssdk.services.novaact.model.ListSessionsRequest)operation.- Parameters:
listSessionsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSessionsPaginator
default ListSessionsPublisher listSessionsPaginator(Consumer<ListSessionsRequest.Builder> listSessionsRequest) This is a variant of
listSessions(software.amazon.awssdk.services.novaact.model.ListSessionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.novaact.paginators.ListSessionsPublisher publisher = client.listSessionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.novaact.paginators.ListSessionsPublisher publisher = client.listSessionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.novaact.model.ListSessionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.novaact.model.ListSessionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSessions(software.amazon.awssdk.services.novaact.model.ListSessionsRequest)operation.
This is a convenience which creates an instance of the
ListSessionsRequest.Builderavoiding the need to create one manually viaListSessionsRequest.builder()- Parameters:
listSessionsRequest- AConsumerthat will call methods onListSessionsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkflowDefinitions
default CompletableFuture<ListWorkflowDefinitionsResponse> listWorkflowDefinitions(ListWorkflowDefinitionsRequest listWorkflowDefinitionsRequest) Lists all workflow definitions in your account with optional filtering and pagination.
- Parameters:
listWorkflowDefinitionsRequest-- Returns:
- A Java Future containing the result of the ListWorkflowDefinitions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkflowDefinitions
default CompletableFuture<ListWorkflowDefinitionsResponse> listWorkflowDefinitions(Consumer<ListWorkflowDefinitionsRequest.Builder> listWorkflowDefinitionsRequest) Lists all workflow definitions in your account with optional filtering and pagination.
This is a convenience which creates an instance of the
ListWorkflowDefinitionsRequest.Builderavoiding the need to create one manually viaListWorkflowDefinitionsRequest.builder()- Parameters:
listWorkflowDefinitionsRequest- AConsumerthat will call methods onListWorkflowDefinitionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListWorkflowDefinitions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkflowDefinitionsPaginator
default ListWorkflowDefinitionsPublisher listWorkflowDefinitionsPaginator(ListWorkflowDefinitionsRequest listWorkflowDefinitionsRequest) This is a variant of
listWorkflowDefinitions(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowDefinitionsPublisher publisher = client.listWorkflowDefinitionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.novaact.paginators.ListWorkflowDefinitionsPublisher publisher = client.listWorkflowDefinitionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkflowDefinitions(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsRequest)operation.- Parameters:
listWorkflowDefinitionsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkflowDefinitionsPaginator
default ListWorkflowDefinitionsPublisher listWorkflowDefinitionsPaginator(Consumer<ListWorkflowDefinitionsRequest.Builder> listWorkflowDefinitionsRequest) This is a variant of
listWorkflowDefinitions(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowDefinitionsPublisher publisher = client.listWorkflowDefinitionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.novaact.paginators.ListWorkflowDefinitionsPublisher publisher = client.listWorkflowDefinitionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkflowDefinitions(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsRequest)operation.
This is a convenience which creates an instance of the
ListWorkflowDefinitionsRequest.Builderavoiding the need to create one manually viaListWorkflowDefinitionsRequest.builder()- Parameters:
listWorkflowDefinitionsRequest- AConsumerthat will call methods onListWorkflowDefinitionsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkflowRuns
default CompletableFuture<ListWorkflowRunsResponse> listWorkflowRuns(ListWorkflowRunsRequest listWorkflowRunsRequest) Lists all workflow runs for a specific workflow definition with optional filtering and pagination.
- Parameters:
listWorkflowRunsRequest-- Returns:
- A Java Future containing the result of the ListWorkflowRuns operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkflowRuns
default CompletableFuture<ListWorkflowRunsResponse> listWorkflowRuns(Consumer<ListWorkflowRunsRequest.Builder> listWorkflowRunsRequest) Lists all workflow runs for a specific workflow definition with optional filtering and pagination.
This is a convenience which creates an instance of the
ListWorkflowRunsRequest.Builderavoiding the need to create one manually viaListWorkflowRunsRequest.builder()- Parameters:
listWorkflowRunsRequest- AConsumerthat will call methods onListWorkflowRunsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListWorkflowRuns operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkflowRunsPaginator
default ListWorkflowRunsPublisher listWorkflowRunsPaginator(ListWorkflowRunsRequest listWorkflowRunsRequest) This is a variant of
listWorkflowRuns(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowRunsPublisher publisher = client.listWorkflowRunsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.novaact.paginators.ListWorkflowRunsPublisher publisher = client.listWorkflowRunsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.novaact.model.ListWorkflowRunsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkflowRuns(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsRequest)operation.- Parameters:
listWorkflowRunsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkflowRunsPaginator
default ListWorkflowRunsPublisher listWorkflowRunsPaginator(Consumer<ListWorkflowRunsRequest.Builder> listWorkflowRunsRequest) This is a variant of
listWorkflowRuns(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowRunsPublisher publisher = client.listWorkflowRunsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.novaact.paginators.ListWorkflowRunsPublisher publisher = client.listWorkflowRunsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.novaact.model.ListWorkflowRunsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsResponse response) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkflowRuns(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsRequest)operation.
This is a convenience which creates an instance of the
ListWorkflowRunsRequest.Builderavoiding the need to create one manually viaListWorkflowRunsRequest.builder()- Parameters:
listWorkflowRunsRequest- AConsumerthat will call methods onListWorkflowRunsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- ResourceNotFoundException The requested resource was not found.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAct
Updates an existing act's configuration, status, or error information.
- Parameters:
updateActRequest-- Returns:
- A Java Future containing the result of the UpdateAct operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateAct
default CompletableFuture<UpdateActResponse> updateAct(Consumer<UpdateActRequest.Builder> updateActRequest) Updates an existing act's configuration, status, or error information.
This is a convenience which creates an instance of the
UpdateActRequest.Builderavoiding the need to create one manually viaUpdateActRequest.builder()- Parameters:
updateActRequest- AConsumerthat will call methods onUpdateActRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateAct operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateWorkflowRun
default CompletableFuture<UpdateWorkflowRunResponse> updateWorkflowRun(UpdateWorkflowRunRequest updateWorkflowRunRequest) Updates the configuration or state of an active workflow run.
- Parameters:
updateWorkflowRunRequest-- Returns:
- A Java Future containing the result of the UpdateWorkflowRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateWorkflowRun
default CompletableFuture<UpdateWorkflowRunResponse> updateWorkflowRun(Consumer<UpdateWorkflowRunRequest.Builder> updateWorkflowRunRequest) Updates the configuration or state of an active workflow run.
This is a convenience which creates an instance of the
UpdateWorkflowRunRequest.Builderavoiding the need to create one manually viaUpdateWorkflowRunRequest.builder()- Parameters:
updateWorkflowRunRequest- AConsumerthat will call methods onUpdateWorkflowRunRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateWorkflowRun operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You don't have sufficient permissions to perform this action.
- ConflictException The request could not be completed due to a conflict with the current state of the resource.
- ResourceNotFoundException The requested resource was not found.
- ThrottlingException The request was throttled due to too many requests. Please try again later.
- InternalServerException An internal server error occurred. Please try again later.
- ValidationException The input parameters for the request are invalid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- NovaActException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aNovaActAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aNovaActAsyncClient.
-