code: def cognito_identity_identity_pool_id(self, lookup, default=None):
      
      # List size cannot be greater than 60
      list_limit = 60
      client = EFAwsResolver.__CLIENTS["cognito-identity"]
      response = client.list_identity_pools(MaxResults=list_limit)
  
      while "IdentityPools" in response:
        # Loop through all the identity pools
        for pool in response["IdentityPools"]:
          if pool["IdentityPoolName"] == lookup:
            return pool["IdentityPoolId"]
  
        # No match found on this page, but there are more pages
        if response.has_key("NextToken"):
          response = client.list_identity_pools(MaxResults=list_limit, NextToken=response["NextToken"])
        else:
          break
  
      return default
docs: Args:
          lookup: Cognito Federated Identity name, proto0-cms-identity-pool
          default: the optional value to return if lookup failed; returns None if not set
  
      Returns:
          the Cognito Identity Pool ID corresponding to the given lookup, else default/None