:doc:`Chatbot <../../chatbot>` / Client / tag_resource

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



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

  

  Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.

  

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


  **Request Syntax**
  ::

    response = client.tag_resource(
        ResourceARN='string',
        Tags=[
            {
                'TagKey': 'string',
                'TagValue': 'string'
            },
        ]
    )
    
  :type ResourceARN: string
  :param ResourceARN: **[REQUIRED]** 

    The ARN of the configuration.

    

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

    A list of tags to apply to the configuration.

    

  
    - *(dict) --* 

      A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.

       

      .. warning::

         

        Do not include confidential or sensitive information in this field.

         

       

      For more information, see `User-Defined Tag Restrictions <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html>`__ in the *AWS Billing and Cost Management User Guide*.

      

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

        The key of the tag.

        

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

        The value of the tag.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Chatbot.Client.exceptions.ServiceUnavailableException`

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

  
  *   :py:class:`Chatbot.Client.exceptions.InternalServiceError`

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

  