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

*************************
register_notification_hub
*************************



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

  

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

   

  There is a maximum of one ``NotificationConfiguration`` per Region. You can have a maximum of 3 ``NotificationHub`` resources at a time.

  

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


  **Request Syntax**
  ::

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

    The Region of the ``NotificationHub``.

    

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

    
    ::

      {
          'notificationHubRegion': 'string',
          'statusSummary': {
              'status': 'ACTIVE'|'REGISTERING'|'DEREGISTERING'|'INACTIVE',
              'reason': 'string'
          },
          'creationTime': datetime(2015, 1, 1),
          'lastActivationTime': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The Region of the ``NotificationHub``.

        
      

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

        Provides additional information about the current ``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.

          
    
      

      - **creationTime** *(datetime) --* 

        The date the resource was created.

        
      

      - **lastActivationTime** *(datetime) --* 

        The date the resource was last activated.

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

  
  *   :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.ThrottlingException`

  