property
S3Options.virtualHostedStyle
virtualHostedStyle?: boolean
Use a virtual hosted-style endpoint, where the bucket name is part of the hostname. Defaults to false. When true, if endpoint is provided, the bucket option is ignored.
// Using virtual hosted style
const file = s3.file("my-file.txt", {
virtualHostedStyle: true,
endpoint: "https://my-bucket.s3.us-east-1.amazonaws.com"
});