Skip to main content

notification_configurations

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

Overview

Namenotification_configurations
TypeResource
Idaws.notifications.notification_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the NotificationConfiguration. (pattern: <code>[A-Za-z0-9_-]+</code>)
aggregation_durationstringThe aggregation preference of the NotificationConfiguration. Values: LONG Aggregate notifications for long periods of time (12 hours). SHORT Aggregate notifications for short periods of time (5 minutes). NONE Don't aggregate notifications. (LONG, SHORT, NONE)
arnstringThe ARN of the resource. (pattern: <code>arn:aws:notifications::[0-9]{12}:configuration/[a-z0-9]{27}</code>)
creation_timestring (date-time)The creation time of the NotificationConfiguration.
descriptionstringThe description of the NotificationConfiguration. (pattern: <code>[^\u0001-\u001F\u007F-\u009F]*</code>)
statusstringThe status of this NotificationConfiguration. (ACTIVE, PARTIALLY_ACTIVE, INACTIVE, DELETING)
subtypestringThe subtype of the notification configuration returned in the response. (ACCOUNT, ADMIN_MANAGED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_notification_configurationselectarn, regionReturns a specified NotificationConfiguration.
list_notification_configurationsselectregioneventRuleSource, channelArn, status, subtype, maxResults, nextTokenReturns a list of abbreviated NotificationConfigurations according to specified filters, in reverse chronological order (newest first).
create_notification_configurationinsertregion, name, descriptionCreates a new NotificationConfiguration.
update_notification_configurationupdatearn, regionUpdates a NotificationConfiguration.
delete_notification_configurationdeletearn, regionDeletes a NotificationConfiguration.

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
arnstringThe Amazon Resource Name (ARN) of the NotificationConfiguration to delete.
regionstringAWS region (default: us-east-1)
channelArnstringThe Amazon Resource Name (ARN) of the Channel to match.
eventRuleSourcestringThe matched event source. Must match one of the valid EventBridge sources. Only Amazon Web Services service sourced events are supported. For example, aws.ec2 and aws.cloudwatch. For more information, see Event delivery from Amazon Web Services services in the Amazon EventBridge User Guide.
maxResultsintegerThe maximum number of results to be returned in this call. Defaults to 20.
nextTokenstringThe start token for paginated calls. Retrieved from the response of a previous ListEventRules call. Next token uses Base64 encoding.
statusstringThe NotificationConfiguration status to match. Values: ACTIVE All EventRules are ACTIVE and any call can be run. PARTIALLY_ACTIVE Some EventRules are ACTIVE and some are INACTIVE. Any call can be run. Any call can be run. INACTIVE All EventRules are INACTIVE and any call can be run. DELETING This NotificationConfiguration is being deleted. Only GET and LIST calls can be run.
subtypestringThe subtype used to filter the notification configurations in the request.

SELECT examples

Returns a specified NotificationConfiguration.

SELECT
name,
aggregation_duration,
arn,
creation_time,
description,
status,
subtype
FROM aws.notifications.notification_configurations
WHERE arn = '{{ arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new NotificationConfiguration.

INSERT INTO aws.notifications.notification_configurations (
name,
description,
aggregationDuration,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}' /* required */,
'{{ aggregationDuration }}',
'{{ tags }}',
'{{ region }}'
RETURNING
arn,
status
;

UPDATE examples

Updates a NotificationConfiguration.

UPDATE aws.notifications.notification_configurations
SET
name = '{{ name }}',
description = '{{ description }}',
aggregationDuration = '{{ aggregationDuration }}'
WHERE
arn = '{{ arn }}' --required
AND region = '{{ region }}' --required
RETURNING
arn;

DELETE examples

Deletes a NotificationConfiguration.

DELETE FROM aws.notifications.notification_configurations
WHERE arn = '{{ arn }}' --required
AND region = '{{ region }}' --required
;