:doc:`LexModelBuildingService <../../lex-models>` / Client / tag_resource

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



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

  

  Adds the specified tags to the specified resource. If a tag key already exists, the existing value is replaced with the new value.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/TagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the bot, bot alias, or bot channel to tag.

    

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

    A list of tag keys to add to the resource. If a tag key already exists, the existing value is replaced with the new value.

    

  
    - *(dict) --* 

      A list of key/value pairs that identify a bot, bot alias, or bot channel. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.

      

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

        The key for the tag. Keys are not case-sensitive and must be unique.

        

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

        The value associated with a key. The value may be an empty string but it can't be null.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`LexModelBuildingService.Client.exceptions.NotFoundException`

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

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

  
  *   :py:class:`LexModelBuildingService.Client.exceptions.InternalFailureException`

  
  *   :py:class:`LexModelBuildingService.Client.exceptions.LimitExceededException`

  