Skip to content

EventBus

Source: src/AWS/EventBridge/EventBus.ts

An Amazon EventBridge event bus for receiving and routing events.

Custom Event Bus

const bus = yield* EventBus("MyAppEvents", {
description: "Custom event bus for my application",
});

Event Bus with Dead Letter Queue

const bus = yield* EventBus("ReliableBus", {
deadLetterConfig: {
Arn: yield* dlq.queueArn,
},
});

Event Bus with KMS Encryption

const bus = yield* EventBus("EncryptedBus", {
kmsKeyIdentifier: yield* key.keyArn(),
});