:doc:`IoTAnalytics <../../iotanalytics>` / Client / tag_resource

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



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

  

  Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.

  

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


  **Request Syntax**
  ::

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

    The ARN of the resource whose tags you want to modify.

    

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

    The new or modified tags for the resource.

    

  
    - *(dict) --* 

      A set of key-value pairs that are used to manage the resource.

      

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

        The tag's key.

        

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

        The tag's value.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  
  *   :py:class:`IoTAnalytics.Client.exceptions.ServiceUnavailableException`

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

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

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

  