:doc:`UserNotifications <../../notifications>` / Client / deregister_notification_hub

***************************
deregister_notification_hub
***************************



.. py:method:: UserNotifications.Client.deregister_notification_hub(**kwargs)

  

  Deregisters a ``NotificationConfiguration`` in the specified Region.

   

  .. note::

    

    You can't deregister the last ``NotificationHub`` in the account. ``NotificationEvents`` stored in the deregistered ``NotificationConfiguration`` are no longer be visible. Recreating a new ``NotificationConfiguration`` in the same Region restores access to those ``NotificationEvents``.

    

  

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


  **Request Syntax**
  ::

    response = client.deregister_notification_hub(
        notificationHubRegion='string'
    )
    
  :type notificationHubRegion: string
  :param notificationHubRegion: **[REQUIRED]** 

    The ``NotificationConfiguration`` Region.

    

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

    
    ::

      {
          'notificationHubRegion': 'string',
          'statusSummary': {
              'status': 'ACTIVE'|'REGISTERING'|'DEREGISTERING'|'INACTIVE',
              'reason': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **notificationHubRegion** *(string) --* 

        The ``NotificationConfiguration`` Region.

        
      

      - **statusSummary** *(dict) --* 

        ``NotificationConfiguration`` status information.

        
        

        - **status** *(string) --* 

          Status information about the ``NotificationHub``.

           

          
          * Values: 

            
            * ``ACTIVE`` 

              
              * Incoming ``NotificationEvents`` are replicated to this ``NotificationHub``.
              

            
             
            * ``REGISTERING`` 

              
              * The ``NotificationConfiguration`` is initializing. A ``NotificationConfiguration`` with this status can't be deregistered.
              

            
             
            * ``DEREGISTERING`` 

              
              * The ``NotificationConfiguration`` is being deleted. You can't register additional ``NotificationHubs`` in the same Region as a ``NotificationConfiguration`` with this status.
              

            
            

          
          

          
        

        - **reason** *(string) --* 

          An explanation for the current status.

          
    
  
  **Exceptions**
  
  *   :py:class:`UserNotifications.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`UserNotifications.Client.exceptions.InternalServerException`

  
  *   :py:class:`UserNotifications.Client.exceptions.ConflictException`

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

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

  