如何使用 AWS CDK 为 Lambda 集成设置 AWS API 网关超时值?
How to set AWS API Gateway timeout value for Lambda Integration using AWS CDK?
我有一个 AWS lambda 网关,集成了 lambda 函数,在 AWS CDK 中定义。我想为特定方法的 lambda 显式设置 API 网关超时,但在官方文档中找不到这样做的方法。我检查了:
LambdaIntegration
has a LambdaIntegrationOptions
and that has a timeout
:
The maximum amount of time an integration will run before it returns without a response.
Must be between 50 milliseconds and 29 seconds.
我有一个 AWS lambda 网关,集成了 lambda 函数,在 AWS CDK 中定义。我想为特定方法的 lambda 显式设置 API 网关超时,但在官方文档中找不到这样做的方法。我检查了:
LambdaIntegration
has a LambdaIntegrationOptions
and that has a timeout
:
The maximum amount of time an integration will run before it returns without a response.
Must be between 50 milliseconds and 29 seconds.