aws_sdk_resourceexplorer2/client/
list_service_indexes.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 [`ListServiceIndexes`](crate::operation::list_service_indexes::builders::ListServiceIndexesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_service_indexes::builders::ListServiceIndexesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`regions(impl Into<String>)`](crate::operation::list_service_indexes::builders::ListServiceIndexesFluentBuilder::regions) / [`set_regions(Option<Vec::<String>>)`](crate::operation::list_service_indexes::builders::ListServiceIndexesFluentBuilder::set_regions):<br>required: **false**<br><p>A list of Amazon Web Services Regions to include in the search for indexes. If not specified, indexes from all Regions are returned.</p><br>
8    ///   - [`max_results(i32)`](crate::operation::list_service_indexes::builders::ListServiceIndexesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_service_indexes::builders::ListServiceIndexesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of index results to return in a single response. Valid values are between <code>1</code> and <code>100</code>.</p><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::list_service_indexes::builders::ListServiceIndexesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_service_indexes::builders::ListServiceIndexesFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token from a previous <code>ListServiceIndexes</code> response. Use this token to retrieve the next set of results.</p><br>
10    /// - On success, responds with [`ListServiceIndexesOutput`](crate::operation::list_service_indexes::ListServiceIndexesOutput) with field(s):
11    ///   - [`indexes(Option<Vec::<Index>>)`](crate::operation::list_service_indexes::ListServiceIndexesOutput::indexes): <p>A list of <code>Index</code> objects that describe the Resource Explorer indexes found in the specified Regions.</p>
12    ///   - [`next_token(Option<String>)`](crate::operation::list_service_indexes::ListServiceIndexesOutput::next_token): <p>The pagination token to use in a subsequent <code>ListServiceIndexes</code> request to retrieve the next set of results.</p>
13    /// - On failure, responds with [`SdkError<ListServiceIndexesError>`](crate::operation::list_service_indexes::ListServiceIndexesError)
14    pub fn list_service_indexes(&self) -> crate::operation::list_service_indexes::builders::ListServiceIndexesFluentBuilder {
15        crate::operation::list_service_indexes::builders::ListServiceIndexesFluentBuilder::new(self.handle.clone())
16    }
17}