aws_sdk_cognitoidentityprovider/client/list_user_pools.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 [`ListUserPools`](crate::operation::list_user_pools::builders::ListUserPoolsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_user_pools::builders::ListUserPoolsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`next_token(impl Into<String>)`](crate::operation::list_user_pools::builders::ListUserPoolsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_user_pools::builders::ListUserPoolsFluentBuilder::set_next_token):<br>required: **false**<br><p>This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.</p><br>
8 /// - [`max_results(i32)`](crate::operation::list_user_pools::builders::ListUserPoolsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_user_pools::builders::ListUserPoolsFluentBuilder::set_max_results):<br>required: **true**<br><p>The maximum number of user pools that you want Amazon Cognito to return in the response.</p><br>
9 /// - On success, responds with [`ListUserPoolsOutput`](crate::operation::list_user_pools::ListUserPoolsOutput) with field(s):
10 /// - [`user_pools(Option<Vec::<UserPoolDescriptionType>>)`](crate::operation::list_user_pools::ListUserPoolsOutput::user_pools): <p>An array of user pools and their configuration details.</p>
11 /// - [`next_token(Option<String>)`](crate::operation::list_user_pools::ListUserPoolsOutput::next_token): <p>The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.</p>
12 /// - On failure, responds with [`SdkError<ListUserPoolsError>`](crate::operation::list_user_pools::ListUserPoolsError)
13 pub fn list_user_pools(&self) -> crate::operation::list_user_pools::builders::ListUserPoolsFluentBuilder {
14 crate::operation::list_user_pools::builders::ListUserPoolsFluentBuilder::new(self.handle.clone())
15 }
16}