:doc:`TranscribeService <../../transcribe>` / Client / list_tags_for_resource

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



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

  

  Lists all tags associated with the specified transcription job, vocabulary, model, or resource.

   

  To learn more about using tags with Amazon Transcribe, refer to `Tagging resources <https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    Returns a list of all tags associated with the specified Amazon Resource Name (ARN). ARNs have the format ``arn:partition:service:region:account-id:resource-type/resource-id``.

     

    For example, ``arn:aws:transcribe:us-west-2:111122223333:transcription-job/transcription-job-name``.

     

    Valid values for ``resource-type`` are: ``transcription-job``, ``medical-transcription-job``, ``vocabulary``, ``medical-vocabulary``, ``vocabulary-filter``, and ``language-model``.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **ResourceArn** *(string) --* 

        The Amazon Resource Name (ARN) specified in your request.

        
      

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

        Lists all tags associated with the given transcription job, vocabulary, model, or resource.

        
        

        - *(dict) --* 

          Adds metadata, in the form of a key:value pair, to the specified resource.

           

          For example, you could add the tag ``Department:Sales`` to a resource to indicate that it pertains to your organization's sales department. You can also use tags for tag-based access control.

           

          To learn more about tagging, see `Tagging resources <https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html>`__.

          
          

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

            The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ``Department:Sales``, the key is 'Department'.

            
          

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

            The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ``Department:Sales``, the value is 'Sales'.

             

            Note that you can set the value of a tag to an empty string, but you can't set the value of a tag to null. Omitting the tag value is the same as using an empty string.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`TranscribeService.Client.exceptions.BadRequestException`

  
  *   :py:class:`TranscribeService.Client.exceptions.NotFoundException`

  
  *   :py:class:`TranscribeService.Client.exceptions.LimitExceededException`

  
  *   :py:class:`TranscribeService.Client.exceptions.InternalFailureException`

  