API Reference
    Preparing search index...

    Variable APIGatewayRequestContextV2SchemaConst

    APIGatewayRequestContextV2Schema: ZodObject<
        {
            accountId: ZodString;
            apiId: ZodString;
            authentication: ZodOptional<
                ZodNullable<
                    ZodObject<
                        {
                            clientCert: ZodOptional<
                                ZodObject<
                                    {
                                        clientCertPem: ZodString;
                                        issuerDN: ZodString;
                                        serialNumber: ZodString;
                                        subjectDN: ZodString;
                                        validity: ZodObject<{ notAfter: ...; notBefore: ... }, $strip>;
                                    },
                                    $strip,
                                >,
                            >;
                        },
                        $strip,
                    >,
                >,
            >;
            authorizer: ZodOptional<
                ZodObject<
                    {
                        iam: ZodOptional<
                            ZodObject<
                                {
                                    accessKey: ZodOptional<ZodString>;
                                    accountId: ZodOptional<ZodString>;
                                    callerId: ZodOptional<ZodString>;
                                    cognitoIdentity: ZodOptional<ZodNullable<ZodObject<(...), (...)>>>;
                                    principalOrgId: ZodOptional<ZodNullable<ZodString>>;
                                    userArn: ZodOptional<ZodString>;
                                    userId: ZodOptional<ZodString>;
                                },
                                $strip,
                            >,
                        >;
                        jwt: ZodOptional<
                            ZodObject<
                                {
                                    claims: ZodRecord<ZodString, ZodAny>;
                                    scopes: ZodNullable<ZodArray<ZodString>>;
                                },
                                $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,
    > = ...

    A zod schema for an API Gateway HTTP API Request Context

    {
    "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
    }