# EventBusProps

Properties to define an event bus.

Extends: EventBusProps
Used as props by: EventBus

- Source: [`aws-events/lib/event-bus.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-events/lib/event-bus.ts#L131)
- Type last changed: v2.216.0 · 22 Sep 2025

## Example

```ts
import * as events from 'aws-cdk-lib/aws-events';

const myEventBus = new events.EventBus(this, 'EventBus', {
  eventBusName: 'MyEventBus1',
});

new tasks.EventBridgePutEvents(this, 'Send an event to EventBridge', {
  entries: [{
    detail: sfn.TaskInput.fromObject({
      Message: 'Hello from Step Functions!',
    }),
    eventBus: myEventBus,
    detailType: 'MessageFromStepFunctions',
    source: 'step.functions',
  }],
});
```

## Properties

- `deadLetterQueue`: [IQueue](/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.IQueue.html) — Dead-letter queue for the event bus.

  **Default:** no dead-letter queue

- `description`: string — The event bus description.

  **Default:** no description

  The description can be up to 512 characters long.

- `eventBusName`: string — The name of the event bus you are creating Note: If 'eventSourceName' is passed in, you cannot set this.

  **Default:** automatically generated name

- `eventSourceName`: string — The partner event source to associate with this event bus resource Note: If 'eventBusName' is passed in, you cannot set this.

  **Default:** no partner event source

- `kmsKey`: [IKey](/cdk/api/v2/docs/aws-cdk-lib.aws_kms.IKey.html) — The customer managed key that encrypt events on this event bus.

  **Default:** Use an AWS managed key

- `logConfig`: [LogConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_events.LogConfig.html) — The Logging Configuration of the Èvent Bus.

  **Default:** no logging
