:doc:`MarketplaceDeploymentService <../../marketplace-deployment>` / Client / tag_resource

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



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

  

  Tags a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/marketplace-deployment-2023-01-25/TagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) associated with the resource you want to tag.

    

  
  :type tags: dict
  :param tags: 

    A map of key-value pairs, where each pair represents a tag present on the resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`MarketplaceDeploymentService.Client.exceptions.ThrottlingException`

  
  *   :py:class:`MarketplaceDeploymentService.Client.exceptions.AccessDeniedException`

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

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

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

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

  