:doc:`CognitoIdentity <../../cognito-identity>` / Client / list_identity_pools

*******************
list_identity_pools
*******************



.. py:method:: CognitoIdentity.Client.list_identity_pools(**kwargs)

  

  Lists all of the Cognito identity pools registered for your account.

   

  You must use Amazon Web Services developer credentials to call this operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListIdentityPools>`_  


  **Request Syntax**
  ::

    response = client.list_identity_pools(
        MaxResults=123,
        NextToken='string'
    )
    
  :type MaxResults: integer
  :param MaxResults: **[REQUIRED]** 

    The maximum number of identities to return.

    

  
  :type NextToken: string
  :param NextToken: 

    A pagination token.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'IdentityPools': [
              {
                  'IdentityPoolId': 'string',
                  'IdentityPoolName': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The result of a successful ListIdentityPools action.

      
      

      - **IdentityPools** *(list) --* 

        The identity pools returned by the ListIdentityPools action.

        
        

        - *(dict) --* 

          A description of the identity pool.

          
          

          - **IdentityPoolId** *(string) --* 

            An identity pool ID in the format REGION:GUID.

            
          

          - **IdentityPoolName** *(string) --* 

            A string that you provide.

            
      
    
      

      - **NextToken** *(string) --* 

        A pagination token.

        
  
  **Exceptions**
  
  *   :py:class:`CognitoIdentity.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`CognitoIdentity.Client.exceptions.NotAuthorizedException`

  
  *   :py:class:`CognitoIdentity.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`CognitoIdentity.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CognitoIdentity.Client.exceptions.InternalErrorException`

  