Skip to main content

event-bus

Overview of the event-bus module in the @serverless-stack/node package.

import { ... } from "@serverless-stack/node/event-bus"

The event-bus module has the following exports.


Properties

The properties let you access the resources that are bound to the function.


EventBus

This module helps with accessing EventBus constructs.

import { EventBus } from "@serverless-stack/node/event-bus";

eventBusName

Type : string

The name of the EventBridge event bus.

console.log(EventBus.myBus.eventBusName);