list_user_pool_clients
¶
list_user_pool_clients(
user_pool_id: UserPoolIdType,
*,
config_overrides: Optional[CognitoIdentityProviderClientConfig] = 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/cognito_identity_provider.py
8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 | |