aws_sdk_cloudwatch/client/describe_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 [`DescribeInsightRules`](crate::operation::describe_insight_rules::builders::DescribeInsightRulesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_insight_rules::builders::DescribeInsightRulesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`next_token(impl Into<String>)`](crate::operation::describe_insight_rules::builders::DescribeInsightRulesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_insight_rules::builders::DescribeInsightRulesFluentBuilder::set_next_token):<br>required: **false**<br><p>Include this value, if it was returned by the previous operation, to get the next set of rules.</p><br>
8 /// - [`max_results(i32)`](crate::operation::describe_insight_rules::builders::DescribeInsightRulesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_insight_rules::builders::DescribeInsightRulesFluentBuilder::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 of 500 is used.</p><br>
9 /// - On success, responds with [`DescribeInsightRulesOutput`](crate::operation::describe_insight_rules::DescribeInsightRulesOutput) with field(s):
10 /// - [`next_token(Option<String>)`](crate::operation::describe_insight_rules::DescribeInsightRulesOutput::next_token): <p>If this parameter is present, it is a token that marks the start of the next batch of returned results.</p>
11 /// - [`insight_rules(Option<Vec::<InsightRule>>)`](crate::operation::describe_insight_rules::DescribeInsightRulesOutput::insight_rules): <p>The rules returned by the operation.</p>
12 /// - On failure, responds with [`SdkError<DescribeInsightRulesError>`](crate::operation::describe_insight_rules::DescribeInsightRulesError)
13 pub fn describe_insight_rules(&self) -> crate::operation::describe_insight_rules::builders::DescribeInsightRulesFluentBuilder {
14 crate::operation::describe_insight_rules::builders::DescribeInsightRulesFluentBuilder::new(self.handle.clone())
15 }
16}