:doc:`AppRegistry <../../servicecatalog-appregistry>` / Client / tag_resource

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



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

  

  Assigns one or more tags (key-value pairs) to the specified resource.

   

  Each tag consists of a key and an optional value. If a tag with the same key is already associated with the resource, this action updates its value.

   

  This operation returns an empty response if the call was successful.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/TagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon resource name (ARN) that specifies the resource.

    

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

    The new or modified tags for the resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`AppRegistry.Client.exceptions.ValidationException`

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

  
  *   :py:class:`AppRegistry.Client.exceptions.InternalServerException`

  