s3EventType (formats/s3.ts)

files-sdk · packages/files-sdk/src/events/formats/s3.ts · typescript · MIT
integration

Utility to classify S3 bucket notifications as created or deleted events.

// Source: https://github.com/haydenbleasel/files-sdk | License: MIT | Copyright 2026 Hayden Bleasel
// Provided via justclaw.it.com; keep this notice with the code.
// Amazon S3 (and MinIO) bucket notifications, in every envelope a consumer
// receives them:
//
// - the event itself, `{ Records: [{ eventSource: "aws:s3", s3 }] }` — Lambda's
//   S3 trigger, or an S3-compatible service's (MinIO's `minio:s3` webhook,
//   Wasabi's `wasabi:s3` via SNS, RustFS's webhook, whose records name no
//   `eventSource`), `eventName` optionally `s3:`-prefixed;
// - an SQS message (`{ Records: [{ eventSource: "aws:sqs", body }] }`, or one
//   such record) whose `body` is the event, an SNS envelope around it
//   (`{ Type: "Notification", Message }`), or an EventBridge event;
// - a Lambda subscribed t

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key