:doc:`WorkMail <../../workmail>` / Client / tag_resource

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



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

  

  Applies the specified tags to the specified WorkMailorganization resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/TagResource>`_  


  **Request Syntax**
  ::

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

    The resource ARN.

    

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

    The tag key-value pairs.

    

  
    - *(dict) --* 

      Describes a tag applied to a resource.

      

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

        The key of the tag.

        

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

        The value of the tag.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkMail.Client.exceptions.InvalidParameterException`

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

  
  *   :py:class:`WorkMail.Client.exceptions.TooManyTagsException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationStateException`

  