January 2019
Intermediate to advanced
490 pages
15h 37m
English
While using proxy integration with API Gateway, API Gateway passes the HTTP request to the Lambda in a particular format. Similarly, API Gateway expects the output in a particular format. Refer to the recipe to see how most of these are used in Java code.
The input format is as follows:
{ "resource": "The resource path", "path": "The path parameter", "httpMethod": "Incoming request's method name" "headers": {request headers} "queryStringParameters": {query string parameters } "pathParameters": {path parameters} "stageVariables": {Available stage variables} "requestContext": {Request context with authorizer-returned key-value pairs} "body": "A JSON string of the request ...Read now
Unlock full access