:doc:`MigrationHubOrchestrator <../../migrationhuborchestrator>` / Client / tag_resource

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



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

  

  Tag a resource by specifying its Amazon Resource Name (ARN).

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/migrationhuborchestrator-2021-08-28/TagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resource to which you want to add tags.

    

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

    A collection of labels, in the form of key:value pairs, that apply to this resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  