Menu
Amazon API Gateway
Developer Guide

Set up Lambda Integrations in API Gateway

You can integrate an API method with a Lambda function using the Lambda proxy integration or the Lambda custom integration.

With the proxy integration, the setup is simple. If your API does not require content encoding or caching, you only need to set the integration's HTTP method to POST, the integration endpoint URI to the ARN of the Lambda function invocation action of a specific Lambda function, and the credential to an IAM role with permissions to allow API Gateway to call the Lambda function on your behalf.

With the custom integration, the setup is more involved. In addition to the proxy integration setup steps, you also specify how the incoming request data is mapped to the integration request and how the resulting integration response data is mapped to the method response.