:doc:`WorkspacesInstances <../../workspaces-instances>` / Client / list_tags_for_resource

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



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

  

  Retrieves tags for a WorkSpace Instance.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-instances-2022-07-26/ListTagsForResource>`_  


  **Request Syntax**
  ::

    response = client.list_tags_for_resource(
        WorkspaceInstanceId='string'
    )
    
  :type WorkspaceInstanceId: string
  :param WorkspaceInstanceId: **[REQUIRED]** 

    Unique identifier of the WorkSpace Instance.

    

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

    
    ::

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

    

    - *(dict) --* 

      Returns the list of tags for the specified WorkSpace Instance.

      
      

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

        Collection of tags associated with the WorkSpace Instance.

        
        

        - *(dict) --* 

          Represents a key-value metadata tag.

          
          

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

            Unique identifier for the tag.

            
          

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

            Value associated with the tag key.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`WorkspacesInstances.Client.exceptions.ValidationException`

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

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

  
  *   :py:class:`WorkspacesInstances.Client.exceptions.ThrottlingException`

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

  