Skip to main content

Object

Provides an Object storage.

Examples

Simple Object

provider.storage.makeBucket({
name: "myuniquebucketname",
properties: () => ({ storageClass: "STANDARD" }),
});

provider.storage.makeObject({
name: "myname",
dependencies: { bucket: "myuniquebucketname" },
properties: () => ({
path: "/",
contentType: "text/plain",
source: path.join(process.cwd(), "testFile.txt"),
}),
});

Properties

See Object create properties

Example Code

Depends On