API Reference
    Preparing search index...

    Variable S3EventNotificationEventBridgeSchemaConst

    S3EventNotificationEventBridgeSchema: ZodObject<
        extendShape<
            {
                account: ZodString;
                detail: ZodUnknown;
                "detail-type": ZodString;
                id: ZodString;
                region: ZodString;
                "replay-name": ZodOptional<ZodString>;
                resources: ZodArray<ZodString, "many">;
                source: ZodString;
                time: ZodString;
                version: ZodString;
            },
            {
                detail: ZodObject<
                    {
                        bucket: ZodObject<
                            { name: ZodString },
                            "strip",
                            ZodTypeAny,
                            { name: string },
                            { name: string },
                        >;
                        "deletion-type": ZodOptional<ZodString>;
                        "destination-access-tier": ZodOptional<ZodString>;
                        "destination-storage-class": ZodOptional<ZodString>;
                        object: ZodObject<
                            {
                                etag: ZodOptional<ZodString>;
                                key: ZodString;
                                sequencer: ZodOptional<ZodString>;
                                size: ZodOptional<ZodNumber>;
                                "version-id": ZodOptional<ZodString>;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                etag?: string;
                                key: string;
                                sequencer?: string;
                                size?: number;
                                "version-id"?: string;
                            },
                            {
                                etag?: string;
                                key: string;
                                sequencer?: string;
                                size?: number;
                                "version-id"?: string;
                            },
                        >;
                        reason: ZodOptional<ZodString>;
                        "request-id": ZodString;
                        requester: ZodString;
                        "restore-expiry-time": ZodOptional<ZodString>;
                        "source-ip-address": ZodOptional<ZodString>;
                        "source-storage-class": ZodOptional<ZodString>;
                        version: ZodString;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        bucket: { name: string };
                        "deletion-type"?: string;
                        "destination-access-tier"?: string;
                        "destination-storage-class"?: string;
                        object: {
                            etag?: string;
                            key: string;
                            sequencer?: string;
                            size?: number;
                            "version-id"?: string;
                        };
                        reason?: string;
                        "request-id": string;
                        requester: string;
                        "restore-expiry-time"?: string;
                        "source-ip-address"?: string;
                        "source-storage-class"?: string;
                        version: string;
                    },
                    {
                        bucket: { name: string };
                        "deletion-type"?: string;
                        "destination-access-tier"?: string;
                        "destination-storage-class"?: string;
                        object: {
                            etag?: string;
                            key: string;
                            sequencer?: string;
                            size?: number;
                            "version-id"?: string;
                        };
                        reason?: string;
                        "request-id": string;
                        requester: string;
                        "restore-expiry-time"?: string;
                        "source-ip-address"?: string;
                        "source-storage-class"?: string;
                        version: string;
                    },
                >;
            },
        >,
        "strip",
        ZodTypeAny,
        {
            account: string;
            detail: {
                bucket: { name: string };
                "deletion-type"?: string;
                "destination-access-tier"?: string;
                "destination-storage-class"?: string;
                object: {
                    etag?: string;
                    key: string;
                    sequencer?: string;
                    size?: number;
                    "version-id"?: string;
                };
                reason?: string;
                "request-id": string;
                requester: string;
                "restore-expiry-time"?: string;
                "source-ip-address"?: string;
                "source-storage-class"?: string;
                version: string;
            };
            "detail-type": string;
            id: string;
            region: string;
            "replay-name"?: string;
            resources: string[];
            source: string;
            time: string;
            version: string;
        },
        {
            account: string;
            detail: {
                bucket: { name: string };
                "deletion-type"?: string;
                "destination-access-tier"?: string;
                "destination-storage-class"?: string;
                object: {
                    etag?: string;
                    key: string;
                    sequencer?: string;
                    size?: number;
                    "version-id"?: string;
                };
                reason?: string;
                "request-id": string;
                requester: string;
                "restore-expiry-time"?: string;
                "source-ip-address"?: string;
                "source-storage-class"?: string;
                version: string;
            };
            "detail-type": string;
            id: string;
            region: string;
            "replay-name"?: string;
            resources: string[];
            source: string;
            time: string;
            version: string;
        },
    > = ...

    Zod schema for S3 -> EventBridge -> Lambda event notification.

    {
    "version": "0",
    "id": "f5f1e65c-dc3a-93ca-6c1e-b1647eac7963",
    "detail-type": "Object Created",
    "source": "aws.s3",
    "account": "123456789012",
    "time": "2023-03-08T17:50:14Z",
    "region": "eu-west-1",
    "resources": [
    "arn:aws:s3:::example-bucket"
    ],
    "detail": {
    "version": "0",
    "bucket": {
    "name": "example-bucket"
    },
    "object": {
    "key": "IMG_m7fzo3.jpg",
    "size": 184662,
    "etag": "4e68adba0abe2dc8653dc3354e14c01d",
    "sequencer": "006408CAD69598B05E"
    },
    "request-id": "57H08PA84AB1JZW0",
    "requester": "123456789012",
    "source-ip-address": "34.252.34.74",
    "reason": "PutObject"
    }
    }