:doc:`SSOAdmin <../../sso-admin>` / Client / list_tags_for_resource

**********************
list_tags_for_resource
**********************



.. py:method:: SSOAdmin.Client.list_tags_for_resource(**kwargs)

  

  Lists the tags that are attached to a specified resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sso-admin-2020-07-20/ListTagsForResource>`_  


  **Request Syntax**
  ::

    response = client.list_tags_for_resource(
        InstanceArn='string',
        ResourceArn='string',
        NextToken='string'
    )
    
  :type InstanceArn: string
  :param InstanceArn: 

    The ARN of the IAM Identity Center instance under which the operation will be executed. For more information about ARNs, see `Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces </general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference*.

    

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

    The ARN of the resource with the tags to be listed.

    

  
  :type NextToken: string
  :param NextToken: 

    The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls.

    

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

    
    ::

      {
          'Tags': [
              {
                  'Key': 'string',
                  'Value': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Tags** *(list) --* 

        A set of key-value pairs that are used to manage the resource.

        
        

        - *(dict) --* 

          A set of key-value pairs that are used to manage the resource. Tags can only be applied to permission sets and cannot be applied to corresponding roles that IAM Identity Center creates in Amazon Web Services accounts.

          
          

          - **Key** *(string) --* 

            The key for the tag.

            
          

          - **Value** *(string) --* 

            The value of the tag.

            
      
    
      

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

        The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls.

        
  
  **Exceptions**
  
  *   :py:class:`SSOAdmin.Client.exceptions.ThrottlingException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.InternalServerException`

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

  
  *   :py:class:`SSOAdmin.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ValidationException`

  