aws_sdk_cognitoidentityprovider/client/list_resource_servers.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 [`ListResourceServers`](crate::operation::list_resource_servers::builders::ListResourceServersFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_resource_servers::builders::ListResourceServersFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`user_pool_id(impl Into<String>)`](crate::operation::list_resource_servers::builders::ListResourceServersFluentBuilder::user_pool_id) / [`set_user_pool_id(Option<String>)`](crate::operation::list_resource_servers::builders::ListResourceServersFluentBuilder::set_user_pool_id):<br>required: **true**<br><p>The ID of the user pool where you want to list resource servers.</p><br>
8 /// - [`max_results(i32)`](crate::operation::list_resource_servers::builders::ListResourceServersFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_resource_servers::builders::ListResourceServersFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of resource servers that you want Amazon Cognito to return in the response.</p><br>
9 /// - [`next_token(impl Into<String>)`](crate::operation::list_resource_servers::builders::ListResourceServersFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_resource_servers::builders::ListResourceServersFluentBuilder::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>
10 /// - On success, responds with [`ListResourceServersOutput`](crate::operation::list_resource_servers::ListResourceServersOutput) with field(s):
11 /// - [`resource_servers(Vec::<ResourceServerType>)`](crate::operation::list_resource_servers::ListResourceServersOutput::resource_servers): <p>An array of resource servers and the details of their configuration. For each, the response includes names, identifiers, and custom scopes.</p>
12 /// - [`next_token(Option<String>)`](crate::operation::list_resource_servers::ListResourceServersOutput::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>
13 /// - On failure, responds with [`SdkError<ListResourceServersError>`](crate::operation::list_resource_servers::ListResourceServersError)
14 pub fn list_resource_servers(&self) -> crate::operation::list_resource_servers::builders::ListResourceServersFluentBuilder {
15 crate::operation::list_resource_servers::builders::ListResourceServersFluentBuilder::new(self.handle.clone())
16 }
17}