Skip to main content

notification_configurations

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

Overview

Namenotification_configurations
TypeResource
Idaws.iot_managed_integrations.notification_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp value of when the notification configuration was created.
destination_namestringThe name of the destination for the notification configuration. (pattern: <code>[\p{L}\p{N} ._-]+</code>)
event_typestringThe type of event triggering a device notification to the customer-managed destination. (DEVICE_COMMAND, DEVICE_COMMAND_REQUEST, DEVICE_DISCOVERY_STATUS, DEVICE_EVENT, DEVICE_LIFE_CYCLE, DEVICE_STATE, DEVICE_OTA, DEVICE_WSS, CONNECTOR_ASSOCIATION, ACCOUNT_ASSOCIATION, CONNECTOR_ERROR_REPORT)
tagsobjectA set of key/value pairs that are used to manage the notification configuration.
updated_atstring (date-time)The timestamp value of when the notification configuration was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_notification_configurationselectevent_type, regionGet a notification configuration for a specified event type.
list_notification_configurationsselectregionMaxResults, NextTokenList all notification configurations.
create_notification_configurationinsertregion, EventType, DestinationNameCreates a notification configuration. A configuration is a connection between an event type and a destination that you have already created.
update_notification_configurationupdateevent_type, region, DestinationNameUpdate a notification configuration.
delete_notification_configurationdeleteevent_type, regionDeletes a notification configuration.

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
event_typestringThe type of event triggering a device notification to the customer-managed destination.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of results to return at one time.
NextTokenstringA token that can be used to retrieve the next set of results.

SELECT examples

Get a notification configuration for a specified event type.

SELECT
created_at,
destination_name,
event_type,
tags,
updated_at
FROM aws.iot_managed_integrations.notification_configurations
WHERE event_type = '{{ event_type }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a notification configuration. A configuration is a connection between an event type and a destination that you have already created.

INSERT INTO aws.iot_managed_integrations.notification_configurations (
EventType,
DestinationName,
ClientToken,
Tags,
region
)
SELECT
'{{ EventType }}' /* required */,
'{{ DestinationName }}' /* required */,
'{{ ClientToken }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
event_type
;

UPDATE examples

Update a notification configuration.

UPDATE aws.iot_managed_integrations.notification_configurations
SET
DestinationName = '{{ DestinationName }}'
WHERE
event_type = '{{ event_type }}' --required
AND region = '{{ region }}' --required
AND DestinationName = '{{ DestinationName }}' --required;

DELETE examples

Deletes a notification configuration.

DELETE FROM aws.iot_managed_integrations.notification_configurations
WHERE event_type = '{{ event_type }}' --required
AND region = '{{ region }}' --required
;