UserNotifications / Client / register_notification_hub
register_notification_hub¶
- UserNotifications.Client.register_notification_hub(**kwargs)¶
Registers a
NotificationConfigurationin the specified Region.There is a maximum of one
NotificationConfigurationper Region. You can have a maximum of 3NotificationHubresources at a time.See also: AWS API Documentation
Request Syntax
response = client.register_notification_hub( notificationHubRegion='string' )
- Parameters:
notificationHubRegion (string) –
[REQUIRED]
The Region of the
NotificationHub.- Return type:
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
NotificationConfigurationstatus information.status (string) –
Status information about the
NotificationHub.Values:
ACTIVEIncoming
NotificationEventsare replicated to thisNotificationHub.
REGISTERINGThe
NotificationConfigurationis initializing. ANotificationConfigurationwith this status can’t be deregistered.
DEREGISTERINGThe
NotificationConfigurationis being deleted. You can’t register additionalNotificationHubsin the same Region as aNotificationConfigurationwith 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
UserNotifications.Client.exceptions.ServiceQuotaExceededExceptionUserNotifications.Client.exceptions.AccessDeniedExceptionUserNotifications.Client.exceptions.ValidationExceptionUserNotifications.Client.exceptions.InternalServerExceptionUserNotifications.Client.exceptions.ConflictExceptionUserNotifications.Client.exceptions.ThrottlingException