:doc:`Billing <../../billing>` / Client / tag_resource

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



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

  

  An API operation for adding one or more tags (key-value pairs) to a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/billing-2023-09-07/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 resource.

    

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

    A list of tag key value pairs that are associated with the resource.

    

  
    - *(dict) --* 

      The tag structure that contains a tag key and value.

      

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

        The key that's associated with the tag.

        

      
      - **value** *(string) --* 

        The value that's associated with the tag.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

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

  