1 Answer
- Newest
- Most votes
- Most comments
0
If you return the count in a header from the Lambda function you can just reference it using integration.response.header.header-name.
To return a header from the Lambda function just return something like this:
{
"statusCode": 200,
"headers": {
"header1Name": "header1Value",
"header2Name": "header2Value",
},
"body": "...",
}
For more information see here. You will see that it describes that only headers from the backend can be mapped to headers in the response.
