Sets the request payment configuration for a bucket. By default, the bucket owner pays
for downloads from the bucket. This configuration parameter enables the bucket owner (only)
to specify that the person requesting the download will be charged for the download. For
more information, see Requester Pays
Buckets.
The following operations are related to PutBucketRequestPayment:
Sets the request payment configuration for a bucket. By default, the bucket owner pays for downloads from the bucket. This configuration parameter enables the bucket owner (only) to specify that the person requesting the download will be charged for the download. For more information, see Requester Pays Buckets.
The following operations are related to
PutBucketRequestPayment
:CreateBucket
GetBucketRequestPayment
Use a bare-bones client and the command you need to make an API call.
import { S3Client, PutBucketRequestPaymentCommand } from "@aws-sdk/client-s3"; // ES Modules import // const { S3Client, PutBucketRequestPaymentCommand } = require("@aws-sdk/client-s3"); // CommonJS import const client = new S3Client(config); const command = new PutBucketRequestPaymentCommand(input); const response = await client.send(command);
PutBucketRequestPaymentCommandInput for command's
input
shape.PutBucketRequestPaymentCommandOutput for command's
response
shape.config for S3Client's
config
shape.