bucket

Pbucket
Bun

Symbol

S3File.bucket

readonly bucket?: string

The bucket name containing the file.

const file = s3.file("s3://my-bucket/file.txt");
   console.log(file.bucket); // "my-bucket"