Skip to content

toQueue

Source: src/AWS/EventBridge/ToQueue.ts

Routes matching events from an EventBridge bus to an SQS queue.

Creates a Rule targeting the queue and binds a queue policy that allows events.amazonaws.com to send messages from that rule. Usually reached through the events(...) builder rather than called directly.

yield* AWS.EventBridge.events(bus, { source: ["my.app"] }).toQueue(queue);