:doc:`UserNotificationsContacts <../../notificationscontacts>` / Client / tag_resource

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



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

  

  Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Taggable resources in AWS User Notifications Contacts include email contacts.

  

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


  **Request Syntax**
  ::

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

    The ARN of the configuration.

    

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

    A list of tags to apply to the configuration.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`UserNotificationsContacts.Client.exceptions.InternalServerException`

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

  
  *   :py:class:`UserNotificationsContacts.Client.exceptions.AccessDeniedException`

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

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

  