Succeed workflow state - AWS Step Functions

Succeed workflow state

A Succeed state ("Type": "Succeed") either terminates a state machine successfully, ends a branch of a Parallel workflow state, or ends an iteration of a Map workflow state. The Succeed state is a useful target for Choice state branches that don't do anything except terminate the state machine.

Because Succeed states are terminal states, they have no Next field, and don't need an End field, as shown in the following example.

"SuccessState": { "Type": "Succeed" }
Output (Optional, JSONata only)

In addition to the common state fields, Succeed states that use JSONata can include an Output field to specify and transform output from the state. When specified, the Output value overrides the state output default.

The output field accepts any JSON value (object, array, string, number, boolean, null). Any string value, including those inside objects or arrays, will be evaluated as JSONata if surrounded by {% %} characters.

Output also accepts a JSONata expression directly, for example:

"Output" : "{% jsonata expression %}"

For more information on JSONata, see Transforming data with JSONata in Step Functions.