bappak
bappak

Reputation: 1044

How to set AWS API Gateway timeout value for Lambda Integration using AWS CDK?

I have an AWS lambda gateway, with lambda function integration, defined in AWS CDK. I want to explicitly set API Gateway's timeout for a particular method's lambda, and could not find a way to do so in the official documentation. I checked:

Upvotes: 0

Views: 3113

Answers (1)

luk2302
luk2302

Reputation: 57114

The 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.

Upvotes: 2

Related Questions