Struct aws_sdk_s3::client::fluent_builders::PutBucketRequestPayment [−][src]
pub struct PutBucketRequestPayment<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to PutBucketRequestPayment
.
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
:
Implementations
impl<C, M, R> PutBucketRequestPayment<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PutBucketRequestPayment<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PutBucketRequestPaymentOutput, SdkError<PutBucketRequestPaymentError>> where
R::Policy: SmithyRetryPolicy<PutBucketRequestPaymentInputOperationOutputAlias, PutBucketRequestPaymentOutput, PutBucketRequestPaymentError, PutBucketRequestPaymentInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PutBucketRequestPaymentOutput, SdkError<PutBucketRequestPaymentError>> where
R::Policy: SmithyRetryPolicy<PutBucketRequestPaymentInputOperationOutputAlias, PutBucketRequestPaymentOutput, PutBucketRequestPaymentError, PutBucketRequestPaymentInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The bucket name.
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.
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.
Container for Payer.
pub fn set_request_payment_configuration(
self,
input: Option<RequestPaymentConfiguration>
) -> Self
pub fn set_request_payment_configuration(
self,
input: Option<RequestPaymentConfiguration>
) -> Self
Container for Payer.
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.
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.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for PutBucketRequestPayment<C, M, R>
impl<C, M, R> Send for PutBucketRequestPayment<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for PutBucketRequestPayment<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for PutBucketRequestPayment<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for PutBucketRequestPayment<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more