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

     1  {
     2    "resource": "/{proxy+}",
     3    "path": "/hello/world",
     4    "httpMethod": "POST",
     5    "headers": {
     6      "Accept": "*/*",
     7      "Accept-Encoding": "gzip, deflate",
     8      "cache-control": "no-cache",
     9      "CloudFront-Forwarded-Proto": "https",
    10      "CloudFront-Is-Desktop-Viewer": "true",
    11      "CloudFront-Is-Mobile-Viewer": "false",
    12      "CloudFront-Is-SmartTV-Viewer": "false",
    13      "CloudFront-Is-Tablet-Viewer": "false",
    14      "CloudFront-Viewer-Country": "US",
    15      "Content-Type": "application/json",
    16      "headerName": "headerValue",
    17      "Host": "gy415nuibc.execute-api.us-east-1.amazonaws.com",
    18      "Postman-Token": "9f583ef0-ed83-4a38-aef3-eb9ce3f7a57f",
    19      "User-Agent": "PostmanRuntime/2.4.5",
    20      "Via": "1.1 d98420743a69852491bbdea73f7680bd.cloudfront.net (CloudFront)",
    21      "X-Amz-Cf-Id": "pn-PWIJc6thYnZm5P0NMgOUglL1DYtl0gdeJky8tqsg8iS_sgsKD1A==",
    22      "X-Forwarded-For": "54.240.196.186, 54.182.214.83",
    23      "X-Forwarded-Port": "443",
    24      "X-Forwarded-Proto": "https"
    25    },
    26    "multiValueHeaders": {
    27      "Host": [
    28        "*.execute-api.eu-central-1.amazonaws.com"
    29      ],
    30      "Sec-WebSocket-Extensions": [
    31        "permessage-deflate; client_max_window_bits"
    32      ],
    33      "Sec-WebSocket-Key": [
    34        "*"
    35      ],
    36      "Sec-WebSocket-Version": [
    37        "13"
    38      ],
    39      "X-Amzn-Trace-Id": [
    40        "Root=*"
    41      ],
    42      "X-Forwarded-For": [
    43        "*.*.*.*"
    44      ],
    45      "X-Forwarded-Port": [
    46        "443"
    47      ],
    48      "X-Forwarded-Proto": [
    49        "https"
    50      ]
    51    },
    52    "queryStringParameters": {
    53      "name": "me"
    54    },
    55    "multiValueQueryStringParameters": {
    56      "name": ["me"]
    57    },
    58    "pathParameters": {
    59      "proxy": "hello/world"
    60    },
    61    "stageVariables": {
    62      "stageVariableName": "stageVariableValue"
    63    },
    64    "requestContext": {
    65      "accountId": "12345678912",
    66      "resourceId": "roq9wj",
    67      "stage": "testStage",
    68      "requestId": "deef4878-7910-11e6-8f14-25afc3e9ae33",
    69      "identity": {
    70        "cognitoIdentityPoolId": "theCognitoIdentityPoolId",
    71        "accountId": "theAccountId",
    72        "cognitoIdentityId": "theCognitoIdentityId",
    73        "caller": "theCaller",
    74        "apiKey": "theApiKey",
    75        "apiKeyId": "theApiKeyId",
    76        "accessKey": "ANEXAMPLEOFACCESSKEY",
    77        "sourceIp": "192.168.196.186",
    78        "cognitoAuthenticationType": "theCognitoAuthenticationType",
    79        "cognitoAuthenticationProvider": "theCognitoAuthenticationProvider",
    80        "userArn": "theUserArn",
    81        "userAgent": "PostmanRuntime/2.4.5",
    82        "user": "theUser"
    83      },
    84      "resourcePath": "/{proxy+}",
    85      "authorizer": {
    86        "principalId": "admin",
    87        "clientId": 1,
    88        "clientName": "Exata"
    89      },
    90      "httpMethod": "POST",
    91      "apiId": "gy415nuibc",
    92      "connectedAt": 1547230720092,
    93      "connectionId": "TWegAcC4EowCHnA=",
    94      "domainName": "*.execute-api.eu-central-1.amazonaws.com",
    95      "error": "*",
    96      "eventType": "CONNECT",
    97      "extendedRequestId": "TWegAcC4EowCHnA=",
    98      "integrationLatency": "123",
    99      "messageDirection": "IN",
   100      "messageId": null,
   101      "requestTime": "07/Jan/2019:09:20:57 +0000",
   102      "requestTimeEpoch": 0,
   103      "routeKey": "$connect",
   104      "status": "*"
   105    },
   106    "body": "{\r\n\t\"a\": 1\r\n}"
   107  }