SnsNotification: {
    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 a SNS event notification record.

Type declaration

  • Message: string
  • OptionalMessageAttributes?: Record<string, { Type: string; Value: string }>
  • MessageId: string
  • OptionalSignature?: string
  • OptionalSignatureVersion?: string
  • OptionalSigningCertUrl?: string
  • OptionalSigningCertURL?: string
  • OptionalSubject?: null | string
  • Timestamp: string
  • TopicArn: string
  • Type: "Notification"
  • UnsubscribeUrl: string
  • OptionalUnsubscribeURL?: string