:doc:`RecycleBin <../../rbin>` / Client / tag_resource

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



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

  

  Assigns tags to the specified retention rule.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/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 retention rule.

    

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

    Information about the tags to assign to the retention rule.

    

  
    - *(dict) --* 

      Information about the tags to assign to the retention rule.

      

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

        The tag key.

        

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

        The tag value.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`RecycleBin.Client.exceptions.ValidationException`

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

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

  
  *   :py:class:`RecycleBin.Client.exceptions.ServiceQuotaExceededException`

  