#[non_exhaustive]pub struct PutBucketAnalyticsConfigurationInput { /* private fields */ }
Implementations§
source§impl PutBucketAnalyticsConfigurationInput
impl PutBucketAnalyticsConfigurationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutBucketAnalyticsConfiguration, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutBucketAnalyticsConfiguration, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutBucketAnalyticsConfiguration
>
Examples found in repository?
src/client.rs (line 11172)
11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutBucketAnalyticsConfiguration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutBucketAnalyticsConfigurationError>,
> {
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::PutBucketAnalyticsConfigurationOutput,
aws_smithy_http::result::SdkError<crate::error::PutBucketAnalyticsConfigurationError>,
> {
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 PutBucketAnalyticsConfigurationInput
.
source§impl PutBucketAnalyticsConfigurationInput
impl PutBucketAnalyticsConfigurationInput
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The name of the bucket to which an analytics configuration is stored.
sourcepub fn analytics_configuration(&self) -> Option<&AnalyticsConfiguration>
pub fn analytics_configuration(&self) -> Option<&AnalyticsConfiguration>
The configuration and any analyses for the analytics filter.
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 PutBucketAnalyticsConfigurationInput
impl Clone for PutBucketAnalyticsConfigurationInput
source§fn clone(&self) -> PutBucketAnalyticsConfigurationInput
fn clone(&self) -> PutBucketAnalyticsConfigurationInput
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