Succeed workflow state
A Succeed
state ("Type": "Succeed"
) stops an execution successfully.
The Succeed
state is a useful target for Choice
state branches that don't do
anything but stop the execution.
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"
}
In addition to the common state
fields, Succeed
states that use JSONata can include an Output field.
Output
(Optional, JSONata only)-
Used to specify and transform output from the state. When specified, the 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, see Transforming data with JSONata in Step Functions.