Filtering state output using OutputPath in Step Functions workflows - AWS Step Functions

Filtering state output using OutputPath in Step Functions workflows

With OutputPath you can select a portion of the state output to pass to the next state. With this approach, you can filter out unwanted information, and pass only the portion of JSON that you need.

If you don't specify an OutputPath the default value is $. This passes the entire JSON node (determined by the state input, the task result, and ResultPath) to the next state.

For more information, see the following: