:doc:`Connect <../../connect>` / Client / tag_resource

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



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

  

  Adds the specified tags to the specified resource.

   

  Some of the supported resource types are agents, routing profiles, queues, quick connects, flows, agent statuses, hours of operation, phone numbers, security profiles, and task templates. For a complete list, see `Tagging resources in Amazon Connect <https://docs.aws.amazon.com/connect/latest/adminguide/tagging.html>`__.

   

  For sample policies that use tags, see `Amazon Connect Identity-Based Policy Examples <https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_id-based-policy-examples.html>`__ in the *Amazon Connect Administrator Guide*.

  

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


  **Request Syntax**
  ::

    response = client.tag_resource(
        resourceArn='string',
        tags={
            'string': 'string'
        }
    )
    
  :type resourceArn: string
  :param resourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the resource.

    

  
  :type tags: dict
  :param tags: **[REQUIRED]** 

    The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

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

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

  