:doc:`GlobalAccelerator <../../globalaccelerator>` / Client / tag_resource

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



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

  

  Add tags to an accelerator resource.

   

  For more information, see `Tagging in Global Accelerator <https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html>`__ in the *Global Accelerator Developer Guide*.

  

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


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the Global Accelerator resource to add tags to. An ARN uniquely identifies a resource.

    

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

    The tags to add to a resource. A tag consists of a key and a value that you define.

    

  
    - *(dict) --* 

      A complex type that contains a ``Tag`` key and ``Tag`` value.

      

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

        A string that contains a ``Tag`` key.

        

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

        A string that contains a ``Tag`` value.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException`

  
  *   :py:class:`GlobalAccelerator.Client.exceptions.InternalServiceErrorException`

  
  *   :py:class:`GlobalAccelerator.Client.exceptions.InvalidArgumentException`

  