UserNotifications / Client / deregister_notification_hub
deregister_notification_hub¶
- UserNotifications.Client.deregister_notification_hub(**kwargs)¶
Deregisters a
NotificationHubin the specified Region.Note
You can’t deregister the last
NotificationHubin the account.NotificationEventsstored in the deregisteredNotificationHubare no longer visible. Recreating a newNotificationHubin the same Region restores access to thoseNotificationEvents.See also: AWS API Documentation
Request Syntax
response = client.deregister_notification_hub( notificationHubRegion='string' )
- Parameters:
notificationHubRegion (string) –
[REQUIRED]
The
NotificationHubRegion.- Return type:
dict
- Returns:
Response Syntax
{ 'notificationHubRegion': 'string', 'statusSummary': { 'status': 'ACTIVE'|'REGISTERING'|'DEREGISTERING'|'INACTIVE', 'reason': 'string' } }
Response Structure
(dict) –
notificationHubRegion (string) –
The
NotificationHubRegion.statusSummary (dict) –
NotificationHubstatus 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.
Exceptions
UserNotifications.Client.exceptions.AccessDeniedExceptionUserNotifications.Client.exceptions.ValidationExceptionUserNotifications.Client.exceptions.InternalServerExceptionUserNotifications.Client.exceptions.ConflictExceptionUserNotifications.Client.exceptions.ResourceNotFoundExceptionUserNotifications.Client.exceptions.ThrottlingException