:doc:`UserNotifications <../../notifications>` / Client / tag_resource

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



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

  

  Tags the resource with a tag key and value.

   

  For more information, see `Tagging your Amazon Web Services resources <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html>`__ in the *Tagging Amazon Web Services Resources User Guide*.

   

  .. note::

    

    This is only supported for ``NotificationConfigurations``.

    

  

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


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) to use to tag a resource.

    

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

    A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`UserNotifications.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`UserNotifications.Client.exceptions.ValidationException`

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

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

  
  *   :py:class:`UserNotifications.Client.exceptions.ThrottlingException`

  