aws_sdk_cloudwatch/client/list_managed_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 [`ListManagedInsightRules`](crate::operation::list_managed_insight_rules::builders::ListManagedInsightRulesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_managed_insight_rules::builders::ListManagedInsightRulesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`resource_arn(impl Into<String>)`](crate::operation::list_managed_insight_rules::builders::ListManagedInsightRulesFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::list_managed_insight_rules::builders::ListManagedInsightRulesFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.</p><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_managed_insight_rules::builders::ListManagedInsightRulesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_managed_insight_rules::builders::ListManagedInsightRulesFluentBuilder::set_next_token):<br>required: **false**<br><p>Include this value to get the next set of rules if the value was returned by the previous operation.</p><br>
9 /// - [`max_results(i32)`](crate::operation::list_managed_insight_rules::builders::ListManagedInsightRulesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_managed_insight_rules::builders::ListManagedInsightRulesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in one operation. If you omit this parameter, the default number is used. The default number is <code>100</code>.</p><br>
10 /// - On success, responds with [`ListManagedInsightRulesOutput`](crate::operation::list_managed_insight_rules::ListManagedInsightRulesOutput) with field(s):
11 /// - [`managed_rules(Option<Vec::<ManagedRuleDescription>>)`](crate::operation::list_managed_insight_rules::ListManagedInsightRulesOutput::managed_rules): <p>The managed rules that are available for the specified Amazon Web Services resource.</p>
12 /// - [`next_token(Option<String>)`](crate::operation::list_managed_insight_rules::ListManagedInsightRulesOutput::next_token): <p>Include this value to get the next set of rules if the value was returned by the previous operation.</p>
13 /// - On failure, responds with [`SdkError<ListManagedInsightRulesError>`](crate::operation::list_managed_insight_rules::ListManagedInsightRulesError)
14 pub fn list_managed_insight_rules(&self) -> crate::operation::list_managed_insight_rules::builders::ListManagedInsightRulesFluentBuilder {
15 crate::operation::list_managed_insight_rules::builders::ListManagedInsightRulesFluentBuilder::new(self.handle.clone())
16 }
17}