:doc:`CodeStarNotifications <../../codestar-notifications>` / Client / tag_resource

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



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

  

  Associates a set of provided tags with a notification rule.

  

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


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the notification rule to tag.

    

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

    The list of tags to associate with the resource. Tag key names cannot start with " ``aws``".

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'Tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Tags** *(dict) --* 

        The list of tags associated with the resource.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`CodeStarNotifications.Client.exceptions.ResourceNotFoundException`

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

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

  
  *   :py:class:`CodeStarNotifications.Client.exceptions.ConcurrentModificationException`

  