1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetBucketMetricsConfiguration`](crate::operation::get_bucket_metrics_configuration::builders::GetBucketMetricsConfigurationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`bucket(impl Into<String>)`](crate::operation::get_bucket_metrics_configuration::builders::GetBucketMetricsConfigurationFluentBuilder::bucket) / [`set_bucket(Option<String>)`](crate::operation::get_bucket_metrics_configuration::builders::GetBucketMetricsConfigurationFluentBuilder::set_bucket): <p>The name of the bucket containing the metrics configuration to retrieve.</p>
    ///   - [`id(impl Into<String>)`](crate::operation::get_bucket_metrics_configuration::builders::GetBucketMetricsConfigurationFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_bucket_metrics_configuration::builders::GetBucketMetricsConfigurationFluentBuilder::set_id): <p>The ID used to identify the metrics configuration.</p>
    ///   - [`expected_bucket_owner(impl Into<String>)`](crate::operation::get_bucket_metrics_configuration::builders::GetBucketMetricsConfigurationFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option<String>)`](crate::operation::get_bucket_metrics_configuration::builders::GetBucketMetricsConfigurationFluentBuilder::set_expected_bucket_owner): <p>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 <code>403 Forbidden</code> (access denied).</p>
    /// - On success, responds with [`GetBucketMetricsConfigurationOutput`](crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationOutput) with field(s):
    ///   - [`metrics_configuration(Option<MetricsConfiguration>)`](crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationOutput::metrics_configuration): <p>Specifies the metrics configuration.</p>
    /// - On failure, responds with [`SdkError<GetBucketMetricsConfigurationError>`](crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationError)
    pub fn get_bucket_metrics_configuration(&self) -> crate::operation::get_bucket_metrics_configuration::builders::GetBucketMetricsConfigurationFluentBuilder{
        crate::operation::get_bucket_metrics_configuration::builders::GetBucketMetricsConfigurationFluentBuilder::new(self.handle.clone())
    }
}