Skip to main content

notifications

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

Overview

Namenotifications
TypeResource
Idaws.connect.notifications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the notification.
contentobjectThe localized content of the notification. A map where keys are locale codes and values are the notification text in that locale.
created_atstring (date-time)The timestamp when the notification was created.
expires_atstring (date-time)The timestamp when the notification expires and is no longer displayed to users.
idstringThe unique identifier for a notification.
last_modified_regionstringThe AWS Region where the notification was last modified. (pattern: <code>[a-z]{2}(-[a-z]+){1,2}(-[0-9])?</code>)
last_modified_timestring (date-time)The timestamp when the notification was last modified.
prioritystringThe priority level of the notification. Valid values are URGENT, HIGH, and LOW. (URGENT, HIGH, LOW)
recipientsarrayA list of recipient Amazon Resource Names (ARNs). Maximum of 200 recipients.
tagsobjectThe tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_notificationselectinstance_id, notification_id, regionRetrieves detailed information about a specific notification, including its content, priority, recipients, and metadata.
list_notificationsselectinstance_id, regionnextToken, maxResultsRetrieves a paginated list of all notifications in the Amazon Connect instance.
search_notificationsselectregionSearches for notifications based on specified criteria and filters. Returns a paginated list of notifications matching the search parameters, ordered by descending creation time. Supports filtering by content and tags.
create_notificationinsertinstance_id, region, Recipients, ContentCreates a new notification to be delivered to specified recipients. Notifications can include localized content with links, and an optional expiration time. Recipients can be specified as individual user ARNs or instance ARNs to target all users in an instance.
update_notification_contentupdateinstance_id, notification_id, region, ContentUpdates the localized content of an existing notification. This operation applies to all users for whom the notification was sent.
delete_notificationdeleteinstance_id, notification_id, regionDeletes a notification. Once deleted, the notification is no longer visible to all users and cannot be managed through the Admin Website or APIs.

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
instance_idstringThe identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
notification_idstringThe unique identifier for the notification to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per page. Valid range is 1-100.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response to retrieve the next page of results.

SELECT examples

Retrieves detailed information about a specific notification, including its content, priority, recipients, and metadata.

SELECT
arn,
content,
created_at,
expires_at,
id,
last_modified_region,
last_modified_time,
priority,
recipients,
tags
FROM aws.connect.notifications
WHERE instance_id = '{{ instance_id }}' -- required
AND notification_id = '{{ notification_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new notification to be delivered to specified recipients. Notifications can include localized content with links, and an optional expiration time. Recipients can be specified as individual user ARNs or instance ARNs to target all users in an instance.

INSERT INTO aws.connect.notifications (
ExpiresAt,
Recipients,
Priority,
Content,
Tags,
PredefinedNotificationId,
ClientToken,
instance_id,
region
)
SELECT
'{{ ExpiresAt }}',
'{{ Recipients }}' /* required */,
'{{ Priority }}',
'{{ Content }}' /* required */,
'{{ Tags }}',
'{{ PredefinedNotificationId }}',
'{{ ClientToken }}',
'{{ instance_id }}',
'{{ region }}'
RETURNING
notification_arn,
notification_id
;

UPDATE examples

Updates the localized content of an existing notification. This operation applies to all users for whom the notification was sent.

UPDATE aws.connect.notifications
SET
Content = '{{ Content }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND notification_id = '{{ notification_id }}' --required
AND region = '{{ region }}' --required
AND Content = '{{ Content }}' --required;

DELETE examples

Deletes a notification. Once deleted, the notification is no longer visible to all users and cannot be managed through the Admin Website or APIs.

DELETE FROM aws.connect.notifications
WHERE instance_id = '{{ instance_id }}' --required
AND notification_id = '{{ notification_id }}' --required
AND region = '{{ region }}' --required
;