:doc:`LicenseManager <../../license-manager>` / Client / tag_resource

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



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

  

  Adds the specified tags to the specified resource. The following resources support tagging in License Manager:

   

  
  * Licenses
   
  * Grants
   
  * License configurations
   
  * Report generators
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/TagResource>`_  


  **Request Syntax**
  ::

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

    Amazon Resource Name (ARN) of the resource. The following examples provide an example ARN for each supported resource in License Manager:

     

    
    * Licenses - ``arn:aws:license-manager::111122223333:license:l-EXAMPLE2da7646d6861033667f20e895``
     
    * Grants - ``arn:aws:license-manager::111122223333:grant:g-EXAMPLE7b19f4a0ab73679b0beb52707``
     
    * License configurations - ``arn:aws:license-manager:us-east-1:111122223333:license-configuration:lic-EXAMPLE6a788d4c8acd4264ff0ecf2ed2d``
     
    * Report generators - ``arn:aws:license-manager:us-east-1:111122223333:report-generator:r-EXAMPLE825b4a4f8fe5a3e0c88824e5fc6``
    

    

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

    One or more tags.

    

  
    - *(dict) --* 

      Details about the tags for a resource. For more information about tagging support in License Manager, see the `TagResource <https://docs.aws.amazon.com/license-manager/latest/APIReference/API_TagResource.html>`__ operation.

      

    
      - **Key** *(string) --* 

        The tag key.

        

      
      - **Value** *(string) --* 

        The tag value.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`LicenseManager.Client.exceptions.InvalidParameterValueException`

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

  
  *   :py:class:`LicenseManager.Client.exceptions.ServerInternalException`

  
  *   :py:class:`LicenseManager.Client.exceptions.AuthorizationException`

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

  
  *   :py:class:`LicenseManager.Client.exceptions.RateLimitExceededException`

  