:doc:`Inspector <../../inspector>` / Client / unsubscribe_from_event

**********************
unsubscribe_from_event
**********************



.. py:method:: Inspector.Client.unsubscribe_from_event(**kwargs)

  

  Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/UnsubscribeFromEvent>`_  


  **Request Syntax**
  ::

    response = client.unsubscribe_from_event(
        resourceArn='string',
        event='ASSESSMENT_RUN_STARTED'|'ASSESSMENT_RUN_COMPLETED'|'ASSESSMENT_RUN_STATE_CHANGED'|'FINDING_REPORTED'|'OTHER',
        topicArn='string'
    )
    
  :type resourceArn: string
  :param resourceArn: **[REQUIRED]** 

    The ARN of the assessment template that is used during the event for which you want to stop receiving SNS notifications.

    

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

    The event for which you want to stop receiving SNS notifications.

    

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

    The ARN of the SNS topic to which SNS notifications are sent.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Inspector.Client.exceptions.InternalException`

  
  *   :py:class:`Inspector.Client.exceptions.InvalidInputException`

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

  
  *   :py:class:`Inspector.Client.exceptions.NoSuchEntityException`

  
  *   :py:class:`Inspector.Client.exceptions.ServiceTemporarilyUnavailableException`

  

  **Examples**

  Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.
  ::

    response = client.unsubscribe_from_event(
        event='ASSESSMENT_RUN_COMPLETED',
        resourceArn='arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0',
        topicArn='arn:aws:sns:us-west-2:123456789012:exampletopic',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  