Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
:
Synopsis
- data PutBucketRequestPayment = PutBucketRequestPayment' {}
- newPutBucketRequestPayment :: BucketName -> RequestPaymentConfiguration -> PutBucketRequestPayment
- putBucketRequestPayment_contentMD5 :: Lens' PutBucketRequestPayment (Maybe Text)
- putBucketRequestPayment_expectedBucketOwner :: Lens' PutBucketRequestPayment (Maybe Text)
- putBucketRequestPayment_bucket :: Lens' PutBucketRequestPayment BucketName
- putBucketRequestPayment_requestPaymentConfiguration :: Lens' PutBucketRequestPayment RequestPaymentConfiguration
- data PutBucketRequestPaymentResponse = PutBucketRequestPaymentResponse' {
- newPutBucketRequestPaymentResponse :: PutBucketRequestPaymentResponse
Creating a Request
data PutBucketRequestPayment Source #
See: newPutBucketRequestPayment
smart constructor.
PutBucketRequestPayment' | |
|
Instances
newPutBucketRequestPayment Source #
Create a value of PutBucketRequestPayment
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:contentMD5:PutBucketRequestPayment'
, putBucketRequestPayment_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.
For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
$sel:expectedBucketOwner:PutBucketRequestPayment'
, putBucketRequestPayment_expectedBucketOwner
- The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
$sel:bucket:PutBucketRequestPayment'
, putBucketRequestPayment_bucket
- The bucket name.
$sel:requestPaymentConfiguration:PutBucketRequestPayment'
, putBucketRequestPayment_requestPaymentConfiguration
- Container for Payer.
Request Lenses
putBucketRequestPayment_contentMD5 :: Lens' PutBucketRequestPayment (Maybe Text) Source #
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.
For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
putBucketRequestPayment_expectedBucketOwner :: Lens' PutBucketRequestPayment (Maybe Text) Source #
The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
putBucketRequestPayment_bucket :: Lens' PutBucketRequestPayment BucketName Source #
The bucket name.
putBucketRequestPayment_requestPaymentConfiguration :: Lens' PutBucketRequestPayment RequestPaymentConfiguration Source #
Container for Payer.
Destructuring the Response
data PutBucketRequestPaymentResponse Source #
See: newPutBucketRequestPaymentResponse
smart constructor.
Instances
newPutBucketRequestPaymentResponse :: PutBucketRequestPaymentResponse Source #
Create a value of PutBucketRequestPaymentResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.