VpcLatticeEvent: {
    body: string;
    headers: Record<string, string>;
    is_base64_encoded: boolean;
    method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
    query_string_parameters: Record<string, string>;
    raw_path: string;
}

Zod schema for VPC Lattice event

Type declaration

  • body: string
  • headers: Record<string, string>
  • is_base64_encoded: boolean
  • method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS"
  • query_string_parameters: Record<string, string>
  • raw_path: string
{
"raw_path": "/testpath",
"method": "GET",
"headers": {
"user_agent": "curl/7.64.1",
"x-forwarded-for": "10.213.229.10",
"host": "test-lambda-service-3908sdf9u3u.dkfjd93.vpc-lattice-svcs.us-east-2.on.aws",
"accept": "*/*",
},
"query_string_parameters": {
"order-id": "1"
},
"body": "eyJ0ZXN0IjogImV2ZW50In0=",
"is_base64_encoded": true
}