1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListInsights`](crate::operation::list_insights::builders::ListInsightsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`cluster_name(impl Into<String>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::cluster_name) / [`set_cluster_name(Option<String>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::set_cluster_name):<br>required: **true**<br><p>The name of the Amazon EKS cluster associated with the insights.</p><br>
    ///   - [`filter(InsightsFilter)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::filter) / [`set_filter(Option<InsightsFilter>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::set_filter):<br>required: **false**<br><p>The criteria to filter your list of insights for your cluster. You can filter which insights are returned by category, associated Kubernetes version, and status.</p><br>
    ///   - [`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 identity provider configurations returned by <code>ListInsights</code> in paginated output. When you use this parameter, <code>ListInsights</code> returns only <code>maxResults</code> results in a single page along with a <code>nextToken</code> response element. You can see the remaining results of the initial request by sending another <code>ListInsights</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 100. If you don't use this parameter, <code>ListInsights</code> returns up to 100 results and a <code>nextToken</code> value, if applicable.</p><br>
    ///   - [`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 <code>nextToken</code> value returned from a previous paginated <code>ListInsights</code> request. When the results of a <code>ListInsights</code> request exceed <code>maxResults</code>, you can use this value to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p><br>
    /// - On success, responds with [`ListInsightsOutput`](crate::operation::list_insights::ListInsightsOutput) with field(s):
    ///   - [`insights(Option<Vec::<InsightSummary>>)`](crate::operation::list_insights::ListInsightsOutput::insights): <p>The returned list of insights.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_insights::ListInsightsOutput::next_token): <p>The <code>nextToken</code> value to include in a future <code>ListInsights</code> request. When the results of a <code>ListInsights</code> request exceed <code>maxResults</code>, you can use this value to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
    /// - On failure, responds with [`SdkError<ListInsightsError>`](crate::operation::list_insights::ListInsightsError)
    pub fn list_insights(&self) -> crate::operation::list_insights::builders::ListInsightsFluentBuilder {
        crate::operation::list_insights::builders::ListInsightsFluentBuilder::new(self.handle.clone())
    }
}