:doc:`CloudWatchApplicationSignals <../../application-signals>` / Client / list_tags_for_resource

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



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

  

  Displays the tags associated with a CloudWatch resource. Tags can be assigned to service level objectives.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/application-signals-2024-04-15/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the CloudWatch resource that you want to view tags for.

     

    The ARN format of an Application Signals SLO is ``arn:aws:cloudwatch:Region:account-id:slo:slo-name``

     

    For more information about ARN format, see `Resource Types Defined by Amazon CloudWatch <https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies>`__ in the *Amazon Web Services General Reference*.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The list of tag keys and values associated with the resource you specified.

        
        

        - *(dict) --* 

          A key-value pair associated with a resource. Tags can help you organize and categorize your resources.

          
          

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

            A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.

            
          

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

            The value for the specified tag key.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`CloudWatchApplicationSignals.Client.exceptions.ResourceNotFoundException`

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

  