API Reference
    Preparing search index...
    S3Schema: ZodObject<
        {
            Records: ZodArray<
                ZodObject<
                    {
                        awsRegion: ZodString;
                        eventName: ZodString;
                        eventSource: ZodLiteral<"aws:s3">;
                        eventTime: ZodString;
                        eventVersion: ZodString;
                        glacierEventData: ZodOptional<
                            ZodObject<
                                {
                                    restoreEventData: ZodObject<
                                        {
                                            lifecycleRestorationExpiryTime: ZodString;
                                            lifecycleRestoreStorageClass: ZodString;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            lifecycleRestorationExpiryTime: string;
                                            lifecycleRestoreStorageClass: string;
                                        },
                                        {
                                            lifecycleRestorationExpiryTime: string;
                                            lifecycleRestoreStorageClass: string;
                                        },
                                    >;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    restoreEventData: {
                                        lifecycleRestorationExpiryTime: string;
                                        lifecycleRestoreStorageClass: string;
                                    };
                                },
                                {
                                    restoreEventData: {
                                        lifecycleRestorationExpiryTime: string;
                                        lifecycleRestoreStorageClass: string;
                                    };
                                },
                            >,
                        >;
                        requestParameters: ZodObject<
                            {
                                sourceIPAddress: ZodUnion<
                                    [ZodString, ZodLiteral<"s3.amazonaws.com">],
                                >;
                            },
                            "strip",
                            ZodTypeAny,
                            { sourceIPAddress: string },
                            { sourceIPAddress: string },
                        >;
                        responseElements: ZodObject<
                            { "x-amz-id-2": ZodString; "x-amz-request-id": ZodString },
                            "strip",
                            ZodTypeAny,
                            { "x-amz-id-2": string; "x-amz-request-id": string },
                            { "x-amz-id-2": string; "x-amz-request-id": string },
                        >;
                        s3: ZodObject<
                            {
                                bucket: ZodObject<
                                    {
                                        arn: ZodString;
                                        name: ZodString;
                                        ownerIdentity: ZodObject<
                                            { principalId: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { principalId: ... },
                                            { principalId: ... },
                                        >;
                                    },
                                    "strip",
                                    ZodTypeAny,
                                    {
                                        arn: string;
                                        name: string;
                                        ownerIdentity: { principalId: string };
                                    },
                                    {
                                        arn: string;
                                        name: string;
                                        ownerIdentity: { principalId: string };
                                    },
                                >;
                                configurationId: ZodString;
                                object: ZodObject<
                                    {
                                        eTag: ZodOptional<ZodString>;
                                        key: ZodString;
                                        sequencer: ZodOptional<ZodString>;
                                        size: ZodOptional<ZodNumber>;
                                        urlDecodedKey: ZodOptional<ZodString>;
                                        versionId: ZodOptional<ZodString>;
                                    },
                                    "strip",
                                    ZodTypeAny,
                                    {
                                        eTag?: string;
                                        key: string;
                                        sequencer?: string;
                                        size?: number;
                                        urlDecodedKey?: string;
                                        versionId?: string;
                                    },
                                    {
                                        eTag?: string;
                                        key: string;
                                        sequencer?: string;
                                        size?: number;
                                        urlDecodedKey?: string;
                                        versionId?: string;
                                    },
                                >;
                                s3SchemaVersion: ZodString;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                bucket: {
                                    arn: string;
                                    name: string;
                                    ownerIdentity: { principalId: string };
                                };
                                configurationId: string;
                                object: {
                                    eTag?: string;
                                    key: string;
                                    sequencer?: string;
                                    size?: number;
                                    urlDecodedKey?: string;
                                    versionId?: string;
                                };
                                s3SchemaVersion: string;
                            },
                            {
                                bucket: {
                                    arn: string;
                                    name: string;
                                    ownerIdentity: { principalId: string };
                                };
                                configurationId: string;
                                object: {
                                    eTag?: string;
                                    key: string;
                                    sequencer?: string;
                                    size?: number;
                                    urlDecodedKey?: string;
                                    versionId?: string;
                                };
                                s3SchemaVersion: string;
                            },
                        >;
                        userIdentity: ZodObject<
                            { principalId: ZodString },
                            "strip",
                            ZodTypeAny,
                            { principalId: string },
                            { principalId: string },
                        >;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        awsRegion: string;
                        eventName: string;
                        eventSource: "aws:s3";
                        eventTime: string;
                        eventVersion: string;
                        glacierEventData?: {
                            restoreEventData: {
                                lifecycleRestorationExpiryTime: string;
                                lifecycleRestoreStorageClass: string;
                            };
                        };
                        requestParameters: { sourceIPAddress: string };
                        responseElements: { "x-amz-id-2": string; "x-amz-request-id": string };
                        s3: {
                            bucket: {
                                arn: string;
                                name: string;
                                ownerIdentity: { principalId: string };
                            };
                            configurationId: string;
                            object: {
                                eTag?: string;
                                key: string;
                                sequencer?: string;
                                size?: number;
                                urlDecodedKey?: string;
                                versionId?: string;
                            };
                            s3SchemaVersion: string;
                        };
                        userIdentity: { principalId: string };
                    },
                    {
                        awsRegion: string;
                        eventName: string;
                        eventSource: "aws:s3";
                        eventTime: string;
                        eventVersion: string;
                        glacierEventData?: {
                            restoreEventData: {
                                lifecycleRestorationExpiryTime: string;
                                lifecycleRestoreStorageClass: string;
                            };
                        };
                        requestParameters: { sourceIPAddress: string };
                        responseElements: { "x-amz-id-2": string; "x-amz-request-id": string };
                        s3: {
                            bucket: {
                                arn: string;
                                name: string;
                                ownerIdentity: { principalId: string };
                            };
                            configurationId: string;
                            object: {
                                eTag?: string;
                                key: string;
                                sequencer?: string;
                                size?: number;
                                urlDecodedKey?: string;
                                versionId?: string;
                            };
                            s3SchemaVersion: string;
                        };
                        userIdentity: { principalId: string };
                    },
                >,
                "many",
            >;
        },
        "strip",
        ZodTypeAny,
        {
            Records: {
                awsRegion: string;
                eventName: string;
                eventSource: "aws:s3";
                eventTime: string;
                eventVersion: string;
                glacierEventData?: {
                    restoreEventData: {
                        lifecycleRestorationExpiryTime: string;
                        lifecycleRestoreStorageClass: string;
                    };
                };
                requestParameters: { sourceIPAddress: string };
                responseElements: { "x-amz-id-2": string; "x-amz-request-id": string };
                s3: {
                    bucket: {
                        arn: string;
                        name: string;
                        ownerIdentity: { principalId: string };
                    };
                    configurationId: string;
                    object: {
                        eTag?: string;
                        key: string;
                        sequencer?: string;
                        size?: number;
                        urlDecodedKey?: string;
                        versionId?: string;
                    };
                    s3SchemaVersion: string;
                };
                userIdentity: { principalId: string };
            }[];
        },
        {
            Records: {
                awsRegion: string;
                eventName: string;
                eventSource: "aws:s3";
                eventTime: string;
                eventVersion: string;
                glacierEventData?: {
                    restoreEventData: {
                        lifecycleRestorationExpiryTime: string;
                        lifecycleRestoreStorageClass: string;
                    };
                };
                requestParameters: { sourceIPAddress: string };
                responseElements: { "x-amz-id-2": string; "x-amz-request-id": string };
                s3: {
                    bucket: {
                        arn: string;
                        name: string;
                        ownerIdentity: { principalId: string };
                    };
                    configurationId: string;
                    object: {
                        eTag?: string;
                        key: string;
                        sequencer?: string;
                        size?: number;
                        urlDecodedKey?: string;
                        versionId?: string;
                    };
                    s3SchemaVersion: string;
                };
                userIdentity: { principalId: string };
            }[];
        },
    > = ...

    Zod schema for S3 event

    {
    "Records": [
    {
    "eventVersion": "2.1",
    "eventSource": "aws:s3",
    "awsRegion": "us-east-2",
    "eventTime": "2019-09-03T19:37:27.192Z",
    "eventName": "ObjectCreated:Put",
    "userIdentity": {
    "principalId": "AWS:AIDAINPONIXQXHT3IKHL2"
    },
    "requestParameters": {
    "sourceIPAddress": "205.255.255.255"
    },
    "responseElements": {
    "x-amz-request-id": "D82B88E5F771F645",
    "x-amz-id-2": "vlR7PnpV2Ce81l0PRw6jlUpck7Jo5ZsQjryTjKlc5aLWGVHPZLj5NeC6qMa0emYBDXOo6QBU0Wo="
    },
    "s3": {
    "s3SchemaVersion": "1.0",
    "configurationId": "828aa6fc-f7b5-4305-8584-487c791949c1",
    "bucket": {
    "name": "lambda-artifacts-deafc19498e3f2df",
    "ownerIdentity": {
    "principalId": "A3I5XTEXAMAI3E"
    },
    "arn": "arn:aws:s3:::lambda-artifacts-deafc19498e3f2df"
    },
    "object": {
    "key": "b21b84d653bb07b05b1e6b33684dc11b",
    "size": 1305107,
    "eTag": "b21b84d653bb07b05b1e6b33684dc11b",
    "sequencer": "0C0F6F405D6ED209E1"
    }
    }
    }
    ]
    }