aws-sdk-cloudwatch 1.134.0

AWS SDK for Amazon CloudWatch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateResourceMetricsConfiguration`](crate::operation::update_resource_metrics_configuration::builders::UpdateResourceMetricsConfigurationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_arn(impl Into<String>)`](crate::operation::update_resource_metrics_configuration::builders::UpdateResourceMetricsConfigurationFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::update_resource_metrics_configuration::builders::UpdateResourceMetricsConfigurationFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the Amazon Web Services resource to update the resource metrics configuration for.</p><br>
    ///   - [`metric_selections(ResourceMetricSelection)`](crate::operation::update_resource_metrics_configuration::builders::UpdateResourceMetricsConfigurationFluentBuilder::metric_selections) / [`set_metric_selections(Option<Vec::<ResourceMetricSelection>>)`](crate::operation::update_resource_metrics_configuration::builders::UpdateResourceMetricsConfigurationFluentBuilder::set_metric_selections):<br>required: **false**<br><p>Specifies which metrics Amazon CloudWatch collects for the resource. The selections that you provide completely replace any existing metric selections.</p> <p>If you omit this parameter, Amazon CloudWatch removes any existing metric selection filter and collects all available detailed metrics for the resource.</p><br>
    /// - On success, responds with [`UpdateResourceMetricsConfigurationOutput`](crate::operation::update_resource_metrics_configuration::UpdateResourceMetricsConfigurationOutput) with field(s):
    ///   - [`resource_metrics_configuration(Option<ResourceMetricsConfiguration>)`](crate::operation::update_resource_metrics_configuration::UpdateResourceMetricsConfigurationOutput::resource_metrics_configuration): <p>The resource metrics configuration after the update was applied.</p>
    /// - On failure, responds with [`SdkError<UpdateResourceMetricsConfigurationError>`](crate::operation::update_resource_metrics_configuration::UpdateResourceMetricsConfigurationError)
    pub fn update_resource_metrics_configuration(
        &self,
    ) -> crate::operation::update_resource_metrics_configuration::builders::UpdateResourceMetricsConfigurationFluentBuilder {
        crate::operation::update_resource_metrics_configuration::builders::UpdateResourceMetricsConfigurationFluentBuilder::new(self.handle.clone())
    }
}