API Reference
    Preparing search index...
    SnsSchema: ZodObject<
        {
            Records: ZodArray<
                ZodObject<
                    {
                        EventSource: ZodLiteral<"aws:sns">;
                        EventSubscriptionArn: ZodString;
                        EventVersion: ZodString;
                        Sns: ZodObject<
                            {
                                Message: ZodString;
                                MessageAttributes: ZodOptional<
                                    ZodRecord<
                                        ZodString,
                                        ZodObject<
                                            { Type: ...; Value: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { Type: ...; Value: ... },
                                            { Type: ...; Value: ... },
                                        >,
                                    >,
                                >;
                                MessageId: ZodString;
                                Signature: ZodOptional<ZodString>;
                                SignatureVersion: ZodOptional<ZodString>;
                                SigningCertUrl: ZodOptional<ZodString>;
                                SigningCertURL: ZodOptional<ZodString>;
                                Subject: ZodOptional<ZodNullable<ZodString>>;
                                Timestamp: ZodString;
                                TopicArn: ZodString;
                                Type: ZodLiteral<"Notification">;
                                UnsubscribeUrl: ZodString;
                                UnsubscribeURL: ZodOptional<ZodString>;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                Message: string;
                                MessageAttributes?: Record<string, { Type: string; Value: string }>;
                                MessageId: string;
                                Signature?: string;
                                SignatureVersion?: string;
                                SigningCertUrl?: string;
                                SigningCertURL?: string;
                                Subject?: null | string;
                                Timestamp: string;
                                TopicArn: string;
                                Type: "Notification";
                                UnsubscribeUrl: string;
                                UnsubscribeURL?: string;
                            },
                            {
                                Message: string;
                                MessageAttributes?: Record<string, { Type: string; Value: string }>;
                                MessageId: string;
                                Signature?: string;
                                SignatureVersion?: string;
                                SigningCertUrl?: string;
                                SigningCertURL?: string;
                                Subject?: null | string;
                                Timestamp: string;
                                TopicArn: string;
                                Type: "Notification";
                                UnsubscribeUrl: string;
                                UnsubscribeURL?: string;
                            },
                        >;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        EventSource: "aws:sns";
                        EventSubscriptionArn: string;
                        EventVersion: string;
                        Sns: {
                            Message: string;
                            MessageAttributes?: Record<string, { Type: string; Value: string }>;
                            MessageId: string;
                            Signature?: string;
                            SignatureVersion?: string;
                            SigningCertUrl?: string;
                            SigningCertURL?: string;
                            Subject?: null | string;
                            Timestamp: string;
                            TopicArn: string;
                            Type: "Notification";
                            UnsubscribeUrl: string;
                            UnsubscribeURL?: string;
                        };
                    },
                    {
                        EventSource: "aws:sns";
                        EventSubscriptionArn: string;
                        EventVersion: string;
                        Sns: {
                            Message: string;
                            MessageAttributes?: Record<string, { Type: string; Value: string }>;
                            MessageId: string;
                            Signature?: string;
                            SignatureVersion?: string;
                            SigningCertUrl?: string;
                            SigningCertURL?: string;
                            Subject?: null | string;
                            Timestamp: string;
                            TopicArn: string;
                            Type: "Notification";
                            UnsubscribeUrl: string;
                            UnsubscribeURL?: string;
                        };
                    },
                >,
                "many",
            >;
        },
        "strip",
        ZodTypeAny,
        {
            Records: {
                EventSource: "aws:sns";
                EventSubscriptionArn: string;
                EventVersion: string;
                Sns: {
                    Message: string;
                    MessageAttributes?: Record<string, { Type: string; Value: string }>;
                    MessageId: string;
                    Signature?: string;
                    SignatureVersion?: string;
                    SigningCertUrl?: string;
                    SigningCertURL?: string;
                    Subject?: null | string;
                    Timestamp: string;
                    TopicArn: string;
                    Type: "Notification";
                    UnsubscribeUrl: string;
                    UnsubscribeURL?: string;
                };
            }[];
        },
        {
            Records: {
                EventSource: "aws:sns";
                EventSubscriptionArn: string;
                EventVersion: string;
                Sns: {
                    Message: string;
                    MessageAttributes?: Record<string, { Type: string; Value: string }>;
                    MessageId: string;
                    Signature?: string;
                    SignatureVersion?: string;
                    SigningCertUrl?: string;
                    SigningCertURL?: string;
                    Subject?: null | string;
                    Timestamp: string;
                    TopicArn: string;
                    Type: "Notification";
                    UnsubscribeUrl: string;
                    UnsubscribeURL?: string;
                };
            }[];
        },
    > = ...

    Zod schema for SNS event

    {
    "Records": [
    {
    "EventVersion": "1.0",
    "EventSubscriptionArn": "arn:aws:sns:us-east-2:123456789012:sns-la ...",
    "EventSource": "aws:sns",
    "Sns": {
    "SignatureVersion": "1",
    "Timestamp": "2019-01-02T12:45:07.000Z",
    "Signature": "tcc6faL2yUC6dgZdmrwh1Y4cGa/ebXEkAi6RibDsvpi+tE/1+82j...65r==",
    "SigningCertUrl": "https://sns.us-east-2.amazonaws.com/SimpleNotification",
    "MessageId": "95df01b4-ee98-5cb9-9903-4c221d41eb5e",
    "Message": "Hello from SNS!",
    "MessageAttributes": {
    "Test": {
    "Type": "String",
    "Value": "TestString"
    },
    "TestBinary": {
    "Type": "Binary",
    "Value": "TestBinary"
    }
    },
    "Type": "Notification",
    "UnsubscribeUrl": "https://sns.us-east-2.amazonaws.com/?Action=Unsubscribe",
    "TopicArn": "arn:aws:sns:us-east-2:123456789012:sns-lambda",
    "Subject": "TestInvoke"
    }
    }
    ]
    }