Created
July 30, 2020 20:46
-
-
Save gene1wood/f76f7b755fcee85dfc1f50b9c8394360 to your computer and use it in GitHub Desktop.
Example Lambda event from API Gateway in Proxy mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resource": "/{proxy+}", | |
"path": "/post", | |
"httpMethod": "POST", | |
"headers": { | |
"accept": "*/*", | |
"Authorization": "Bearer REDACTED", | |
"content-type": "application/x-www-form-urlencoded", | |
"Host": "myapi.example.com", | |
"User-Agent": "curl/7.58.0", | |
"X-Amzn-Trace-Id": "Root=1-5f2330a4-6a0de1cd0e17c0508d386a64", | |
"X-Forwarded-For": "203.0.113.203", | |
"X-Forwarded-Port": "443", | |
"X-Forwarded-Proto": "https" | |
}, | |
"multiValueHeaders": { | |
"accept": [ | |
"*/*" | |
], | |
"Authorization": [ | |
"Bearer REDACTED" | |
], | |
"content-type": [ | |
"application/x-www-form-urlencoded" | |
], | |
"Host": [ | |
"myapi.example.com" | |
], | |
"User-Agent": [ | |
"curl/7.58.0" | |
], | |
"X-Amzn-Trace-Id": [ | |
"Root=1-5f2330a4-6a0de1cd0e17c0508d386a64" | |
], | |
"X-Forwarded-For": [ | |
"203.0.113.203" | |
], | |
"X-Forwarded-Port": [ | |
"443" | |
], | |
"X-Forwarded-Proto": [ | |
"https" | |
] | |
}, | |
"queryStringParameters": null, | |
"multiValueQueryStringParameters": null, | |
"pathParameters": { | |
"proxy": "post" | |
}, | |
"stageVariables": null, | |
"requestContext": { | |
"resourceId": "vwlzdc", | |
"resourcePath": "/{proxy+}", | |
"httpMethod": "POST", | |
"extendedRequestId": "QgSJzFCwPHcFoZQ=", | |
"requestTime": "30/Jul/2020:20:42:13 +0000", | |
"path": "/post", | |
"accountId": "123456789012", | |
"protocol": "HTTP/1.1", | |
"stage": "examplegoWC4I5I96GDL3", | |
"domainPrefix": "myapi", | |
"requestTimeEpoch": 1596141733001, | |
"requestId": "42a518ee-752d-499f-9fcb-660b21828f01", | |
"identity": { | |
"cognitoIdentityPoolId": null, | |
"accountId": null, | |
"cognitoIdentityId": null, | |
"caller": null, | |
"sourceIp": "203.0.113.203", | |
"principalOrgId": null, | |
"accessKey": null, | |
"cognitoAuthenticationType": null, | |
"cognitoAuthenticationProvider": null, | |
"userArn": null, | |
"userAgent": "curl/7.58.0", | |
"user": null | |
}, | |
"domainName": "myapi.example.com", | |
"apiId": "abcdefghij" | |
}, | |
"body": "{\"foo\": \"bar\"}", | |
"isBase64Encoded": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment