|
| 1 | +# Generated via `sam local generate-event apigateway aws-proxy` |
| 2 | + |
| 3 | +MOCK_LAMBDA_API_GATEWAY_PROXY_EVENT = { |
| 4 | + "body": "eyJ0ZXN0IjoiYm9keSJ9", |
| 5 | + "resource": "/{proxy+}", |
| 6 | + "path": "/path/to/resource", |
| 7 | + "httpMethod": "POST", |
| 8 | + "isBase64Encoded": True, |
| 9 | + "queryStringParameters": {"foo": "bar"}, |
| 10 | + "multiValueQueryStringParameters": {"foo": ["bar"]}, |
| 11 | + "pathParameters": {"proxy": "/path/to/resource"}, |
| 12 | + "stageVariables": {"baz": "qux"}, |
| 13 | + "headers": { |
| 14 | + "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", |
| 15 | + "Accept-Encoding": "gzip, deflate, sdch", |
| 16 | + "Accept-Language": "en-US,en;q=0.8", |
| 17 | + "Cache-Control": "max-age=0", |
| 18 | + "CloudFront-Forwarded-Proto": "https", |
| 19 | + "CloudFront-Is-Desktop-Viewer": "true", |
| 20 | + "CloudFront-Is-Mobile-Viewer": "false", |
| 21 | + "CloudFront-Is-SmartTV-Viewer": "false", |
| 22 | + "CloudFront-Is-Tablet-Viewer": "false", |
| 23 | + "CloudFront-Viewer-Country": "US", |
| 24 | + "Host": "1234567890.execute-api.us-east-1.amazonaws.com", |
| 25 | + "Upgrade-Insecure-Requests": "1", |
| 26 | + "User-Agent": "Custom User Agent String", |
| 27 | + "Via": "1.1 08f323deadbeefa7af34d5feb414ce27.cloudfront.net (CloudFront)", |
| 28 | + "X-Amz-Cf-Id": "cDehVQoZnx43VYQb9j2-nvCh-9z396Uhbp027Y2JvkCPNLmGJHqlaA==", |
| 29 | + "X-Forwarded-For": "127.0.0.1, 127.0.0.2", |
| 30 | + "X-Forwarded-Port": "443", |
| 31 | + "X-Forwarded-Proto": "https", |
| 32 | + }, |
| 33 | + "multiValueHeaders": { |
| 34 | + "Accept": [ |
| 35 | + "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" |
| 36 | + ], |
| 37 | + "Accept-Encoding": ["gzip, deflate, sdch"], |
| 38 | + "Accept-Language": ["en-US,en;q=0.8"], |
| 39 | + "Cache-Control": ["max-age=0"], |
| 40 | + "CloudFront-Forwarded-Proto": ["https"], |
| 41 | + "CloudFront-Is-Desktop-Viewer": ["true"], |
| 42 | + "CloudFront-Is-Mobile-Viewer": ["false"], |
| 43 | + "CloudFront-Is-SmartTV-Viewer": ["false"], |
| 44 | + "CloudFront-Is-Tablet-Viewer": ["false"], |
| 45 | + "CloudFront-Viewer-Country": ["US"], |
| 46 | + "Host": ["0123456789.execute-api.us-east-1.amazonaws.com"], |
| 47 | + "Upgrade-Insecure-Requests": ["1"], |
| 48 | + "User-Agent": ["Custom User Agent String"], |
| 49 | + "Via": [ |
| 50 | + "1.1 08f323deadbeefa7af34d5feb414ce27.cloudfront.net (CloudFront)" |
| 51 | + ], |
| 52 | + "X-Amz-Cf-Id": [ |
| 53 | + "cDehVQoZnx43VYQb9j2-nvCh-9z396Uhbp027Y2JvkCPNLmGJHqlaA==" |
| 54 | + ], |
| 55 | + "X-Forwarded-For": ["127.0.0.1, 127.0.0.2"], |
| 56 | + "X-Forwarded-Port": ["443"], |
| 57 | + "X-Forwarded-Proto": ["https"], |
| 58 | + }, |
| 59 | + "requestContext": { |
| 60 | + "accountId": "123456789012", |
| 61 | + "resourceId": "123456", |
| 62 | + "stage": "prod", |
| 63 | + "requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef", |
| 64 | + "requestTime": "09/Apr/2015:12:34:56 +0000", |
| 65 | + "requestTimeEpoch": 1428582896000, |
| 66 | + "identity": { |
| 67 | + "cognitoIdentityPoolId": None, |
| 68 | + "accountId": None, |
| 69 | + "cognitoIdentityId": None, |
| 70 | + "caller": None, |
| 71 | + "accessKey": None, |
| 72 | + "sourceIp": "127.0.0.1", |
| 73 | + "cognitoAuthenticationType": None, |
| 74 | + "cognitoAuthenticationProvider": None, |
| 75 | + "userArn": None, |
| 76 | + "userAgent": "Custom User Agent String", |
| 77 | + "user": None, |
| 78 | + }, |
| 79 | + "path": "/prod/path/to/resource", |
| 80 | + "resourcePath": "/{proxy+}", |
| 81 | + "httpMethod": "POST", |
| 82 | + "apiId": "1234567890", |
| 83 | + "protocol": "HTTP/1.1", |
| 84 | + }, |
| 85 | +} |
0 commit comments