Learn R Programming

paws.storage (version 0.1.9)

s3_put_bucket_request_payment: Sets the request payment configuration for a bucket

Description

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.

Usage

s3_put_bucket_request_payment(Bucket, ContentMD5,
  RequestPaymentConfiguration)

Arguments

Bucket

[required] The bucket name.

ContentMD5

\>The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

RequestPaymentConfiguration

[required] Container for Payer.

Request syntax

svc$put_bucket_request_payment(
  Bucket = "string",
  ContentMD5 = "string",
  RequestPaymentConfiguration = list(
    Payer = "Requester"|"BucketOwner"
  )
)

Details

The following operations are related to PutBucketRequestPayment:

  • CreateBucket

  • GetBucketRequestPayment

Examples

Run this code
# NOT RUN {
# The following example sets request payment configuration on a bucket so
# that person requesting the download is charged.
svc$put_bucket_request_payment(
  Bucket = "examplebucket",
  RequestPaymentConfiguration = list(
    Payer = "Requester"
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab