:doc:`RDS <../../rds>` / Client / list_tags_for_resource

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



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

  

  Lists all tags on an Amazon RDS resource.

   

  For an overview on tagging an Amazon RDS resource, see `Tagging Amazon RDS Resources <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html>`__ in the *Amazon RDS User Guide* or `Tagging Amazon Aurora and Amazon RDS Resources <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html>`__ in the *Amazon Aurora User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ListTagsForResource>`_  


  **Request Syntax**
  ::

    response = client.list_tags_for_resource(
        ResourceName='string',
        Filters=[
            {
                'Name': 'string',
                'Values': [
                    'string',
                ]
            },
        ]
    )
    
  :type ResourceName: string
  :param ResourceName: **[REQUIRED]** 

    The Amazon RDS resource with tags to be listed. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see `Constructing an ARN for Amazon RDS <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing>`__ in the *Amazon RDS User Guide*.

    

  
  :type Filters: list
  :param Filters: 

    This parameter isn't currently supported.

    

  
    - *(dict) --* 

      A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as IDs. The filters supported by a describe operation are documented with the describe operation.

       

      .. note::

        

        Currently, wildcards are not supported in filters.

        

       

      The following actions can be filtered:

       

      
      * ``DescribeDBClusterBacktracks``
       
      * ``DescribeDBClusterEndpoints``
       
      * ``DescribeDBClusters``
       
      * ``DescribeDBInstances``
       
      * ``DescribeDBRecommendations``
       
      * ``DescribeDBShardGroups``
       
      * ``DescribePendingMaintenanceActions``
      

      

    
      - **Name** *(string) --* **[REQUIRED]** 

        The name of the filter. Filter names are case-sensitive.

        

      
      - **Values** *(list) --* **[REQUIRED]** 

        One or more filter values. Filter values are case-sensitive.

        

      
        - *(string) --* 

        
    
    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **TagList** *(list) --* 

        List of tags returned by the ``ListTagsForResource`` operation.

        
        

        - *(dict) --* 

          Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

           

          For more information, see `Tagging Amazon RDS resources <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html>`__ in the *Amazon RDS User Guide* or `Tagging Amazon Aurora and Amazon RDS resources <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html>`__ in the *Amazon Aurora User Guide*.

          
          

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

            A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$").

            
          

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

            A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$").

            
      
    
  
  **Exceptions**
  
  *   :py:class:`RDS.Client.exceptions.DBProxyNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.DBSnapshotTenantDatabaseNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.IntegrationNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.TenantDatabaseNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.BlueGreenDeploymentNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.DBSnapshotNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.DBProxyEndpointNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.DBShardGroupNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.DBClusterNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.DBInstanceNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.DBProxyTargetGroupNotFoundFault`

  

  **Examples**

  This example lists information about all tags associated with the specified DB option group.
  ::

    response = client.list_tags_for_resource(
        ResourceName='arn:aws:rds:us-east-1:992648334831:og:mymysqloptiongroup',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  