libZSservicesZSamazonka-s3ZSamazonka-s3
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.S3.PutBucketRequestPayment

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.

The following operations are related to PutBucketRequestPayment:

Synopsis

Creating a Request

data PutBucketRequestPayment Source #

See: newPutBucketRequestPayment smart constructor.

Constructors

PutBucketRequestPayment' 

Fields

  • contentMD5 :: Maybe Text

    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.

  • expectedBucketOwner :: Maybe Text

    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.

  • bucket :: BucketName

    The bucket name.

  • requestPaymentConfiguration :: RequestPaymentConfiguration

    Container for Payer.

Instances

Instances details
Eq PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

Read PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

Show PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

Generic PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

Associated Types

type Rep PutBucketRequestPayment :: Type -> Type #

NFData PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

Methods

rnf :: PutBucketRequestPayment -> () #

Hashable PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

AWSRequest PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

ToHeaders PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

ToPath PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

ToQuery PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

ToElement PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

type Rep PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

type Rep PutBucketRequestPayment = D1 ('MetaData "PutBucketRequestPayment" "Amazonka.S3.PutBucketRequestPayment" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "PutBucketRequestPayment'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "contentMD5") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName) :*: S1 ('MetaSel ('Just "requestPaymentConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RequestPaymentConfiguration))))
type AWSResponse PutBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

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.

Destructuring the Response

data PutBucketRequestPaymentResponse Source #

See: newPutBucketRequestPaymentResponse smart constructor.

Instances

Instances details
Eq PutBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

Read PutBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

Show PutBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

Generic PutBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

Associated Types

type Rep PutBucketRequestPaymentResponse :: Type -> Type #

NFData PutBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

type Rep PutBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketRequestPayment

type Rep PutBucketRequestPaymentResponse = D1 ('MetaData "PutBucketRequestPaymentResponse" "Amazonka.S3.PutBucketRequestPayment" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "PutBucketRequestPaymentResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPutBucketRequestPaymentResponse :: PutBucketRequestPaymentResponse Source #

Create a value of PutBucketRequestPaymentResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.