:doc:`ARCRegionswitch <../../arc-region-switch>` / Client / tag_resource

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



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

  

  Adds or updates tags for a Region switch resource. You can assign metadata to your resources in the form of tags, which are key-value pairs.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/arc-region-switch-2022-07-26/TagResource>`_  


  **Request Syntax**
  ::

    response = client.tag_resource(
        arn='string',
        tags={
            'string': 'string'
        }
    )
    
  :type arn: string
  :param arn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) for a tag that you add to a resource.

    

  
  :type tags: dict
  :param tags: **[REQUIRED]** 

    Tags that you add to a resource. You can add a maximum of 50 tags in Region switch.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

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

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

  