:doc:`CloudDirectory <../../clouddirectory>` / Client / list_tags_for_resource

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



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

  

  Returns tags for a resource. Tagging is currently supported only for directories with a limit of 50 tags per directory. All 50 tags are returned for a given directory with this API call.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.

    

  
  :type NextToken: string
  :param NextToken: 

    The pagination token. This is for future use. Currently pagination is not supported for tagging.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The ``MaxResults`` parameter sets the maximum number of results returned in a single page. This is for future use and is not supported currently.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        A list of tag key value pairs that are associated with the response.

        
        

        - *(dict) --* 

          The tag structure that contains a tag key and value.

          
          

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

            The key that is associated with the tag.

            
          

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

            The value that is associated with the tag.

            
      
    
      

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

        The token to use to retrieve the next page of results. This value is null when there are no more results to return.

        
  
  **Exceptions**
  
  *   :py:class:`CloudDirectory.Client.exceptions.InternalServiceException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.InvalidArnException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.RetryableConflictException`

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

  
  *   :py:class:`CloudDirectory.Client.exceptions.LimitExceededException`

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

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

  
  *   :py:class:`CloudDirectory.Client.exceptions.InvalidTaggingRequestException`

  