Interface NovaActClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
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 NovaActClientBuilderbuilder()Create a builder that can be used to configure and create aNovaActClient.static NovaActClientcreate()Create aNovaActClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateActResponsecreateAct(Consumer<CreateActRequest.Builder> createActRequest) Creates a new AI task (act) within a session that can interact with tools and perform specific actions.default CreateActResponsecreateAct(CreateActRequest createActRequest) Creates a new AI task (act) within a session that can interact with tools and perform specific actions.default CreateSessionResponsecreateSession(Consumer<CreateSessionRequest.Builder> createSessionRequest) Creates a new session context within a workflow run to manage conversation state and acts.default CreateSessionResponsecreateSession(CreateSessionRequest createSessionRequest) Creates a new session context within a workflow run to manage conversation state and acts.default CreateWorkflowDefinitionResponsecreateWorkflowDefinition(Consumer<CreateWorkflowDefinitionRequest.Builder> createWorkflowDefinitionRequest) Creates a new workflow definition template that can be used to execute multiple workflow runs.default CreateWorkflowDefinitionResponsecreateWorkflowDefinition(CreateWorkflowDefinitionRequest createWorkflowDefinitionRequest) Creates a new workflow definition template that can be used to execute multiple workflow runs.default CreateWorkflowRunResponsecreateWorkflowRun(Consumer<CreateWorkflowRunRequest.Builder> createWorkflowRunRequest) Creates a new execution instance of a workflow definition with specified parameters.default CreateWorkflowRunResponsecreateWorkflowRun(CreateWorkflowRunRequest createWorkflowRunRequest) Creates a new execution instance of a workflow definition with specified parameters.default DeleteWorkflowDefinitionResponsedeleteWorkflowDefinition(Consumer<DeleteWorkflowDefinitionRequest.Builder> deleteWorkflowDefinitionRequest) Deletes a workflow definition and all associated resources.default DeleteWorkflowDefinitionResponsedeleteWorkflowDefinition(DeleteWorkflowDefinitionRequest deleteWorkflowDefinitionRequest) Deletes a workflow definition and all associated resources.default DeleteWorkflowRunResponsedeleteWorkflowRun(Consumer<DeleteWorkflowRunRequest.Builder> deleteWorkflowRunRequest) Terminates and cleans up a workflow run, stopping all associated acts and sessions.default DeleteWorkflowRunResponsedeleteWorkflowRun(DeleteWorkflowRunRequest deleteWorkflowRunRequest) Terminates and cleans up a workflow run, stopping all associated acts and sessions.default GetWorkflowDefinitionResponsegetWorkflowDefinition(Consumer<GetWorkflowDefinitionRequest.Builder> getWorkflowDefinitionRequest) Retrieves the details and configuration of a specific workflow definition.default GetWorkflowDefinitionResponsegetWorkflowDefinition(GetWorkflowDefinitionRequest getWorkflowDefinitionRequest) Retrieves the details and configuration of a specific workflow definition.default GetWorkflowRunResponsegetWorkflowRun(Consumer<GetWorkflowRunRequest.Builder> getWorkflowRunRequest) Retrieves the current state, configuration, and execution details of a workflow run.default GetWorkflowRunResponsegetWorkflowRun(GetWorkflowRunRequest getWorkflowRunRequest) Retrieves the current state, configuration, and execution details of a workflow run.default InvokeActStepResponseinvokeActStep(Consumer<InvokeActStepRequest.Builder> invokeActStepRequest) Executes the next step of an act, processing tool call results and returning new tool calls if needed.default InvokeActStepResponseinvokeActStep(InvokeActStepRequest invokeActStepRequest) Executes the next step of an act, processing tool call results and returning new tool calls if needed.default ListActsResponselistActs(Consumer<ListActsRequest.Builder> listActsRequest) Lists all acts within a specific session with their current status and execution details.default ListActsResponselistActs(ListActsRequest listActsRequest) Lists all acts within a specific session with their current status and execution details.default ListActsIterablelistActsPaginator(Consumer<ListActsRequest.Builder> listActsRequest) This is a variant oflistActs(software.amazon.awssdk.services.novaact.model.ListActsRequest)operation.default ListActsIterablelistActsPaginator(ListActsRequest listActsRequest) This is a variant oflistActs(software.amazon.awssdk.services.novaact.model.ListActsRequest)operation.default ListModelsResponselistModels(Consumer<ListModelsRequest.Builder> listModelsRequest) Lists all available AI models that can be used for workflow execution, including their status and compatibility information.default ListModelsResponselistModels(ListModelsRequest listModelsRequest) Lists all available AI models that can be used for workflow execution, including their status and compatibility information.default ListSessionsResponselistSessions(Consumer<ListSessionsRequest.Builder> listSessionsRequest) Lists all sessions within a specific workflow run.default ListSessionsResponselistSessions(ListSessionsRequest listSessionsRequest) Lists all sessions within a specific workflow run.default ListSessionsIterablelistSessionsPaginator(Consumer<ListSessionsRequest.Builder> listSessionsRequest) This is a variant oflistSessions(software.amazon.awssdk.services.novaact.model.ListSessionsRequest)operation.default ListSessionsIterablelistSessionsPaginator(ListSessionsRequest listSessionsRequest) This is a variant oflistSessions(software.amazon.awssdk.services.novaact.model.ListSessionsRequest)operation.default ListWorkflowDefinitionsResponselistWorkflowDefinitions(Consumer<ListWorkflowDefinitionsRequest.Builder> listWorkflowDefinitionsRequest) Lists all workflow definitions in your account with optional filtering and pagination.default ListWorkflowDefinitionsResponselistWorkflowDefinitions(ListWorkflowDefinitionsRequest listWorkflowDefinitionsRequest) Lists all workflow definitions in your account with optional filtering and pagination.default ListWorkflowDefinitionsIterablelistWorkflowDefinitionsPaginator(Consumer<ListWorkflowDefinitionsRequest.Builder> listWorkflowDefinitionsRequest) This is a variant oflistWorkflowDefinitions(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsRequest)operation.default ListWorkflowDefinitionsIterablelistWorkflowDefinitionsPaginator(ListWorkflowDefinitionsRequest listWorkflowDefinitionsRequest) This is a variant oflistWorkflowDefinitions(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsRequest)operation.default ListWorkflowRunsResponselistWorkflowRuns(Consumer<ListWorkflowRunsRequest.Builder> listWorkflowRunsRequest) Lists all workflow runs for a specific workflow definition with optional filtering and pagination.default ListWorkflowRunsResponselistWorkflowRuns(ListWorkflowRunsRequest listWorkflowRunsRequest) Lists all workflow runs for a specific workflow definition with optional filtering and pagination.default ListWorkflowRunsIterablelistWorkflowRunsPaginator(Consumer<ListWorkflowRunsRequest.Builder> listWorkflowRunsRequest) This is a variant oflistWorkflowRuns(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsRequest)operation.default ListWorkflowRunsIterablelistWorkflowRunsPaginator(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., ClientOverrideConfigurationstatic ServiceMetadatadefault UpdateActResponseupdateAct(Consumer<UpdateActRequest.Builder> updateActRequest) Updates an existing act's configuration, status, or error information.default UpdateActResponseupdateAct(UpdateActRequest updateActRequest) Updates an existing act's configuration, status, or error information.default UpdateWorkflowRunResponseupdateWorkflowRun(Consumer<UpdateWorkflowRunRequest.Builder> updateWorkflowRunRequest) Updates the configuration or state of an active workflow run.default UpdateWorkflowRunResponseupdateWorkflowRun(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
default CreateActResponse createAct(CreateActRequest createActRequest) throws ServiceQuotaExceededException, AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Creates a new AI task (act) within a session that can interact with tools and perform specific actions.
- Parameters:
createActRequest-- Returns:
- Result of the CreateAct operation returned by the service.
- See Also:
-
createAct
default CreateActResponse createAct(Consumer<CreateActRequest.Builder> createActRequest) throws ServiceQuotaExceededException, AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the CreateAct operation returned by the service.
- See Also:
-
createSession
default CreateSessionResponse createSession(CreateSessionRequest createSessionRequest) throws ServiceQuotaExceededException, AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Creates a new session context within a workflow run to manage conversation state and acts.
- Parameters:
createSessionRequest-- Returns:
- Result of the CreateSession operation returned by the service.
- See Also:
-
createSession
default CreateSessionResponse createSession(Consumer<CreateSessionRequest.Builder> createSessionRequest) throws ServiceQuotaExceededException, AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the CreateSession operation returned by the service.
- See Also:
-
createWorkflowDefinition
default CreateWorkflowDefinitionResponse createWorkflowDefinition(CreateWorkflowDefinitionRequest createWorkflowDefinitionRequest) throws ServiceQuotaExceededException, AccessDeniedException, ConflictException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Creates a new workflow definition template that can be used to execute multiple workflow runs.
- Parameters:
createWorkflowDefinitionRequest-- Returns:
- Result of the CreateWorkflowDefinition operation returned by the service.
- See Also:
-
createWorkflowDefinition
default CreateWorkflowDefinitionResponse createWorkflowDefinition(Consumer<CreateWorkflowDefinitionRequest.Builder> createWorkflowDefinitionRequest) throws ServiceQuotaExceededException, AccessDeniedException, ConflictException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the CreateWorkflowDefinition operation returned by the service.
- See Also:
-
createWorkflowRun
default CreateWorkflowRunResponse createWorkflowRun(CreateWorkflowRunRequest createWorkflowRunRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Creates a new execution instance of a workflow definition with specified parameters.
- Parameters:
createWorkflowRunRequest-- Returns:
- Result of the CreateWorkflowRun operation returned by the service.
- See Also:
-
createWorkflowRun
default CreateWorkflowRunResponse createWorkflowRun(Consumer<CreateWorkflowRunRequest.Builder> createWorkflowRunRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the CreateWorkflowRun operation returned by the service.
- See Also:
-
deleteWorkflowDefinition
default DeleteWorkflowDefinitionResponse deleteWorkflowDefinition(DeleteWorkflowDefinitionRequest deleteWorkflowDefinitionRequest) throws AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Deletes a workflow definition and all associated resources. This operation cannot be undone.
- Parameters:
deleteWorkflowDefinitionRequest-- Returns:
- Result of the DeleteWorkflowDefinition operation returned by the service.
- See Also:
-
deleteWorkflowDefinition
default DeleteWorkflowDefinitionResponse deleteWorkflowDefinition(Consumer<DeleteWorkflowDefinitionRequest.Builder> deleteWorkflowDefinitionRequest) throws AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the DeleteWorkflowDefinition operation returned by the service.
- See Also:
-
deleteWorkflowRun
default DeleteWorkflowRunResponse deleteWorkflowRun(DeleteWorkflowRunRequest deleteWorkflowRunRequest) throws AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Terminates and cleans up a workflow run, stopping all associated acts and sessions.
- Parameters:
deleteWorkflowRunRequest-- Returns:
- Result of the DeleteWorkflowRun operation returned by the service.
- See Also:
-
deleteWorkflowRun
default DeleteWorkflowRunResponse deleteWorkflowRun(Consumer<DeleteWorkflowRunRequest.Builder> deleteWorkflowRunRequest) throws AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the DeleteWorkflowRun operation returned by the service.
- See Also:
-
getWorkflowDefinition
default GetWorkflowDefinitionResponse getWorkflowDefinition(GetWorkflowDefinitionRequest getWorkflowDefinitionRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Retrieves the details and configuration of a specific workflow definition.
- Parameters:
getWorkflowDefinitionRequest-- Returns:
- Result of the GetWorkflowDefinition operation returned by the service.
- See Also:
-
getWorkflowDefinition
default GetWorkflowDefinitionResponse getWorkflowDefinition(Consumer<GetWorkflowDefinitionRequest.Builder> getWorkflowDefinitionRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the GetWorkflowDefinition operation returned by the service.
- See Also:
-
getWorkflowRun
default GetWorkflowRunResponse getWorkflowRun(GetWorkflowRunRequest getWorkflowRunRequest) throws AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Retrieves the current state, configuration, and execution details of a workflow run.
- Parameters:
getWorkflowRunRequest-- Returns:
- Result of the GetWorkflowRun operation returned by the service.
- See Also:
-
getWorkflowRun
default GetWorkflowRunResponse getWorkflowRun(Consumer<GetWorkflowRunRequest.Builder> getWorkflowRunRequest) throws AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the GetWorkflowRun operation returned by the service.
- See Also:
-
invokeActStep
default InvokeActStepResponse invokeActStep(InvokeActStepRequest invokeActStepRequest) throws ServiceQuotaExceededException, AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Executes the next step of an act, processing tool call results and returning new tool calls if needed.
- Parameters:
invokeActStepRequest-- Returns:
- Result of the InvokeActStep operation returned by the service.
- See Also:
-
invokeActStep
default InvokeActStepResponse invokeActStep(Consumer<InvokeActStepRequest.Builder> invokeActStepRequest) throws ServiceQuotaExceededException, AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the InvokeActStep operation returned by the service.
- See Also:
-
listActs
default ListActsResponse listActs(ListActsRequest listActsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Lists all acts within a specific session with their current status and execution details.
- Parameters:
listActsRequest-- Returns:
- Result of the ListActs operation returned by the service.
- See Also:
-
listActs
default ListActsResponse listActs(Consumer<ListActsRequest.Builder> listActsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the ListActs operation returned by the service.
- See Also:
-
listActsPaginator
default ListActsIterable listActsPaginator(ListActsRequest listActsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException This is a variant of
listActs(software.amazon.awssdk.services.novaact.model.ListActsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.novaact.paginators.ListActsIterable responses = client.listActsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.novaact.paginators.ListActsIterable responses = client.listActsPaginator(request); for (software.amazon.awssdk.services.novaact.model.ListActsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.novaact.paginators.ListActsIterable responses = client.listActsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listActs(software.amazon.awssdk.services.novaact.model.ListActsRequest)operation.- Parameters:
listActsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listActsPaginator
default ListActsIterable listActsPaginator(Consumer<ListActsRequest.Builder> listActsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException This is a variant of
listActs(software.amazon.awssdk.services.novaact.model.ListActsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.novaact.paginators.ListActsIterable responses = client.listActsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.novaact.paginators.ListActsIterable responses = client.listActsPaginator(request); for (software.amazon.awssdk.services.novaact.model.ListActsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.novaact.paginators.ListActsIterable responses = client.listActsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listModels
default ListModelsResponse listModels(ListModelsRequest listModelsRequest) throws AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, NovaActException Lists all available AI models that can be used for workflow execution, including their status and compatibility information.
- Parameters:
listModelsRequest-- Returns:
- Result of the ListModels operation returned by the service.
- See Also:
-
listModels
default ListModelsResponse listModels(Consumer<ListModelsRequest.Builder> listModelsRequest) throws AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the ListModels operation returned by the service.
- See Also:
-
listSessions
default ListSessionsResponse listSessions(ListSessionsRequest listSessionsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Lists all sessions within a specific workflow run.
- Parameters:
listSessionsRequest-- Returns:
- Result of the ListSessions operation returned by the service.
- See Also:
-
listSessions
default ListSessionsResponse listSessions(Consumer<ListSessionsRequest.Builder> listSessionsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the ListSessions operation returned by the service.
- See Also:
-
listSessionsPaginator
default ListSessionsIterable listSessionsPaginator(ListSessionsRequest listSessionsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException This is a variant of
listSessions(software.amazon.awssdk.services.novaact.model.ListSessionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.novaact.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.novaact.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); for (software.amazon.awssdk.services.novaact.model.ListSessionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.novaact.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSessions(software.amazon.awssdk.services.novaact.model.ListSessionsRequest)operation.- Parameters:
listSessionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSessionsPaginator
default ListSessionsIterable listSessionsPaginator(Consumer<ListSessionsRequest.Builder> listSessionsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException This is a variant of
listSessions(software.amazon.awssdk.services.novaact.model.ListSessionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.novaact.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.novaact.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); for (software.amazon.awssdk.services.novaact.model.ListSessionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.novaact.paginators.ListSessionsIterable responses = client.listSessionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listWorkflowDefinitions
default ListWorkflowDefinitionsResponse listWorkflowDefinitions(ListWorkflowDefinitionsRequest listWorkflowDefinitionsRequest) throws AccessDeniedException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Lists all workflow definitions in your account with optional filtering and pagination.
- Parameters:
listWorkflowDefinitionsRequest-- Returns:
- Result of the ListWorkflowDefinitions operation returned by the service.
- See Also:
-
listWorkflowDefinitions
default ListWorkflowDefinitionsResponse listWorkflowDefinitions(Consumer<ListWorkflowDefinitionsRequest.Builder> listWorkflowDefinitionsRequest) throws AccessDeniedException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the ListWorkflowDefinitions operation returned by the service.
- See Also:
-
listWorkflowDefinitionsPaginator
default ListWorkflowDefinitionsIterable listWorkflowDefinitionsPaginator(ListWorkflowDefinitionsRequest listWorkflowDefinitionsRequest) throws AccessDeniedException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException This is a variant of
listWorkflowDefinitions(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowDefinitionsIterable responses = client.listWorkflowDefinitionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.novaact.paginators.ListWorkflowDefinitionsIterable responses = client .listWorkflowDefinitionsPaginator(request); for (software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowDefinitionsIterable responses = client.listWorkflowDefinitionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkflowDefinitions(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsRequest)operation.- Parameters:
listWorkflowDefinitionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listWorkflowDefinitionsPaginator
default ListWorkflowDefinitionsIterable listWorkflowDefinitionsPaginator(Consumer<ListWorkflowDefinitionsRequest.Builder> listWorkflowDefinitionsRequest) throws AccessDeniedException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException This is a variant of
listWorkflowDefinitions(software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowDefinitionsIterable responses = client.listWorkflowDefinitionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.novaact.paginators.ListWorkflowDefinitionsIterable responses = client .listWorkflowDefinitionsPaginator(request); for (software.amazon.awssdk.services.novaact.model.ListWorkflowDefinitionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowDefinitionsIterable responses = client.listWorkflowDefinitionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listWorkflowRuns
default ListWorkflowRunsResponse listWorkflowRuns(ListWorkflowRunsRequest listWorkflowRunsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Lists all workflow runs for a specific workflow definition with optional filtering and pagination.
- Parameters:
listWorkflowRunsRequest-- Returns:
- Result of the ListWorkflowRuns operation returned by the service.
- See Also:
-
listWorkflowRuns
default ListWorkflowRunsResponse listWorkflowRuns(Consumer<ListWorkflowRunsRequest.Builder> listWorkflowRunsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the ListWorkflowRuns operation returned by the service.
- See Also:
-
listWorkflowRunsPaginator
default ListWorkflowRunsIterable listWorkflowRunsPaginator(ListWorkflowRunsRequest listWorkflowRunsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException This is a variant of
listWorkflowRuns(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowRunsIterable responses = client.listWorkflowRunsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.novaact.paginators.ListWorkflowRunsIterable responses = client .listWorkflowRunsPaginator(request); for (software.amazon.awssdk.services.novaact.model.ListWorkflowRunsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowRunsIterable responses = client.listWorkflowRunsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkflowRuns(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsRequest)operation.- Parameters:
listWorkflowRunsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listWorkflowRunsPaginator
default ListWorkflowRunsIterable listWorkflowRunsPaginator(Consumer<ListWorkflowRunsRequest.Builder> listWorkflowRunsRequest) throws AccessDeniedException, ConflictException, ThrottlingException, ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException This is a variant of
listWorkflowRuns(software.amazon.awssdk.services.novaact.model.ListWorkflowRunsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowRunsIterable responses = client.listWorkflowRunsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.novaact.paginators.ListWorkflowRunsIterable responses = client .listWorkflowRunsPaginator(request); for (software.amazon.awssdk.services.novaact.model.ListWorkflowRunsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.novaact.paginators.ListWorkflowRunsIterable responses = client.listWorkflowRunsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
updateAct
default UpdateActResponse updateAct(UpdateActRequest updateActRequest) throws AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Updates an existing act's configuration, status, or error information.
- Parameters:
updateActRequest-- Returns:
- Result of the UpdateAct operation returned by the service.
- See Also:
-
updateAct
default UpdateActResponse updateAct(Consumer<UpdateActRequest.Builder> updateActRequest) throws AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the UpdateAct operation returned by the service.
- See Also:
-
updateWorkflowRun
default UpdateWorkflowRunResponse updateWorkflowRun(UpdateWorkflowRunRequest updateWorkflowRunRequest) throws AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException Updates the configuration or state of an active workflow run.
- Parameters:
updateWorkflowRunRequest-- Returns:
- Result of the UpdateWorkflowRun operation returned by the service.
- See Also:
-
updateWorkflowRun
default UpdateWorkflowRunResponse updateWorkflowRun(Consumer<UpdateWorkflowRunRequest.Builder> updateWorkflowRunRequest) throws AccessDeniedException, ConflictException, ResourceNotFoundException, ThrottlingException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, NovaActException 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:
- Result of the UpdateWorkflowRun operation returned by the service.
- See Also:
-
create
Create aNovaActClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aNovaActClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-