github.com/Foodji/aws-lambda-go@v1.20.2/events/testdata/apigw-v2-request-iam.json (about)

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