aws_sdk_cloudwatch/client/
enable_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 [`EnableInsightRules`](crate::operation::enable_insight_rules::builders::EnableInsightRulesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`rule_names(impl Into<String>)`](crate::operation::enable_insight_rules::builders::EnableInsightRulesFluentBuilder::rule_names) / [`set_rule_names(Option<Vec::<String>>)`](crate::operation::enable_insight_rules::builders::EnableInsightRulesFluentBuilder::set_rule_names):<br>required: **true**<br><p>An array of the rule names to enable. 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 [`EnableInsightRulesOutput`](crate::operation::enable_insight_rules::EnableInsightRulesOutput) with field(s):
8    ///   - [`failures(Option<Vec::<PartialFailure>>)`](crate::operation::enable_insight_rules::EnableInsightRulesOutput::failures): <p>An array listing the rules that could not be enabled. You cannot disable or enable built-in rules.</p>
9    /// - On failure, responds with [`SdkError<EnableInsightRulesError>`](crate::operation::enable_insight_rules::EnableInsightRulesError)
10    pub fn enable_insight_rules(&self) -> crate::operation::enable_insight_rules::builders::EnableInsightRulesFluentBuilder {
11        crate::operation::enable_insight_rules::builders::EnableInsightRulesFluentBuilder::new(self.handle.clone())
12    }
13}