aws_sdk_cloudwatch/client/
disable_insight_rules.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DisableInsightRules`](crate::operation::disable_insight_rules::builders::DisableInsightRulesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`rule_names(impl Into<String>)`](crate::operation::disable_insight_rules::builders::DisableInsightRulesFluentBuilder::rule_names) / [`set_rule_names(Option<Vec::<String>>)`](crate::operation::disable_insight_rules::builders::DisableInsightRulesFluentBuilder::set_rule_names):<br>required: **true**<br><p>An array of the rule names to disable. If you need to find out the names of your rules, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html">DescribeInsightRules</a>.</p><br>
7    /// - On success, responds with [`DisableInsightRulesOutput`](crate::operation::disable_insight_rules::DisableInsightRulesOutput) with field(s):
8    ///   - [`failures(Option<Vec::<PartialFailure>>)`](crate::operation::disable_insight_rules::DisableInsightRulesOutput::failures): <p>An array listing the rules that could not be disabled. You cannot disable built-in rules.</p>
9    /// - On failure, responds with [`SdkError<DisableInsightRulesError>`](crate::operation::disable_insight_rules::DisableInsightRulesError)
10    pub fn disable_insight_rules(&self) -> crate::operation::disable_insight_rules::builders::DisableInsightRulesFluentBuilder {
11        crate::operation::disable_insight_rules::builders::DisableInsightRulesFluentBuilder::new(self.handle.clone())
12    }
13}