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