:doc:`Invoicing <../../invoicing>` / Client / tag_resource

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



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

  

  Adds a tag to a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/invoicing-2024-12-01/TagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the tags.

    

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

    Adds a tag to a resource.

    

  
    - *(dict) --* 

      The tag structure that contains a tag key and value.

      

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

        The object key of your of your resource tag.

        

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

        The specific value of the resource tag.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

  
  *   :py:class:`Invoicing.Client.exceptions.ServiceQuotaExceededException`

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

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

  