:doc:`Lambda <../../lambda>` / Client / list_tags

*********
list_tags
*********



.. py:method:: Lambda.Client.list_tags(**kwargs)

  

  Returns a function, event source mapping, or code signing configuration's `tags <https://docs.aws.amazon.com/lambda/latest/dg/tagging.html>`__. You can also view function tags with  GetFunction.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags>`_  


  **Request Syntax**
  ::

    response = client.list_tags(
        Resource='string'
    )
    
  :type Resource: string
  :param Resource: **[REQUIRED]** 

    The resource's Amazon Resource Name (ARN). Note: Lambda does not support adding tags to function aliases or versions.

    

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

    
    ::

      {
          'Tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Tags** *(dict) --* 

        The function's tags.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`Lambda.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`Lambda.Client.exceptions.ServiceException`

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

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

  

  **Examples**

  The following example displays the tags attached to the my-function Lambda function.
  ::

    response = client.list_tags(
        Resource='arn:aws:lambda:us-west-2:123456789012:function:my-function',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'Tags': {
            'Category': 'Web Tools',
            'Department': 'Sales',
        },
        'ResponseMetadata': {
            '...': '...',
        },
    }

  