API Reference
    Preparing search index...
    DynamoDBStreamSchema: ZodObject<
        {
            Records: ZodArray<
                ZodObject<
                    {
                        awsRegion: ZodString;
                        dynamodb: ZodEffects<
                            ZodObject<
                                {
                                    ApproximateCreationDateTime: ZodOptional<ZodNumber>;
                                    Keys: ZodRecord<ZodString, ZodRecord<ZodString, ZodAny>>;
                                    NewImage: ZodOptional<ZodRecord<ZodString, ZodAny>>;
                                    OldImage: ZodOptional<ZodRecord<ZodString, ZodAny>>;
                                    SequenceNumber: ZodString;
                                    SizeBytes: ZodNumber;
                                    StreamViewType: ZodEnum<
                                        ["NEW_IMAGE", "OLD_IMAGE", "NEW_AND_OLD_IMAGES", "KEYS_ONLY"],
                                    >;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    ApproximateCreationDateTime?: number;
                                    Keys: Record<string, Record<string, any>>;
                                    NewImage?: Record<string, any>;
                                    OldImage?: Record<string, any>;
                                    SequenceNumber: string;
                                    SizeBytes: number;
                                    StreamViewType:
                                        | "NEW_IMAGE"
                                        | "OLD_IMAGE"
                                        | "NEW_AND_OLD_IMAGES"
                                        | "KEYS_ONLY";
                                },
                                {
                                    ApproximateCreationDateTime?: number;
                                    Keys: Record<string, Record<string, any>>;
                                    NewImage?: Record<string, any>;
                                    OldImage?: Record<string, any>;
                                    SequenceNumber: string;
                                    SizeBytes: number;
                                    StreamViewType:
                                        | "NEW_IMAGE"
                                        | "OLD_IMAGE"
                                        | "NEW_AND_OLD_IMAGES"
                                        | "KEYS_ONLY";
                                },
                            >,
                            {
                                ApproximateCreationDateTime?: number;
                                Keys: Record<string, Record<string, any>>;
                                NewImage?: Record<string, any>;
                                OldImage?: Record<string, any>;
                                SizeBytes: number;
                            },
                            {
                                ApproximateCreationDateTime?: number;
                                Keys: Record<string, Record<string, any>>;
                                NewImage?: Record<string, any>;
                                OldImage?: Record<string, any>;
                                SequenceNumber: string;
                                SizeBytes: number;
                                StreamViewType:
                                    | "NEW_IMAGE"
                                    | "OLD_IMAGE"
                                    | "NEW_AND_OLD_IMAGES"
                                    | "KEYS_ONLY";
                            },
                        >;
                        eventID: ZodString;
                        eventName: ZodEnum<["INSERT", "MODIFY", "REMOVE"]>;
                        eventSource: ZodLiteral<"aws:dynamodb">;
                        eventSourceARN: ZodString;
                        eventVersion: ZodString;
                        userIdentity: ZodOptional<
                            ZodObject<
                                {
                                    principalId: ZodLiteral<"dynamodb.amazonaws.com">;
                                    type: ZodEnum<["Service"]>;
                                },
                                "strip",
                                ZodTypeAny,
                                { principalId: "dynamodb.amazonaws.com"; type: "Service" },
                                { principalId: "dynamodb.amazonaws.com"; type: "Service" },
                            >,
                        >;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        awsRegion: string;
                        dynamodb: {
                            ApproximateCreationDateTime?: number;
                            Keys: Record<string, Record<string, any>>;
                            NewImage?: Record<string, any>;
                            OldImage?: Record<string, any>;
                            SizeBytes: number;
                        };
                        eventID: string;
                        eventName: "INSERT"
                        | "MODIFY"
                        | "REMOVE";
                        eventSource: "aws:dynamodb";
                        eventSourceARN: string;
                        eventVersion: string;
                        userIdentity?: {
                            principalId: "dynamodb.amazonaws.com";
                            type: "Service";
                        };
                    },
                    {
                        awsRegion: string;
                        dynamodb: {
                            ApproximateCreationDateTime?: number;
                            Keys: Record<string, Record<string, any>>;
                            NewImage?: Record<string, any>;
                            OldImage?: Record<string, any>;
                            SequenceNumber: string;
                            SizeBytes: number;
                            StreamViewType:
                                | "NEW_IMAGE"
                                | "OLD_IMAGE"
                                | "NEW_AND_OLD_IMAGES"
                                | "KEYS_ONLY";
                        };
                        eventID: string;
                        eventName: "INSERT"
                        | "MODIFY"
                        | "REMOVE";
                        eventSource: "aws:dynamodb";
                        eventSourceARN: string;
                        eventVersion: string;
                        userIdentity?: {
                            principalId: "dynamodb.amazonaws.com";
                            type: "Service";
                        };
                    },
                >,
                "many",
            >;
        },
        "strip",
        ZodTypeAny,
        {
            Records: {
                awsRegion: string;
                dynamodb: {
                    ApproximateCreationDateTime?: number;
                    Keys: Record<string, Record<string, any>>;
                    NewImage?: Record<string, any>;
                    OldImage?: Record<string, any>;
                    SizeBytes: number;
                };
                eventID: string;
                eventName: "INSERT"
                | "MODIFY"
                | "REMOVE";
                eventSource: "aws:dynamodb";
                eventSourceARN: string;
                eventVersion: string;
                userIdentity?: { principalId: "dynamodb.amazonaws.com"; type: "Service" };
            }[];
        },
        {
            Records: {
                awsRegion: string;
                dynamodb: {
                    ApproximateCreationDateTime?: number;
                    Keys: Record<string, Record<string, any>>;
                    NewImage?: Record<string, any>;
                    OldImage?: Record<string, any>;
                    SequenceNumber: string;
                    SizeBytes: number;
                    StreamViewType:
                        | "NEW_IMAGE"
                        | "OLD_IMAGE"
                        | "NEW_AND_OLD_IMAGES"
                        | "KEYS_ONLY";
                };
                eventID: string;
                eventName: "INSERT"
                | "MODIFY"
                | "REMOVE";
                eventSource: "aws:dynamodb";
                eventSourceARN: string;
                eventVersion: string;
                userIdentity?: { principalId: "dynamodb.amazonaws.com"; type: "Service" };
            }[];
        },
    > = ...

    Zod schema for Amazon DynamoDB Stream event.

    {
    "Records": [
    {
    "eventID": "1",
    "eventVersion": "1.0",
    "dynamodb": {
    "ApproximateCreationDateTime": 1693997155.0,
    "Keys": {
    "Id": {
    "N": "101"
    }
    },
    "NewImage": {
    "Message": {
    "S": "New item!"
    },
    "Id": {
    "N": "101"
    }
    },
    "StreamViewType": "NEW_AND_OLD_IMAGES",
    "SequenceNumber": "111",
    "SizeBytes": 26
    },
    "awsRegion": "us-west-2",
    "eventName": "INSERT",
    "eventSourceARN": "eventsource_arn",
    "eventSource": "aws:dynamodb"
    },
    {
    "eventID": "2",
    "eventVersion": "1.0",
    "dynamodb": {
    "OldImage": {
    "Message": {
    "S": "New item!"
    },
    "Id": {
    "N": "101"
    }
    },
    "SequenceNumber": "222",
    "Keys": {
    "Id": {
    "N": "101"
    }
    },
    "SizeBytes": 59,
    "NewImage": {
    "Message": {
    "S": "This item has changed"
    },
    "Id": {
    "N": "101"
    }
    },
    "StreamViewType": "NEW_AND_OLD_IMAGES"
    },
    "awsRegion": "us-west-2",
    "eventName": "MODIFY",
    "eventSourceARN": "source_arn",
    "eventSource": "aws:dynamodb"
    }
    ]
    }