:doc:`Translate <../../translate>` / Client / tag_resource

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



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

  

  Associates a specific tag with a resource. A tag is a key-value pair that adds as a metadata to a resource. For more information, see `Tagging your resources <https://docs.aws.amazon.com/translate/latest/dg/tagging.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/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 given Amazon Translate resource to which you want to associate the tags.

    

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

    Tags being associated with a specific Amazon Translate resource. There can be a maximum of 50 tags (both existing and pending) associated with a specific resource.

    

  
    - *(dict) --* 

      A key-value pair that adds as a metadata to a resource used by Amazon Translate.

      

    
      - **Key** *(string) --* **[REQUIRED]** 

        The initial part of a key-value pair that forms a tag associated with a given resource.

        

      
      - **Value** *(string) --* **[REQUIRED]** 

        The second part of a key-value pair that forms a tag associated with a given resource.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Translate.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`Translate.Client.exceptions.ConcurrentModificationException`

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

  
  *   :py:class:`Translate.Client.exceptions.TooManyTagsException`

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

  