Skip to content

TypeScript API / contentia/storage/s3 / S3Config

Interface: S3Config ​

Properties ​

bucket ​

ts
bucket: string;

The bucket to read from and write to.


client ​

ts
client: S3ClientLike;

An S3Client from @aws-sdk/client-s3 (or anything with the same send).


commands ​

ts
commands: S3Commands;

The command classes from @aws-sdk/client-s3.


keyPrefix? ​

ts
keyPrefix?: string;

Scope every key under this prefix, e.g. 'tenant-a' stores docs/x.json as tenant-a/docs/x.json. Leading/trailing slashes are normalised.