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

*******************************
get_principal_tag_attribute_map
*******************************



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

  

  Use ``GetPrincipalTagAttributeMap`` to list all mappings between ``PrincipalTags`` and user attributes.

  

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


  **Request Syntax**
  ::

    response = client.get_principal_tag_attribute_map(
        IdentityPoolId='string',
        IdentityProviderName='string'
    )
    
  :type IdentityPoolId: string
  :param IdentityPoolId: **[REQUIRED]** 

    You can use this operation to get the ID of the Identity Pool you setup attribute mappings for.

    

  
  :type IdentityProviderName: string
  :param IdentityProviderName: **[REQUIRED]** 

    You can use this operation to get the provider name.

    

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

    
    ::

      {
          'IdentityPoolId': 'string',
          'IdentityProviderName': 'string',
          'UseDefaults': True|False,
          'PrincipalTags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        You can use this operation to get the ID of the Identity Pool you setup attribute mappings for.

        
      

      - **IdentityProviderName** *(string) --* 

        You can use this operation to get the provider name.

        
      

      - **UseDefaults** *(boolean) --* 

        You can use this operation to list

        
      

      - **PrincipalTags** *(dict) --* 

        You can use this operation to add principal tags. The ``PrincipalTags``operation enables you to reference user attributes in your IAM permissions policy.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`CognitoIdentity.Client.exceptions.InvalidParameterException`

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

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

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

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

  