API Reference
    Preparing search index...
    KinesisDataStreamSchema: ZodObject<
        {
            Records: ZodArray<
                ZodObject<
                    {
                        awsRegion: ZodString;
                        eventID: ZodString;
                        eventName: ZodLiteral<"aws:kinesis:record">;
                        eventSource: ZodLiteral<"aws:kinesis">;
                        eventSourceARN: ZodString;
                        eventVersion: ZodString;
                        invokeIdentityArn: ZodString;
                        kinesis: ZodObject<
                            {
                                approximateArrivalTimestamp: ZodNumber;
                                data: ZodEffects<ZodString, any, string>;
                                kinesisSchemaVersion: ZodString;
                                partitionKey: ZodString;
                                sequenceNumber: ZodString;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                approximateArrivalTimestamp: number;
                                data?: any;
                                kinesisSchemaVersion: string;
                                partitionKey: string;
                                sequenceNumber: string;
                            },
                            {
                                approximateArrivalTimestamp: number;
                                data: string;
                                kinesisSchemaVersion: string;
                                partitionKey: string;
                                sequenceNumber: string;
                            },
                        >;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        awsRegion: string;
                        eventID: string;
                        eventName: "aws:kinesis:record";
                        eventSource: "aws:kinesis";
                        eventSourceARN: string;
                        eventVersion: string;
                        invokeIdentityArn: string;
                        kinesis: {
                            approximateArrivalTimestamp: number;
                            data?: any;
                            kinesisSchemaVersion: string;
                            partitionKey: string;
                            sequenceNumber: string;
                        };
                    },
                    {
                        awsRegion: string;
                        eventID: string;
                        eventName: "aws:kinesis:record";
                        eventSource: "aws:kinesis";
                        eventSourceARN: string;
                        eventVersion: string;
                        invokeIdentityArn: string;
                        kinesis: {
                            approximateArrivalTimestamp: number;
                            data: string;
                            kinesisSchemaVersion: string;
                            partitionKey: string;
                            sequenceNumber: string;
                        };
                    },
                >,
                "many",
            >;
        },
        "strip",
        ZodTypeAny,
        {
            Records: {
                awsRegion: string;
                eventID: string;
                eventName: "aws:kinesis:record";
                eventSource: "aws:kinesis";
                eventSourceARN: string;
                eventVersion: string;
                invokeIdentityArn: string;
                kinesis: {
                    approximateArrivalTimestamp: number;
                    data?: any;
                    kinesisSchemaVersion: string;
                    partitionKey: string;
                    sequenceNumber: string;
                };
            }[];
        },
        {
            Records: {
                awsRegion: string;
                eventID: string;
                eventName: "aws:kinesis:record";
                eventSource: "aws:kinesis";
                eventSourceARN: string;
                eventVersion: string;
                invokeIdentityArn: string;
                kinesis: {
                    approximateArrivalTimestamp: number;
                    data: string;
                    kinesisSchemaVersion: string;
                    partitionKey: string;
                    sequenceNumber: string;
                };
            }[];
        },
    > = ...

    Zod schema for Kinesis Data Stream event

    {
    "Records": [
    {
    "kinesis": {
    "kinesisSchemaVersion": "1.0",
    "partitionKey": "1",
    "sequenceNumber": "49590338271490256608559692538361571095921575989136588898",
    "data": "SGVsbG8sIHRoaXMgaXMgYSB0ZXN0Lg==",
    "approximateArrivalTimestamp": 1545084650.987
    },
    "eventSource": "aws:kinesis",
    "eventVersion": "1.0",
    "eventID": "shardId-000000000006:49590338271490256608559692538361571095921575989136588898",
    "eventName": "aws:kinesis:record",
    "invokeIdentityArn": "arn:aws:iam::123456789012:role/lambda-role",
    "awsRegion": "us-east-2",
    "eventSourceARN": "arn:aws:kinesis:us-east-2:123456789012:stream/lambda-stream"
    },
    {
    "kinesis": {
    "kinesisSchemaVersion": "1.0",
    "partitionKey": "1",
    "sequenceNumber": "49590338271490256608559692540925702759324208523137515618",
    "data": "VGhpcyBpcyBvbmx5IGEgdGVzdC4=",
    "approximateArrivalTimestamp": 1545084711.166
    },
    "eventSource": "aws:kinesis",
    "eventVersion": "1.0",
    "eventID": "shardId-000000000006:49590338271490256608559692540925702759324208523137515618",
    "eventName": "aws:kinesis:record",
    "invokeIdentityArn": "arn:aws:iam::123456789012:role/lambda-role",
    "awsRegion": "us-east-2",
    "eventSourceARN": "arn:aws:kinesis:us-east-2:123456789012:stream/lambda-stream"
    }
    ]
    }