amazonaws.com – states
Step Functions
Step Functions is a service that lets you coordinate the components of distributed applications and microservices using visual workflows.
You can use Step Functions to build applications from individual components, each of which performs a discrete function, or task, allowing you to scale and change applications quickly. Step Functions provides a console that helps visualize the components of your application as a series of steps. Step Functions automatically triggers and tracks each step, and retries steps when there are errors, so your application executes predictably and in the right order every time. Step Functions logs the state of each step, so you can quickly diagnose and debug any issues.
Step Functions manages operations and underlying infrastructure to ensure your application is available at any scale. You can run tasks on Amazon Web Services, your own servers, or any system that has access to Amazon Web Services. You can access and use Step Functions using the console, the Amazon Web Services SDKs, or an HTTP API. For more information about Step Functions, see the .
- Homepage
- https://api.apis.guru/v2/specs/amazonaws.com:states/2016-11-23.json
- Provider
- amazonaws.com:states / states
- OpenAPI version
- 3.0.0
- Spec (JSON)
- https://api.apis.guru/v2/specs/amazonaws.com/states/2016-11-23/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/amazonaws.com/states/2016-11-23/openapi.yaml
Tools (28)
Extracted live via the executor SDK.
-
xAmzTargetAwsStepFunctionsCreateActivity.createActivityCreates an activity. An activity is a task that you write in any programming language and host on any machine that has access to Step Functions. Activities must poll Step Functions using the
GetActivityTaskAPI action and respond usingSendTask*API actions. This function lets Step Functions know the existence of your activity and returns an identifier for use in a state machine and when polling from the activity.This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
*CreateActivityis an idempotent API. Subsequent requests won’t create a duplicate resource if it was already created.CreateActivity's idempotency check is based on the activityname. If a following request has differenttagsvalues, Step Functions will ignore these differences and treat it as an idempotent request of the previous. In this case,tagswill not be updated, even if they are different. -
xAmzTargetAwsStepFunctionsCreateStateMachine.createStateMachineCreates a state machine. A state machine consists of a collection of states that can do work (
Taskstates), determine to which states to transition next (Choicestates), stop an execution with an error (Failstates), and so on. State machines are specified using a JSON-based, structured language. For more information, see in the Step Functions User Guide.This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
CreateStateMachineis an idempotent API. Subsequent requests won’t create a duplicate resource if it was already created.CreateStateMachine's idempotency check is based on the state machinename,definition,type,LoggingConfigurationandTracingConfiguration. If a following request has a differentroleArnortags, Step Functions will ignore these differences and treat it as an idempotent request of the previous. In this case,roleArnandtagswill not be updated, even if they are different. -
xAmzTargetAwsStepFunctionsDeleteActivity.deleteActivityDeletes an activity.
-
xAmzTargetAwsStepFunctionsDeleteStateMachine.deleteStateMachineDeletes a state machine. This is an asynchronous operation: It sets the state machine's status to
DELETINGand begins the deletion process.If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.
A qualified state machine ARN refers to a Distributed Map state defined within a state machine. For example, the qualified state machine ARN
arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabelrefers to a Distributed Map state with a labelmapStateLabelin the state machine namedstateMachineName.For
EXPRESSstate machines, the deletion will happen eventually (usually less than a minute). Running executions may emit logs afterDeleteStateMachineAPI is called. -
xAmzTargetAwsStepFunctionsDescribeActivity.describeActivityDescribes an activity.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
-
xAmzTargetAwsStepFunctionsDescribeExecution.describeExecutionProvides all information about a state machine execution, such as the state machine associated with the execution, the execution input and output, and relevant execution metadata. Use this API action to return the Map Run ARN if the execution was dispatched by a Map Run.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
This API action is not supported by
EXPRESSstate machine executions unless they were dispatched by a Map Run. -
xAmzTargetAwsStepFunctionsDescribeMapRun.describeMapRunProvides information about a Map Run's configuration, progress, and results. For more information, see in the Step Functions Developer Guide.
-
xAmzTargetAwsStepFunctionsDescribeStateMachine.describeStateMachineProvides information about a state machine's definition, its IAM role Amazon Resource Name (ARN), and configuration. If the state machine ARN is a qualified state machine ARN, the response returned includes the
Mapstate's label.A qualified state machine ARN refers to a Distributed Map state defined within a state machine. For example, the qualified state machine ARN
arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabelrefers to a Distributed Map state with a labelmapStateLabelin the state machine namedstateMachineName.This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
-
xAmzTargetAwsStepFunctionsDescribeStateMachineForExecution.describeStateMachineForExecutionProvides information about a state machine's definition, its execution role ARN, and configuration. If an execution was dispatched by a Map Run, the Map Run is returned in the response. Additionally, the state machine returned will be the state machine associated with the Map Run.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
This API action is not supported by
EXPRESSstate machines. -
xAmzTargetAwsStepFunctionsGetActivityTask.getActivityTaskUsed by workers to retrieve a task (with the specified activity ARN) which has been 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 returns a
taskTokenwith a null string.This API action isn't logged in CloudTrail.
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).
Polling with
GetActivityTaskcan cause latency in some implementations. See in the Step Functions Developer Guide. -
xAmzTargetAwsStepFunctionsGetExecutionHistory.getExecutionHistoryReturns the history of the specified execution as a list of events. By default, the results are returned in ascending order of the
timeStampof the events. Use thereverseOrderparameter to get the latest events first.If
nextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.This API action is not supported by
EXPRESSstate machines. -
xAmzTargetAwsStepFunctionsListActivities.listActivitiesLists the existing activities.
If
nextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
-
xAmzTargetAwsStepFunctionsListExecutions.listExecutionsLists all executions of a state machine or a Map Run. You can list all executions related to a state machine by specifying a state machine Amazon Resource Name (ARN), or those related to a Map Run by specifying a Map Run ARN.
Results are sorted by time, with the most recent execution first.
If
nextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
This API action is not supported by
EXPRESSstate machines. -
xAmzTargetAwsStepFunctionsListMapRuns.listMapRunsLists all Map Runs that were started by a given state machine execution. Use this API action to obtain Map Run ARNs, and then call
DescribeMapRunto obtain more information, if needed. -
xAmzTargetAwsStepFunctionsListStateMachines.listStateMachinesLists the existing state machines.
If
nextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
-
xAmzTargetAwsStepFunctionsListTagsForResource.listTagsForResourceList tags for a given resource.
Tags may only contain Unicode letters, digits, white space, or these symbols:
__ . : / = + - @. -
xAmzTargetAwsStepFunctionsSendTaskFailure.sendTaskFailureUsed by activity workers and task states using the pattern to report that the task identified by the
taskTokenfailed. -
xAmzTargetAwsStepFunctionsSendTaskHeartbeat.sendTaskHeartbeatUsed by activity workers and task states using the pattern to report to Step Functions that the task represented by the specified
taskTokenis still making progress. This action resets theHeartbeatclock. TheHeartbeatthreshold is specified in the state machine's Amazon States Language definition (HeartbeatSeconds). This action does not in itself create an event in the execution history. However, if the task times out, the execution history contains anActivityTimedOutentry for activities, or aTaskTimedOutentry for for tasks using the or pattern.The
Timeoutof a task, defined in the state machine's Amazon States Language definition, is its maximum allowed duration, regardless of the number of SendTaskHeartbeat [blocked] requests received. UseHeartbeatSecondsto configure the timeout interval for heartbeats. -
xAmzTargetAwsStepFunctionsSendTaskSuccess.sendTaskSuccessUsed by activity workers and task states using the pattern to report that the task identified by the
taskTokencompleted successfully. -
xAmzTargetAwsStepFunctionsStartExecution.startExecutionStarts a state machine execution. If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.
A qualified state machine ARN refers to a Distributed Map state defined within a state machine. For example, the qualified state machine ARN
arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabelrefers to a Distributed Map state with a labelmapStateLabelin the state machine namedstateMachineName.StartExecutionis idempotent forSTANDARDworkflows. For aSTANDARDworkflow, ifStartExecutionis called with the same name and input as a running execution, the call will succeed and return the same response as the original request. If the execution is closed or if the input is different, it will return a400 ExecutionAlreadyExistserror. Names can be reused after 90 days.StartExecutionis not idempotent forEXPRESSworkflows. -
xAmzTargetAwsStepFunctionsStartSyncExecution.startSyncExecutionStarts a Synchronous Express state machine execution.
StartSyncExecutionis not available forSTANDARDworkflows.StartSyncExecutionwill return a200 OKresponse, even if your execution fails, because the status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your execution from running, such as permissions errors, limit errors, or issues with your state machine code and configuration.This API action isn't logged in CloudTrail.
-
xAmzTargetAwsStepFunctionsStopExecution.stopExecutionStops an execution.
This API action is not supported by
EXPRESSstate machines. -
xAmzTargetAwsStepFunctionsTagResource.tagResourceAdd a tag to a Step Functions resource.
An array of key-value pairs. For more information, see in the Amazon Web Services Billing and Cost Management User Guide, and .
Tags may only contain Unicode letters, digits, white space, or these symbols:
__ . : / = + - @. -
xAmzTargetAwsStepFunctionsUntagResource.untagResourceRemove a tag from a Step Functions resource
-
xAmzTargetAwsStepFunctionsUpdateMapRun.updateMapRunUpdates an in-progress Map Run's configuration to include changes to the settings that control maximum concurrency and Map Run failure.
-
xAmzTargetAwsStepFunctionsUpdateStateMachine.updateStateMachineUpdates an existing state machine by modifying its
definition,roleArn, orloggingConfiguration. Running executions will continue to use the previousdefinitionandroleArn. You must include at least one ofdefinitionorroleArnor you will receive aMissingRequiredParametererror.If the given state machine Amazon Resource Name (ARN) is a qualified state machine ARN, it will fail with ValidationException.
A qualified state machine ARN refers to a Distributed Map state defined within a state machine. For example, the qualified state machine ARN
arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabelrefers to a Distributed Map state with a labelmapStateLabelin the state machine namedstateMachineName.All
StartExecutioncalls within a few seconds will use the updateddefinitionandroleArn. Executions started immediately after callingUpdateStateMachinemay use the previous state machinedefinitionandroleArn. -
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools