#[non_exhaustive]pub struct GetBucketAccelerateConfigurationInput { /* private fields */ }
Implementations§
source§impl GetBucketAccelerateConfigurationInput
impl GetBucketAccelerateConfigurationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetBucketAccelerateConfiguration, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetBucketAccelerateConfiguration, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetBucketAccelerateConfiguration
>
Examples found in repository?
src/client.rs (line 5577)
5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetBucketAccelerateConfiguration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetBucketAccelerateConfigurationError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetBucketAccelerateConfigurationOutput,
aws_smithy_http::result::SdkError<crate::error::GetBucketAccelerateConfigurationError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetBucketAccelerateConfigurationInput
.
source§impl GetBucketAccelerateConfigurationInput
impl GetBucketAccelerateConfigurationInput
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The name of the bucket for which the accelerate configuration is retrieved.
sourcepub fn expected_bucket_owner(&self) -> Option<&str>
pub fn expected_bucket_owner(&self) -> Option<&str>
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden
(access denied).
Trait Implementations§
source§impl Clone for GetBucketAccelerateConfigurationInput
impl Clone for GetBucketAccelerateConfigurationInput
source§fn clone(&self) -> GetBucketAccelerateConfigurationInput
fn clone(&self) -> GetBucketAccelerateConfigurationInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more