:doc:`Kafka <../../kafka>` / Client / tag_resource

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



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

  

  Adds tags to the specified MSK resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/TagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) that uniquely identifies the resource that's associated with the tags.

    

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

    The key-value pair for the resource tag.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Kafka.Client.exceptions.NotFoundException`

  
  *   :py:class:`Kafka.Client.exceptions.BadRequestException`

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

  