1回答
- 新しい順
- 投票が多い順
- コメントが多い順
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.
関連するコンテンツ
- AWS公式更新しました 1年前