Skip to content

DescribeEventBus

Source: src/AWS/EventBridge/DescribeEventBus.ts

Reads the configuration of an EventBridge event bus (events:DescribeEventBus).

Bind this operation to an EventBus inside a function runtime to get a callable that automatically injects the bus name. Provide the DescribeEventBusHttp layer on the Function to satisfy the binding.

// init — bind the bus (provide AWS.EventBridge.DescribeEventBusHttp on the Function)
const describeEventBus = yield* AWS.EventBridge.DescribeEventBus(bus);
// runtime — read the bus configuration
const info = yield* describeEventBus();
console.log(info.Arn, info.Policy);