:doc:`AIOps <../../aiops>` / Client / list_tags_for_resource

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



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

  

  Displays the tags associated with a CloudWatch investigations resource. Currently, investigation groups support tagging.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/aiops-2018-05-10/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The ARN of the CloudWatch investigations resource that you want to view tags for. You can use the ``ListInvestigationGroups`` operation to find the ARNs of investigation groups.

     

    The ARN format for an investigation group is ``arn:aws:aiops:Region:account-id:investigation-group:investigation-group-id ``.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **tags** *(dict) --* 

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

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`AIOps.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`AIOps.Client.exceptions.ForbiddenException`

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

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

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

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

  
  *   :py:class:`AIOps.Client.exceptions.ConflictException`

  