Skip to main content

Object

Provides an Object storage.

Examples#

Simple Object#

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

Properties#

See Object create properties

Example Code#

Depends On#