CognitoIdentityProvider / Client / list_identity_providers
list_identity_providers#
- CognitoIdentityProvider.Client.list_identity_providers(**kwargs)#
Lists information about all IdPs for a user pool.
Note
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
See also: AWS API Documentation
Request Syntax
response = client.list_identity_providers( UserPoolId='string', MaxResults=123, NextToken='string' )
- Parameters:
UserPoolId (string) –
[REQUIRED]
The user pool ID.
MaxResults (integer) – The maximum number of IdPs to return.
NextToken (string) – A pagination token.
- Return type:
dict
- Returns:
Response Syntax
{ 'Providers': [ { 'ProviderName': 'string', 'ProviderType': 'SAML'|'Facebook'|'Google'|'LoginWithAmazon'|'SignInWithApple'|'OIDC', 'LastModifiedDate': datetime(2015, 1, 1), 'CreationDate': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Providers (list) –
A list of IdP objects.
(dict) –
The details of a user pool identity provider (IdP), including name and type.
This data type is a response parameter of ListIdentityProviders.
ProviderName (string) –
The name of the IdP, for example
MySAMLProvider
.ProviderType (string) –
The type of the provider, for example
SAML
. Amazon Cognito supports SAML 2.0, OIDC, and social IdPs. User pools list supported social IdPs by name in this response parameter: Facebook, Google, Login with Amazon, and Sign in with Apple.LastModifiedDate (datetime) –
The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java
Date
object.CreationDate (datetime) –
The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java
Date
object.
NextToken (string) –
A pagination token.
Exceptions
CognitoIdentityProvider.Client.exceptions.InvalidParameterException
CognitoIdentityProvider.Client.exceptions.ResourceNotFoundException
CognitoIdentityProvider.Client.exceptions.NotAuthorizedException
CognitoIdentityProvider.Client.exceptions.TooManyRequestsException
CognitoIdentityProvider.Client.exceptions.InternalErrorException