I keep a collection of reusable AWS stateMachine configuration fragments in an external JSON file to promote a high-degree of code-reuse. For example, I can add retry and catch blocks from this external json with the references in yellow highlighter below:
My inquiry relates to the “Payload” reference highlighted in green which extracts the configuration value from “SessionResponse” property from the “model.json” file.
I would like to make the “SessionResponse” more configurable to allow the jsonPath to be passed in from the external file reference. In this example, the path is “$”. I would like to be able to pass in different jsonPath values to override or set them where the static “$” path is set.
Is it possible for one to do this? If so, what is the syntax?