File size: 1,910 Bytes
d8ad0fd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
    "version": "2.0",
    "routeKey": "$default",
    "rawPath": "/my/path",
    "rawQueryString": "parameter1=value1&parameter1=value2&parameter2=value",
    "cookies": [
        "cookie1",
        "cookie2"
    ],
    "headers": {
        "Header1": "value1",
        "Header2": "value2"
    },
    "queryStringParameters": {
        "parameter1": "value1,value2",
        "parameter2": "value"
    },
    "pathParameters": {
        "proxy": "hello/world"
    },
    "requestContext": {
        "routeKey": "$default",
        "accountId": "123456789012",
        "stage": "$default",
        "requestId": "id",
        "authorizer": {
            "iam": {
                "accessKey": "ARIA2ZJZYVUEREEIHAKY",
                "accountId": "1234567890",
                "callerId": "AROA7ZJZYVRE7C3DUXHH6:CognitoIdentityCredentials",
                "cognitoIdentity": {
                    "amr": [
                        "foo"
                    ],
                    "identityId": "us-east-1:3f291106-8703-466b-8f2b-3ecee1ca56ce",
                    "identityPoolId": "us-east-1:4f291106-8703-466b-8f2b-3ecee1ca56ce"
                },
                "principalOrgId": "AwsOrgId",
                "userArn": "arn:aws:iam::1234567890:user/Admin",
                "userId": "AROA2ZJZYVRE7Y3TUXHH6"
            }
        },
        "apiId": "api-id",
        "domainName": "id.execute-api.us-east-1.amazonaws.com",
        "domainPrefix": "id",
        "time": "12/Mar/2020:19:03:58+0000",
        "timeEpoch": 1583348638390,
        "http": {
            "method": "GET",
            "path": "/my/path",
            "protocol": "HTTP/1.1",
            "sourceIp": "192.168.0.1/32",
            "userAgent": "agent"
        }
    },
    "stageVariables": {
        "stageVariable1": "value1",
        "stageVariable2": "value2"
    },
    "body": "{\r\n\t\"a\": 1\r\n}",
    "isBase64Encoded": false
}