在 AWS API 网关控制台中,设置后端 Lambda 函数异步调用的选项

Where in AWS API Gateway Console is the option to Set up asynchronous invocation of the backend Lambda function

具有类似标题的较早帖子未根据当前(2021 年 3 月)AWS API 网关控制台回答问题。

AWS 文档说“在集成请求中,添加静态值为 'Event' 的 X-Amz-Invocation-Type header。”

但是在 API 网关控制台上,在岩石下查看了整整一个小时后,我没有在任何地方看到“集成请求”?

您找不到 "Integration Request",因为这只是 REST API 的 属性,而不是 HTTP API。

具体来说,如果您想管理 headers 的 lambda 调用,您必须使用 Lambda custom integration, not the more commonly used proxy integration