Skip to main content

Object

Manages a S3 Object

Bucket Attributes#

Basic#

const s3Bucket = provider.S3.makeBucket({
name: `myBucket`,
properties: () => ({}),
});
const s3Object = provider.S3.makeObject({
name: `file-test`,
dependencies: () => ({ bucket: s3Bucket }),
properties: () => ({
ACL: "public-read",
ContentType: "text/plain",
ServerSideEncryption: "AES256",
Tags: [
{
Key: "Key1",
Value: "Value1",
},
{
Key: "Key2",
Value: "Value2",
},
],
source: "examples/aws/s3/fixtures/testFile.txt",
}),
});

Example Code#

Properties#