Lambda Integrations
Lambda support 3 types invocation:
RequestResponse (Default Type)
: Invoke the function synchronously. Keeps the connection open until the function return response or times out. The API response contains response, data and statusEvent
: Invoke the function asynchronously. Returns a response code not the response data. We can configure a DLQ (Dead letter queue) to investigate the failureDryRun
: Validate parameter and verify roles and permissions
We can integrate lambda with API gateway by proxy and non-proxy,
Proxy: Redirect all the params, payloads, headers etc directly to the Lambda from api gateway.
non-proxy: We need to map all the params, payloads etc.