Skip to content

BrokerEventSource

Source: src/AWS/MQ/BrokerEventSource.ts

Event source connecting an Amazon MQ Broker to the hosting Lambda function. Prefer the consumeBrokerMessages helper; this service is the underlying contract, implemented by the Lambda.BrokerEventSource layer (which registers the event-source mapping, IAM grants, and runtime dispatch).

// equivalent to consumeBrokerMessages(broker, props, process)
yield* BrokerEventSource.use((source) =>
source(broker, props, process),
);