UserNotifications / Client / register_notification_hub
register_notification_hub¶
- 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 3NotificationHub
resources 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
NotificationConfiguration
status information.status (string) –
Status information about the
NotificationHub
.Values:
ACTIVE
Incoming
NotificationEvents
are replicated to thisNotificationHub
.
REGISTERING
The
NotificationConfiguration
is initializing. ANotificationConfiguration
with this status can’t be deregistered.
DEREGISTERING
The
NotificationConfiguration
is being deleted. You can’t register additionalNotificationHubs
in the same Region as aNotificationConfiguration
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