Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

'AWS Lambda invoke' variables

Focus mode
'AWS Lambda invoke' variables - Amazon CodeCatalyst

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.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.