:doc:`CodeGuruSecurity <../../codeguru-security>` / Client / list_tags_for_resource

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



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

  

  Returns a list of all tags associated with a scan.

  

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


  **Request Syntax**
  ::

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

    The ARN of the ``ScanName`` object. You can retrieve this ARN by calling ``CreateScan``, ``ListScans``, or ``GetScan``.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        An array of key-value pairs used to tag an existing scan. A tag is a custom attribute label with two parts:

         

        
        * A tag key. For example, ``CostCenter``, ``Environment``, or ``Secret``. Tag keys are case sensitive.
         
        * An optional tag value field. For example, ``111122223333``, ``Production``, or a team name. Omitting the tag value is the same as using an empty string. Tag values are case sensitive.
        

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`CodeGuruSecurity.Client.exceptions.InternalServerException`

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

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

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

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

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

  