By default, the AWS Lambda invoke action produces one variable per top-level key in the Lambda response payload.
For example, if the response payload looks like this:
responsePayload = {
"name": "Saanvi",
"location": "Seattle",
"department": {
"company": "Amazon",
"team": "AWS"
}
}
...then the action would generate the following variables.
Key | Value |
---|---|
name |
Saanvi |
location |
Seattle |
department |
{"company": "Amazon", "team": "AWS"} |
Note
You can change which variables are generated using the ResponseFilters
YAML
property. For more information, see the ResponseFilters in the 'AWS Lambda invoke' action YAML.
The variables produced and set by the 'AWS Lambda invoke' action at run time are known as predefined variables.
For information about referencing these variables in a workflow, see Using predefined variables.