ExitAmazon API Gateway: REST API integration mappings1 / 9
Explanation

Choose where adaptation happens

How proxy and custom integrations control request and response adaptation between REST APIs and legacy backends. · advanced

A REST API can expose a client-facing contract that differs from a legacy backend's interface. The integration choice determines where that difference is handled. With HTTP proxy integration, API Gateway passes the request to the HTTP endpoint and its response back to the client, without requiring you to configure integration requests and responses. With HTTP custom integration, you configure both sides: method request to integration request, then integration response to method response.

Lambda proxy integration also avoids that custom mapping configuration. API Gateway supplies the incoming request as function input; function code parses headers, path variables, query strings, and the body. This places request interpretation in code rather than configured integration mappings.

Custom integrations make configured adaptation reusable. HTTP custom integration supports reuse of mapping templates across endpoints; Lambda custom integration supports reuse where endpoints have similar input and output format requirements. The trade-off is more integration configuration rather than simply forwarding the interface or interpreting the proxy input in function code.

IntegrationRequest handlingConfigured adaptation
HTTP proxyForward to HTTP backendNo custom mapping pipeline
HTTP customMap method to backendRequest and response mappings
Lambda proxyFunction parses supplied inputAdaptation in function code
Lambda customConfigured input/output formatsReusable mapping templates