interface S3DatastoreInit {
    createIfMissing?: boolean;
    path?: string;
}

Properties

createIfMissing?: boolean

Whether to try to create the bucket if it is missing when .open is called

path?: string

An optional path to use within the bucket for all files - this setting can affect S3 performance as it does internal sharding based on 'prefixes' - these can be delimited by '/' so it's often better to wrap this datastore in a sharding datastore which will generate prefixed datastore keys for you.

See - https://docs.aws.amazon.com/AmazonS3/latest/userguide/optimizing-performance.html and https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html