Skip to content

Bucket

Source: src/Prisma/Bucket.ts

A Prisma Object Store bucket inside a Prisma project.

Project, name, and branch changes replace the bucket because the Management API has no bucket update operation. Destroying this resource deletes the bucket, its objects, and any remaining access keys — the Management API cascades the deletion server-side.

const bucket = yield* Prisma.Bucket("uploads", {
project,
name: "uploads",
});
const key = yield* Prisma.BucketAccessKey("uploads-key", {
bucket,
role: "read_write",
});