This operation is not supported for directory buckets.
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:
You must URL encode any signed header values that contain spaces. For example, if your header value is my file.txt, containing two spaces after my, you must URL encode this value to my%20%20file.txt.
Example
Use a bare-bones client and the command you need to make an API call.
Base exception class for all service exceptions from S3 service.
Example: Set request payment configuration on a bucket.
// The following example sets request payment configuration on a bucket so that person requesting the download is charged. constinput = { Bucket:"examplebucket", RequestPaymentConfiguration: { Payer:"Requester" } }; constcommand = newPutBucketRequestPaymentCommand(input); constresponse = awaitclient.send(command); /* response is { /* metadata only */ } */
This operation is not supported for directory buckets.
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
You must URL encode any signed header values that contain spaces. For example, if your header value is
my file.txt, containing two spaces aftermy, you must URL encode this value tomy%20%20file.txt.Example
Use a bare-bones client and the command you need to make an API call.
Param: PutBucketRequestPaymentCommandInput
PutBucketRequestPaymentCommandInput
Returns
PutBucketRequestPaymentCommandOutput
See
inputshape.responseshape.configshape.Throws
S3ServiceException
Base exception class for all service exceptions from S3 service.
Example: Set request payment configuration on a bucket.