AutoCloseable
@Generated("software.amazon.awssdk:codegen") public interface SFNAsyncClient extends AutoCloseable
builder()
method.
AWS Step Functions is a web service that enables you to coordinate the components of distributed applications and microservices using visual workflows. You build applications from individual components that each perform a discrete function, or task, allowing you to scale and change applications quickly. Step Functions provides a graphical console to visualize the components of your application as a series of steps. It automatically triggers and tracks each step, and retries when there are errors, so your application executes in order and as expected, every time. Step Functions logs the state of each step, so when things do go wrong, you can diagnose and debug problems quickly.
Step Functions manages the operations and underlying infrastructure for you to ensure your application is available at any scale. You can run tasks on the AWS cloud, on your own servers, or an any system that has access to AWS. Step Functions can be accessed and used with the Step Functions console, the AWS SDKs (included with your Beta release invitation email), or an HTTP API (the subject of this document).
Modifier and Type | Method | Description |
---|---|---|
static SFNAsyncClientBuilder |
builder() |
Create a builder that can be used to configure and create a
SFNAsyncClient . |
static SFNAsyncClient |
create() |
Create a
SFNAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CompletableFuture<CreateActivityResponse> |
createActivity(CreateActivityRequest createActivityRequest) |
Creates an activity.
|
default CompletableFuture<CreateStateMachineResponse> |
createStateMachine(CreateStateMachineRequest createStateMachineRequest) |
Creates a state machine.
|
default CompletableFuture<DeleteActivityResponse> |
deleteActivity(DeleteActivityRequest deleteActivityRequest) |
Deletes an activity.
|
default CompletableFuture<DeleteStateMachineResponse> |
deleteStateMachine(DeleteStateMachineRequest deleteStateMachineRequest) |
Deletes a state machine.
|
default CompletableFuture<DescribeActivityResponse> |
describeActivity(DescribeActivityRequest describeActivityRequest) |
Describes an activity.
|
default CompletableFuture<DescribeExecutionResponse> |
describeExecution(DescribeExecutionRequest describeExecutionRequest) |
Describes an execution.
|
default CompletableFuture<DescribeStateMachineResponse> |
describeStateMachine(DescribeStateMachineRequest describeStateMachineRequest) |
Describes a state machine.
|
default CompletableFuture<GetActivityTaskResponse> |
getActivityTask(GetActivityTaskRequest getActivityTaskRequest) |
Used by workers to retrieve a task (with the specified activity ARN) scheduled for execution by a running state
machine.
|
default CompletableFuture<GetExecutionHistoryResponse> |
getExecutionHistory(GetExecutionHistoryRequest getExecutionHistoryRequest) |
Returns the history of the specified execution as a list of events.
|
default CompletableFuture<ListActivitiesResponse> |
listActivities(ListActivitiesRequest listActivitiesRequest) |
Lists the existing activities.
|
default CompletableFuture<ListExecutionsResponse> |
listExecutions(ListExecutionsRequest listExecutionsRequest) |
Lists the executions of a state machine that meet the filtering criteria.
|
default CompletableFuture<ListStateMachinesResponse> |
listStateMachines(ListStateMachinesRequest listStateMachinesRequest) |
Lists the existing state machines.
|
default CompletableFuture<SendTaskFailureResponse> |
sendTaskFailure(SendTaskFailureRequest sendTaskFailureRequest) |
Used by workers to report that the task identified by the
taskToken failed. |
default CompletableFuture<SendTaskHeartbeatResponse> |
sendTaskHeartbeat(SendTaskHeartbeatRequest sendTaskHeartbeatRequest) |
Used by workers to report to the service that the task represented by the specified
taskToken is
still making progress. |
default CompletableFuture<SendTaskSuccessResponse> |
sendTaskSuccess(SendTaskSuccessRequest sendTaskSuccessRequest) |
Used by workers to report that the task identified by the
taskToken completed successfully. |
default CompletableFuture<StartExecutionResponse> |
startExecution(StartExecutionRequest startExecutionRequest) |
Starts a state machine execution.
|
default CompletableFuture<StopExecutionResponse> |
stopExecution(StopExecutionRequest stopExecutionRequest) |
Stops an execution.
|
close
static SFNAsyncClient create()
SFNAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static SFNAsyncClientBuilder builder()
SFNAsyncClient
.default CompletableFuture<CreateActivityResponse> createActivity(CreateActivityRequest createActivityRequest)
Creates an activity.
createActivityRequest
- default CompletableFuture<CreateStateMachineResponse> createStateMachine(CreateStateMachineRequest createStateMachineRequest)
Creates a state machine.
createStateMachineRequest
- default CompletableFuture<DeleteActivityResponse> deleteActivity(DeleteActivityRequest deleteActivityRequest)
Deletes an activity.
deleteActivityRequest
- default CompletableFuture<DeleteStateMachineResponse> deleteStateMachine(DeleteStateMachineRequest deleteStateMachineRequest)
Deletes a state machine. This is an asynchronous operation-- it sets the state machine's status to "DELETING" and begins the delete process.
deleteStateMachineRequest
- default CompletableFuture<DescribeActivityResponse> describeActivity(DescribeActivityRequest describeActivityRequest)
Describes an activity.
describeActivityRequest
- default CompletableFuture<DescribeExecutionResponse> describeExecution(DescribeExecutionRequest describeExecutionRequest)
Describes an execution.
describeExecutionRequest
- default CompletableFuture<DescribeStateMachineResponse> describeStateMachine(DescribeStateMachineRequest describeStateMachineRequest)
Describes a state machine.
describeStateMachineRequest
- default CompletableFuture<GetActivityTaskResponse> getActivityTask(GetActivityTaskRequest getActivityTaskRequest)
Used by workers to retrieve a task (with the specified activity ARN) scheduled for execution by a running state
machine. This initiates a long poll, where the service holds the HTTP connection open and responds as soon as a
task becomes available (i.e. an execution of a task of this type is needed.) The maximum time the service holds
on to the request before responding is 60 seconds. If no task is available within 60 seconds, the poll will
return an empty result, that is, the taskToken
returned is an empty string.
Workers should set their client side socket timeout to at least 65 seconds (5 seconds higher than the maximum time the service may hold the poll request).
getActivityTaskRequest
- default CompletableFuture<GetExecutionHistoryResponse> getExecutionHistory(GetExecutionHistoryRequest getExecutionHistoryRequest)
Returns the history of the specified execution as a list of events. By default, the results are returned in
ascending order of the timeStamp
of the events. Use the reverseOrder
parameter to get
the latest events first. The results may be split into multiple pages. To retrieve subsequent pages, make the
call again using the nextToken
returned by the previous call.
getExecutionHistoryRequest
- default CompletableFuture<ListActivitiesResponse> listActivities(ListActivitiesRequest listActivitiesRequest)
Lists the existing activities. The results may be split into multiple pages. To retrieve subsequent pages, make
the call again using the nextToken
returned by the previous call.
listActivitiesRequest
- default CompletableFuture<ListExecutionsResponse> listExecutions(ListExecutionsRequest listExecutionsRequest)
Lists the executions of a state machine that meet the filtering criteria. The results may be split into multiple
pages. To retrieve subsequent pages, make the call again using the nextToken
returned by the
previous call.
listExecutionsRequest
- default CompletableFuture<ListStateMachinesResponse> listStateMachines(ListStateMachinesRequest listStateMachinesRequest)
Lists the existing state machines. The results may be split into multiple pages. To retrieve subsequent pages,
make the call again using the nextToken
returned by the previous call.
listStateMachinesRequest
- default CompletableFuture<SendTaskFailureResponse> sendTaskFailure(SendTaskFailureRequest sendTaskFailureRequest)
Used by workers to report that the task identified by the taskToken
failed.
sendTaskFailureRequest
- default CompletableFuture<SendTaskHeartbeatResponse> sendTaskHeartbeat(SendTaskHeartbeatRequest sendTaskHeartbeatRequest)
Used by workers to report to the service that the task represented by the specified taskToken
is
still making progress. This action resets the Heartbeat
clock. The Heartbeat
threshold
is specified in the state machine's Amazon States Language definition. This action does not in itself create an
event in the execution history. However, if the task times out, the execution history will contain an
ActivityTimedOut
event.
The Timeout
of a task, defined in the state machine's Amazon States Language definition, is its
maximum allowed duration, regardless of the number of SendTaskHeartbeat requests received.
This operation is only useful for long-lived tasks to report the liveliness of the task.
sendTaskHeartbeatRequest
- default CompletableFuture<SendTaskSuccessResponse> sendTaskSuccess(SendTaskSuccessRequest sendTaskSuccessRequest)
Used by workers to report that the task identified by the taskToken
completed successfully.
sendTaskSuccessRequest
- default CompletableFuture<StartExecutionResponse> startExecution(StartExecutionRequest startExecutionRequest)
Starts a state machine execution.
startExecutionRequest
- default CompletableFuture<StopExecutionResponse> stopExecution(StopExecutionRequest stopExecutionRequest)
Stops an execution.
stopExecutionRequest
- Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.