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

************
tag_resource
************



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

  

  Adds one or more custom tags, each in the form of a key:value pair, to the specified 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/TagResource>`_  


  **Request Syntax**
  ::

    response = client.tag_resource(
        ResourceArn='string',
        Tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the resource you want to tag. 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``.

    

  
  :type Tags: list
  :param Tags: **[REQUIRED]** 

    Adds one or more custom tags, each in the form of a key:value pair, to the specified resource.

     

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

    

  
    - *(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) --* **[REQUIRED]** 

        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) --* **[REQUIRED]** 

        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.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`TranscribeService.Client.exceptions.BadRequestException`

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

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

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

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

  