:doc:`MediaConvert <../../mediaconvert>` / Client / tag_resource

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



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

  Add tags to a MediaConvert queue, preset, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/TagResource>`_  


  **Request Syntax**
  ::

    response = client.tag_resource(
        Arn='string',
        Tags={
            'string': 'string'
        }
    )
    
  :type Arn: string
  :param Arn: **[REQUIRED]** The Amazon Resource Name (ARN) of the resource that you want to tag. To get the ARN, send a GET request with the resource name.

  
  :type Tags: dict
  :param Tags: **[REQUIRED]** The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

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

  
  *   :py:class:`MediaConvert.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`MediaConvert.Client.exceptions.ServiceQuotaExceededException`

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

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

  
  *   :py:class:`MediaConvert.Client.exceptions.TooManyRequestsException`

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

  