验证 API Gateway 的 HTTP API 传入负载

问题描述

AWS API Gateway 是否可以在执行 Lambda 函数之前验证 HTTP API 的传入负载,从而节省在输入无效时调用 Lambda 函数的费用?

我知道较旧的 REST API's can 的输入已通过 API Gateway 验证,但我使用 HTTP API 是因为它们更轻巧且 71% less expensive 并且非常适合我的需求。

非常欢迎任何建议/解决方法

解决方法

不,它不可能Only REST api 支持验证:

enter image description here