API Reference
    Preparing search index...
    VpcLatticeV2Schema: ZodObject<
        {
            body: ZodOptional<ZodString>;
            headers: ZodRecord<ZodString, ZodString>;
            isBase64Encoded: ZodOptional<ZodBoolean>;
            method: ZodEnum<
                ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"],
            >;
            path: ZodString;
            queryStringParameters: ZodOptional<ZodRecord<ZodString, ZodString>>;
            requestContext: ZodObject<
                {
                    identity: ZodObject<
                        {
                            principal: ZodOptional<ZodString>;
                            principalOrgId: ZodOptional<ZodString>;
                            sessionName: ZodOptional<ZodString>;
                            sourceVpcArn: ZodOptional<ZodString>;
                            type: ZodOptional<ZodString>;
                            X509IssuerOu: ZodOptional<ZodString>;
                            x509SanDns: ZodOptional<ZodString>;
                            X509SanNameCn: ZodOptional<ZodString>;
                            x509SanUri: ZodOptional<ZodString>;
                            X509SubjectCn: ZodOptional<ZodString>;
                        },
                        "strip",
                        ZodTypeAny,
                        {
                            principal?: string;
                            principalOrgId?: string;
                            sessionName?: string;
                            sourceVpcArn?: string;
                            type?: string;
                            X509IssuerOu?: string;
                            x509SanDns?: string;
                            X509SanNameCn?: string;
                            x509SanUri?: string;
                            X509SubjectCn?: string;
                        },
                        {
                            principal?: string;
                            principalOrgId?: string;
                            sessionName?: string;
                            sourceVpcArn?: string;
                            type?: string;
                            X509IssuerOu?: string;
                            x509SanDns?: string;
                            X509SanNameCn?: string;
                            x509SanUri?: string;
                            X509SubjectCn?: string;
                        },
                    >;
                    region: ZodString;
                    serviceArn: ZodString;
                    serviceNetworkArn: ZodString;
                    targetGroupArn: ZodString;
                    timeEpoch: ZodString;
                },
                "strip",
                ZodTypeAny,
                {
                    identity: {
                        principal?: string;
                        principalOrgId?: string;
                        sessionName?: string;
                        sourceVpcArn?: string;
                        type?: string;
                        X509IssuerOu?: string;
                        x509SanDns?: string;
                        X509SanNameCn?: string;
                        x509SanUri?: string;
                        X509SubjectCn?: string;
                    };
                    region: string;
                    serviceArn: string;
                    serviceNetworkArn: string;
                    targetGroupArn: string;
                    timeEpoch: string;
                },
                {
                    identity: {
                        principal?: string;
                        principalOrgId?: string;
                        sessionName?: string;
                        sourceVpcArn?: string;
                        type?: string;
                        X509IssuerOu?: string;
                        x509SanDns?: string;
                        X509SanNameCn?: string;
                        x509SanUri?: string;
                        X509SubjectCn?: string;
                    };
                    region: string;
                    serviceArn: string;
                    serviceNetworkArn: string;
                    targetGroupArn: string;
                    timeEpoch: string;
                },
            >;
            version: ZodString;
        },
        "strip",
        ZodTypeAny,
        {
            body?: string;
            headers: Record<string, string>;
            isBase64Encoded?: boolean;
            method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
            path: string;
            queryStringParameters?: Record<string, string>;
            requestContext: {
                identity: {
                    principal?: string;
                    principalOrgId?: string;
                    sessionName?: string;
                    sourceVpcArn?: string;
                    type?: string;
                    X509IssuerOu?: string;
                    x509SanDns?: string;
                    X509SanNameCn?: string;
                    x509SanUri?: string;
                    X509SubjectCn?: string;
                };
                region: string;
                serviceArn: string;
                serviceNetworkArn: string;
                targetGroupArn: string;
                timeEpoch: string;
            };
            version: string;
        },
        {
            body?: string;
            headers: Record<string, string>;
            isBase64Encoded?: boolean;
            method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
            path: string;
            queryStringParameters?: Record<string, string>;
            requestContext: {
                identity: {
                    principal?: string;
                    principalOrgId?: string;
                    sessionName?: string;
                    sourceVpcArn?: string;
                    type?: string;
                    X509IssuerOu?: string;
                    x509SanDns?: string;
                    X509SanNameCn?: string;
                    x509SanUri?: string;
                    X509SubjectCn?: string;
                };
                region: string;
                serviceArn: string;
                serviceNetworkArn: string;
                targetGroupArn: string;
                timeEpoch: string;
            };
            version: string;
        },
    > = ...

    Zod schema for VpcLatticeV2 event

    {
    "version": "2.0",
    "path": "/newpath",
    "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": "*]/*"
    },
    "queryStringParameters": {
    "order-id": "1"
    },
    "body": "{\"message\": \"Hello from Lambda!\"}",
    "isBase64Encoded": false,
    "requestContext": {
    "serviceNetworkArn": "arn:aws:vpc-lattice:us-east-2:123456789012:servicenetwork/sn-0bf3f2882e9cc805a",
    "serviceArn": "arn:aws:vpc-lattice:us-east-2:123456789012:service/svc-0a40eebed65f8d69c",
    "targetGroupArn": "arn:aws:vpc-lattice:us-east-2:123456789012:targetgroup/tg-6d0ecf831eec9f09",
    "identity": {
    "sourceVpcArn": "arn:aws:ec2:region:123456789012:vpc/vpc-0b8276c84697e7339",
    "type": "AWS_IAM",
    "principal": "arn:aws:sts::123456789012:assumed-role/example-role/057d00f8b51257ba3c853a0f248943cf",
    "sessionName": "057d00f8b51257ba3c853a0f248943cf",
    "x509SanDns": "example.com"
    },
    "region": "us-east-2",
    "timeEpoch": "1696331543569073"
    }
    }