aws_sdk_devopsguru/client/list_insights.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 [`ListInsights`](crate::operation::list_insights::builders::ListInsightsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`status_filter(ListInsightsStatusFilter)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::status_filter) / [`set_status_filter(Option<ListInsightsStatusFilter>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::set_status_filter):<br>required: **true**<br><p>A filter used to filter the returned insights by their status. You can specify one status filter.</p><br>
8 /// - [`max_results(i32)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p><br>
9 /// - [`next_token(impl Into<String>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.</p><br>
10 /// - On success, responds with [`ListInsightsOutput`](crate::operation::list_insights::ListInsightsOutput) with field(s):
11 /// - [`proactive_insights(Option<Vec::<ProactiveInsightSummary>>)`](crate::operation::list_insights::ListInsightsOutput::proactive_insights): <p>The returned list of proactive insights.</p>
12 /// - [`reactive_insights(Option<Vec::<ReactiveInsightSummary>>)`](crate::operation::list_insights::ListInsightsOutput::reactive_insights): <p>The returned list of reactive insights.</p>
13 /// - [`next_token(Option<String>)`](crate::operation::list_insights::ListInsightsOutput::next_token): <p>The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.</p>
14 /// - On failure, responds with [`SdkError<ListInsightsError>`](crate::operation::list_insights::ListInsightsError)
15 pub fn list_insights(&self) -> crate::operation::list_insights::builders::ListInsightsFluentBuilder {
16 crate::operation::list_insights::builders::ListInsightsFluentBuilder::new(self.handle.clone())
17 }
18}