list_user_pool_clients
async
¶
list_user_pool_clients(
user_pool_id: UserPoolIdType,
*,
config_overrides: Optional[AsyncCognitoIdentityProviderClientConfig] = None,
max_results: Optional[QueryLimit] = None,
next_token: Optional[PaginationKey] = None,
client_type: Optional[ClientTypeType] = None,
) -> ListUserPoolClientsResponse
Given a user pool ID, lists app clients. App clients are sets of rules for the access that you want a user pool to grant to one application. For more information, see App clients.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
Parameters:
-
user_pool_id(UserPoolIdType) –The ID of the user pool where you want to list user pool clients.
-
max_results(Optional[QueryLimit], default:None) –The maximum number of app clients that you want Amazon Cognito to return in the response.
-
next_token(Optional[PaginationKey], default:None) –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.
-
client_type(Optional[ClientTypeType], default:None) –Returns only app clients of this type. For dynamic client registration (
DCR) and other app clients, the following values are valid.- REGULAR
-
An app client not created through dynamic client registration.
- DCR
-
An app client created through dynamic client registration.
If you omit
ClientType, the response includes app clients of all types. When you set this filter, a page of results can contain fewer app clients thanMaxResults, or none, while the response still includes aNextToken. Continue to request pages until the response has noNextToken. The app clients in the response don't include their type. To get the type of an app client, callDescribeUserPoolClient.
Raises:
-
InternalErrorException–This exception is thrown when Amazon Cognito encounters an internal error.
-
InvalidParameterException–This exception is thrown when the Amazon Cognito service encounters an invalid parameter.
-
NotAuthorizedException–This exception is thrown when a user isn't authorized.
-
OperationNotEnabledException–This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.
-
ResourceNotFoundException–This exception is thrown when the Amazon Cognito service can't find the requested resource.
-
TooManyRequestsException–This exception is thrown when the user has made too many requests for a given operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cognito_identity_provider/_services/async_cognito_identity_provider.py
9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 | |