:doc:`DirectoryService <../../ds>` / Client / deregister_event_topic

**********************
deregister_event_topic
**********************



.. py:method:: DirectoryService.Client.deregister_event_topic(**kwargs)

  

  Removes the specified directory as a publisher to the specified Amazon SNS topic.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeregisterEventTopic>`_  


  **Request Syntax**
  ::

    response = client.deregister_event_topic(
        DirectoryId='string',
        TopicName='string'
    )
    
  :type DirectoryId: string
  :param DirectoryId: **[REQUIRED]** 

    The Directory ID to remove as a publisher. This directory will no longer send messages to the specified Amazon SNS topic.

    

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

    The name of the Amazon SNS topic from which to remove the directory as a publisher.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The result of a DeregisterEventTopic request.

      
  
  **Exceptions**
  
  *   :py:class:`DirectoryService.Client.exceptions.EntityDoesNotExistException`

  
  *   :py:class:`DirectoryService.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ClientException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ServiceException`

  