PrequestPayer
Bun

property

S3Options.requestPayer

requestPayer?: boolean

When set to true, confirms that the requester knows they will be charged for the request and data transfer costs. Required for accessing objects in Requester Pays buckets.

// Accessing a file in a Requester Pays bucket
    const file = s3.file("data.csv", {
      bucket: "requester-pays-bucket",
      requestPayer: true
    });
    const content = await file.text();