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

***********
unsubscribe
***********



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

  

  Removes an association between a notification rule and an Amazon Q Developer in chat applications topic so that subscribers to that topic stop receiving notifications when the events described in the rule are triggered.

  

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


  **Request Syntax**
  ::

    response = client.unsubscribe(
        Arn='string',
        TargetAddress='string'
    )
    
  :type Arn: string
  :param Arn: **[REQUIRED]** 

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

    

  
  :type TargetAddress: string
  :param TargetAddress: **[REQUIRED]** 

    The ARN of the Amazon Q Developer in chat applications topic to unsubscribe from the notification rule.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of the the notification rule from which you have removed a subscription.

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

  