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 |
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
- data GetBucketRequestPayment = GetBucketRequestPayment' {}
- newGetBucketRequestPayment :: BucketName -> GetBucketRequestPayment
- getBucketRequestPayment_expectedBucketOwner :: Lens' GetBucketRequestPayment (Maybe Text)
- getBucketRequestPayment_bucket :: Lens' GetBucketRequestPayment BucketName
- data GetBucketRequestPaymentResponse = GetBucketRequestPaymentResponse' {
- payer :: Maybe Payer
- httpStatus :: Int
- newGetBucketRequestPaymentResponse :: Int -> GetBucketRequestPaymentResponse
- getBucketRequestPaymentResponse_payer :: Lens' GetBucketRequestPaymentResponse (Maybe Payer)
- getBucketRequestPaymentResponse_httpStatus :: Lens' GetBucketRequestPaymentResponse Int
Creating a Request
data GetBucketRequestPayment Source #
See: newGetBucketRequestPayment
smart constructor.
GetBucketRequestPayment' | |
|
Instances
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.
GetBucketRequestPaymentResponse' | |
|
Instances
Eq GetBucketRequestPaymentResponse Source # | |
Read GetBucketRequestPaymentResponse Source # | |
Show GetBucketRequestPaymentResponse Source # | |
Defined in Amazonka.S3.GetBucketRequestPayment | |
Generic GetBucketRequestPaymentResponse Source # | |
NFData GetBucketRequestPaymentResponse Source # | |
Defined in Amazonka.S3.GetBucketRequestPayment rnf :: GetBucketRequestPaymentResponse -> () # | |
type Rep GetBucketRequestPaymentResponse Source # | |
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.
getBucketRequestPaymentResponse_httpStatus :: Lens' GetBucketRequestPaymentResponse Int Source #
The response's http status code.