Skip to content

SendConnectorEvent

Source: src/AWS/IoTManagedIntegrations/SendConnectorEvent.ts

Runtime binding for iotmanagedintegrations:SendConnectorEvent (account-level).

The cloud-to-cloud connector data plane: a connector Lambda calls this to push third-party device events (state reports, discovery results, command responses) into Managed integrations. Provide the implementation with Effect.provide(AWS.IoTManagedIntegrations.SendConnectorEventHttp).

const sendConnectorEvent = yield* IoTManagedIntegrations.SendConnectorEvent();
yield* sendConnectorEvent({
ConnectorId: connectorId,
Operation: "DEVICE_EVENT",
ConnectorDeviceId: "third-party-device-1",
Devices: [
{
ConnectorDeviceId: "third-party-device-1",
CapabilityReport: capabilityReport,
},
],
});