1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListThesauri`](crate::operation::list_thesauri::builders::ListThesauriFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_thesauri::builders::ListThesauriFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`index_id(impl Into<String>)`](crate::operation::list_thesauri::builders::ListThesauriFluentBuilder::index_id) / [`set_index_id(Option<String>)`](crate::operation::list_thesauri::builders::ListThesauriFluentBuilder::set_index_id):<br>required: **true**<br><p>The identifier of the index with one or more thesauri.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_thesauri::builders::ListThesauriFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_thesauri::builders::ListThesauriFluentBuilder::set_next_token):<br>required: **false**<br><p>If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of thesauri (<code>ThesaurusSummaryItems</code>).</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_thesauri::builders::ListThesauriFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_thesauri::builders::ListThesauriFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of thesauri to return.</p><br>
    /// - On success, responds with [`ListThesauriOutput`](crate::operation::list_thesauri::ListThesauriOutput) with field(s):
    ///   - [`next_token(Option<String>)`](crate::operation::list_thesauri::ListThesauriOutput::next_token): <p>If the response is truncated, Amazon Kendra returns this token that you can use in the subsequent request to retrieve the next set of thesauri.</p>
    ///   - [`thesaurus_summary_items(Option<Vec::<ThesaurusSummary>>)`](crate::operation::list_thesauri::ListThesauriOutput::thesaurus_summary_items): <p>An array of summary information for a thesaurus or multiple thesauri.</p>
    /// - On failure, responds with [`SdkError<ListThesauriError>`](crate::operation::list_thesauri::ListThesauriError)
    pub fn list_thesauri(&self) -> crate::operation::list_thesauri::builders::ListThesauriFluentBuilder {
        crate::operation::list_thesauri::builders::ListThesauriFluentBuilder::new(self.handle.clone())
    }
}