Skip to main content

notification_hubs

Creates, updates, deletes, gets or lists a notification_hubs resource.

Overview

Namenotification_hubs
TypeResource
Idaws.notifications.notification_hubs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The date and time the NotificationHubOverview was created.
last_activation_timestring (date-time)The most recent time this NotificationHub had an ACTIVE status.
notification_hub_regionstringThe Region of the resource. (pattern: <code>([a-z]{1,2})-([a-z]{1,15}-)+([0-9])</code>)
status_summaryobjectThe status summary of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_notification_hubsselectregionmaxResults, nextTokenReturns a list of NotificationHubs.
register_notification_hubinsertregion, notificationHubRegionRegisters 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.
deregister_notification_hubdeletenotification_hub_region, regionDeregisters a NotificationConfiguration in the specified Region. 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
notification_hub_regionstringThe NotificationConfiguration Region.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of records to list in a single response.
nextTokenstringA pagination token. Set to null to start listing notification hubs from the start.

SELECT examples

Returns a list of NotificationHubs.

SELECT
creation_time,
last_activation_time,
notification_hub_region,
status_summary
FROM aws.notifications.notification_hubs
WHERE region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

INSERT examples

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.

INSERT INTO aws.notifications.notification_hubs (
notificationHubRegion,
region
)
SELECT
'{{ notificationHubRegion }}' /* required */,
'{{ region }}'
RETURNING
creation_time,
last_activation_time,
notification_hub_region,
status_summary
;

DELETE examples

Deregisters a NotificationConfiguration in the specified Region. 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.

DELETE FROM aws.notifications.notification_hubs
WHERE notification_hub_region = '{{ notification_hub_region }}' --required
AND region = '{{ region }}' --required
;