API Reference
    Preparing search index...
    APIGatewayProxyEventV2Schema: ZodObject<
        {
            body: ZodOptional<ZodString>;
            cookies: ZodOptional<ZodArray<ZodString>>;
            headers: ZodRecord<ZodString, ZodString>;
            isBase64Encoded: ZodBoolean;
            pathParameters: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodString>>>;
            queryStringParameters: ZodOptional<ZodRecord<ZodString, ZodString>>;
            rawPath: ZodString;
            rawQueryString: ZodString;
            requestContext: ZodObject<
                {
                    accountId: ZodString;
                    apiId: ZodString;
                    authentication: ZodOptional<
                        ZodNullable<
                            ZodObject<
                                {
                                    clientCert: ZodOptional<
                                        ZodObject<
                                            {
                                                clientCertPem: ...;
                                                issuerDN: ...;
                                                serialNumber: ...;
                                                subjectDN: ...;
                                                validity: ...;
                                            },
                                            $strip,
                                        >,
                                    >;
                                },
                                $strip,
                            >,
                        >,
                    >;
                    authorizer: ZodOptional<
                        ZodObject<
                            {
                                iam: ZodOptional<
                                    ZodObject<
                                        {
                                            accessKey: ZodOptional<(...)>;
                                            accountId: ZodOptional<(...)>;
                                            callerId: ZodOptional<(...)>;
                                            cognitoIdentity: ZodOptional<(...)>;
                                            principalOrgId: ZodOptional<(...)>;
                                            userArn: ZodOptional<(...)>;
                                            userId: ZodOptional<(...)>;
                                        },
                                        $strip,
                                    >,
                                >;
                                jwt: ZodOptional<
                                    ZodObject<
                                        { claims: ZodRecord<(...), (...)>; scopes: ZodNullable<(...)> },
                                        $strip,
                                    >,
                                >;
                                lambda: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodAny>>>;
                            },
                            $strip,
                        >,
                    >;
                    domainName: ZodString;
                    domainPrefix: ZodString;
                    http: ZodObject<
                        {
                            method: ZodEnum<
                                {
                                    DELETE: "DELETE";
                                    GET: "GET";
                                    HEAD: "HEAD";
                                    OPTIONS: "OPTIONS";
                                    PATCH: "PATCH";
                                    POST: "POST";
                                    PUT: "PUT";
                                },
                            >;
                            path: ZodString;
                            protocol: ZodString;
                            sourceIp: ZodIPv4;
                            userAgent: ZodString;
                        },
                        $strip,
                    >;
                    requestId: ZodString;
                    routeKey: ZodString;
                    stage: ZodString;
                    time: ZodString;
                    timeEpoch: ZodNumber;
                },
                $strip,
            >;
            routeKey: ZodString;
            stageVariables: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodString>>>;
            version: ZodString;
        },
        $strip,
    > = ...

    A zod schema for an API Gateway HTTP API Proxy event

    {
    "version": "2.0",
    "routeKey": "$default",
    "rawPath": "/my/path",
    "rawQueryString": "parameter1=value1&parameter1=value2&parameter2=value",
    "cookies": ["cookie1", "cookie2"],
    "headers": {
    "header1": "value1",
    "header2": "value1,value2"
    },
    "queryStringParameters": {
    "parameter1": "value1,value2",
    "parameter2": "value"
    },
    "requestContext": {
    "accountId": "123456789012",
    "apiId": "api-id",
    "authentication": {}
    "domainName": "id.execute-api.us-east-1.amazonaws.com",
    "domainPrefix": "id",
    "http": {
    "method": "POST",
    "path": "/my/path",
    "protocol": "HTTP/1.1",
    "sourceIp": "...",
    "userAgent": "..."
    },
    "requestId": "...",
    "routeKey": "$default",
    "stage": "$default",
    "time": "12/Mar/2020:19:03:58 +0000",
    "timeEpoch": 1583348638390
    },
    "body": "Hello from Lambda",
    "pathParameters": {},
    "isBase64Encoded": false,
    "stageVariables": {}
    }