:doc:`IoTDeviceAdvisor <../../iotdeviceadvisor>` / Client / tag_resource

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



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

  

  Adds to and modifies existing tags of an IoT Device Advisor resource.

   

  Requires permission to access the `TagResource <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/TagResource>`_  


  **Request Syntax**
  ::

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

    The resource ARN of an IoT Device Advisor resource. This can be SuiteDefinition ARN or SuiteRun ARN.

    

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

    The tags to be attached to the IoT Device Advisor resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`IoTDeviceAdvisor.Client.exceptions.InternalServerException`

  
  *   :py:class:`IoTDeviceAdvisor.Client.exceptions.ValidationException`

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

  