:doc:`BillingandCostManagementDataExports <../../bcm-data-exports>` / Client / tag_resource

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



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

  

  Adds tags for an existing data export definition.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bcm-data-exports-2023-11-26/TagResource>`_  


  **Request Syntax**
  ::

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

    The unique identifier for the resource.

    

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

    The tags to associate with the resource. Each tag consists of a key and a value, and each key must be unique for 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) --* **[REQUIRED]** 

        The value that's associated with the tag.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`BillingandCostManagementDataExports.Client.exceptions.InternalServerException`

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

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

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

  