I want to read and download data from an Amazon S3 Requester Pays bucket.
I've tried to enable a 'requester pays access' option in the .NET SDK but I can't find anything:
static async Task DownloadFile()
{
TransferUtility fileTransferUtility =
new TransferUtility(new AmazonS3Client(accessKey, secretAccessKey, Amazon.RegionEndpoint.USEast1));
fileTransferUtility.Download("destination", "data-repository-client-1",
"20221002-22%2709%2753_to_20221002-22%2723%2715_Trades_v5.csv.gz");
}
I get an access denied exception because of the Requester Pays access settings.