internal/testdata/events/apigw-v2.json

{
  "version": "2.0",
  "routeKey": "GET /hello",
  "rawPath": "/hello",
  "rawQueryString": "name=alice",
  "cookies": ["session=abcdef"],
  "headers": {
    "accept": "application/json",
    "content-length": "0",
    "host": "example.execute-api.us-east-1.amazonaws.com",
    "user-agent": "curl/7.79.1",
    "x-amzn-trace-id": "Root=1-5759e988-bd862e3fe1be46a994272793;Parent=53995c3f42cd8ad8;Sampled=1",
    "x-forwarded-for": "192.0.2.1",
    "x-forwarded-port": "443",
    "x-forwarded-proto": "https"
  },
  "queryStringParameters": {
    "name": "alice"
  },
  "requestContext": {
    "accountId": "123456789012",
    "apiId": "abcd1234",
    "domainName": "example.execute-api.us-east-1.amazonaws.com",
    "domainPrefix": "example",
    "http": {
      "method": "GET",
      "path": "/hello",
      "protocol": "HTTP/1.1",
      "sourceIp": "192.0.2.1",
      "userAgent": "curl/7.79.1"
    },
    "requestId": "JKJaXmPLvHcESHA=",
    "routeKey": "GET /hello",
    "stage": "$default",
    "time": "10/Mar/2023:22:22:22 +0000",
    "timeEpoch": 1678486942000
  },
  "pathParameters": {},
  "stageVariables": {},
  "body": "",
  "isBase64Encoded": false
}