Skip to content

NotificationConfiguration

Source: src/AWS/IoTManagedIntegrations/NotificationConfiguration.ts

An AWS IoT Managed Integrations notification configuration — routes one event type (device state, lifecycle, OTA, discovery, association events) to a Destination.

Managed integrations has no direct Lambda invocation path: events flow NotificationConfiguration -> Destination -> Kinesis Data Stream, so pair this resource with a Kinesis-backed destination and consume the stream with the Kinesis stream event source (Kinesis.consumeStreamRecords).

IoT Managed Integrations is a regional service available in a limited set of regions (e.g. eu-west-1, ca-central-1).

Route Device State Events to a Kinesis Destination

const destination = yield* Destination("EventDestination", {
deliveryDestinationArn: stream.streamArn,
roleArn: role.roleArn,
});
const routing = yield* NotificationConfiguration("DeviceState", {
eventType: "DEVICE_STATE",
destinationName: destination.destinationName,
});

Route Lifecycle Events with Tags

const routing = yield* NotificationConfiguration("Lifecycle", {
eventType: "DEVICE_LIFE_CYCLE",
destinationName: destination.destinationName,
tags: { team: "iot" },
});