0

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:

2
  • Do you mean set the timeout value for a Lambda function? Commented Apr 23, 2021 at 17:21
  • No, not for the lambda function. I mean for the API Gateway itself. See Integration Timeout here: docs.aws.amazon.com/apigateway/latest/developerguide/…. Commented Apr 23, 2021 at 17:23

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.