:doc:`MarketplaceCatalog <../../marketplace-catalog>` / Client / tag_resource

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



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

  

  Tags a resource (either an `entity <https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/welcome.html#catalog-api-entities>`__ or `change set <https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/welcome.html#working-with-change-sets>`__).

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/TagResource>`_  


  **Request Syntax**
  ::

    response = client.tag_resource(
        ResourceArn='string',
        Tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

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

    

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

    Required. A list of objects specifying each key name and value. Number of objects allowed: 1-50.

    

  
    - *(dict) --* 

      A list of objects specifying each key name and value.

      

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

        The key associated with the tag.

        

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

        The value associated with the tag.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`MarketplaceCatalog.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MarketplaceCatalog.Client.exceptions.InternalServiceException`

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

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

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

  