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.GetBucketRequestPayment

Description

Returns the request payment configuration of a bucket. To use this version of the operation, you must be the bucket owner. For more information, see Requester Pays Buckets.

The following operations are related to GetBucketRequestPayment:

Synopsis

Creating a Request

data GetBucketRequestPayment Source #

See: newGetBucketRequestPayment smart constructor.

Constructors

GetBucketRequestPayment' 

Fields

  • 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 name of the bucket for which to get the payment request configuration

Instances

Instances details
Eq GetBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

Read GetBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

Show GetBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

Generic GetBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

Associated Types

type Rep GetBucketRequestPayment :: Type -> Type #

NFData GetBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

Methods

rnf :: GetBucketRequestPayment -> () #

Hashable GetBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

AWSRequest GetBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

ToHeaders GetBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

ToPath GetBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

ToQuery GetBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

type Rep GetBucketRequestPayment Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

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

Defined in Amazonka.S3.GetBucketRequestPayment

newGetBucketRequestPayment Source #

Create a value of GetBucketRequestPayment 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:expectedBucketOwner:GetBucketRequestPayment', getBucketRequestPayment_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:GetBucketRequestPayment', getBucketRequestPayment_bucket - The name of the bucket for which to get the payment request configuration

Request Lenses

getBucketRequestPayment_expectedBucketOwner :: Lens' GetBucketRequestPayment (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.

getBucketRequestPayment_bucket :: Lens' GetBucketRequestPayment BucketName Source #

The name of the bucket for which to get the payment request configuration

Destructuring the Response

data GetBucketRequestPaymentResponse Source #

See: newGetBucketRequestPaymentResponse smart constructor.

Constructors

GetBucketRequestPaymentResponse' 

Fields

Instances

Instances details
Eq GetBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

Read GetBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

Show GetBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

Generic GetBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

Associated Types

type Rep GetBucketRequestPaymentResponse :: Type -> Type #

NFData GetBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

type Rep GetBucketRequestPaymentResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketRequestPayment

type Rep GetBucketRequestPaymentResponse = D1 ('MetaData "GetBucketRequestPaymentResponse" "Amazonka.S3.GetBucketRequestPayment" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "GetBucketRequestPaymentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "payer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Payer)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetBucketRequestPaymentResponse Source #

Create a value of GetBucketRequestPaymentResponse 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:payer:GetBucketRequestPaymentResponse', getBucketRequestPaymentResponse_payer - Specifies who pays for the download and request fees.

$sel:httpStatus:GetBucketRequestPaymentResponse', getBucketRequestPaymentResponse_httpStatus - The response's http status code.

Response Lenses

getBucketRequestPaymentResponse_payer :: Lens' GetBucketRequestPaymentResponse (Maybe Payer) Source #

Specifies who pays for the download and request fees.