:doc:`CodeConnections <../../codeconnections>` / Client / tag_resource

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



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

  

  Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/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 resource to which you want to add or update tags.

    

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

    The tags you want to modify or add to the resource.

    

  
    - *(dict) --* 

      A tag is a key-value pair that is used to manage the resource.

       

      This tag is available for use by Amazon Web Services services that support tags.

      

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

        The tag's key.

        

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

        The tag's value.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

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

  
  *   :py:class:`CodeConnections.Client.exceptions.LimitExceededException`

  