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

***********
tag_contact
***********



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

  

  Adds the specified tags to the contact resource. For more information about this API is used, see `Set up granular billing for a detailed view of your Amazon Connect usage <https://docs.aws.amazon.com/connect/latest/adminguide/granular-billing.html>`__.

  

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


  **Request Syntax**
  ::

    response = client.tag_contact(
        ContactId='string',
        InstanceId='string',
        Tags={
            'string': 'string'
        }
    )
    
  :type ContactId: string
  :param ContactId: **[REQUIRED]** 

    The identifier of the contact in this instance of Amazon Connect.

    

  
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

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

    The tags to be assigned to the contact resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

     

    .. note::

      

      Authorization is not supported by this tag.

      

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

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

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

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

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

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

  