# EventDestination

An event destination.

Obtainable from: EventDestination.cloudWatchDimensions, EventDestination.eventBus, EventDestination.firehoseDeliveryStream, EventDestination.snsTopic

- Source: [`aws-ses/lib/configuration-set-event-destination.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ses/lib/configuration-set-event-destination.ts#L60)
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

TypeScript:

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

declare const myConfigurationSet: ses.ConfigurationSet;

const bus = events.EventBus.fromEventBusName(this, 'EventBus', 'default');

myConfigurationSet.addEventDestination('ToEventBus', {
  destination: ses.EventDestination.eventBus(bus),
})
```

Python:

```python
import aws_cdk.aws_events as events

# my_configuration_set: ses.ConfigurationSet

bus = events.EventBus.from_event_bus_name(self, "EventBus", "default")

my_configuration_set.add_event_destination("ToEventBus",
    destination=ses.EventDestination.event_bus(bus)
)
```

Java:

```java
import software.amazon.awscdk.services.events.*;

ConfigurationSet myConfigurationSet;

IEventBus bus = EventBus.fromEventBusName(this, "EventBus", "default");

myConfigurationSet.addEventDestination("ToEventBus", ConfigurationSetEventDestinationOptions.builder()
        .destination(EventDestination.eventBus(bus))
        .build());
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
using Amazon.CDK.AWS.Events;

ConfigurationSet myConfigurationSet;

var bus = EventBus.FromEventBusName(this, "EventBus", "default");

myConfigurationSet.AddEventDestination("ToEventBus", new ConfigurationSetEventDestinationOptions {
    Destination = EventDestination.EventBus(bus)
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
import events "github.com/aws/aws-cdk-go/awscdk"

var myConfigurationSet ConfigurationSet

bus := events.EventBus_FromEventBusName(this, jsii.String("EventBus"), jsii.String("default"))

myConfigurationSet.AddEventDestination(jsii.String("ToEventBus"), &ConfigurationSetEventDestinationOptions{
	Destination: ses.EventDestination_EventBus(bus),
})
```

## Initializer

TypeScript:

```ts
new EventDestination()
```

Python:

```python
EventDestination()
```

Java:

```java
new EventDestination()
```

C# / .NET:

```csharp
new EventDestination()
```

Golang:

```go
NewEventDestination()
```

## Properties

- `bus`: [IEventBusRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_events.IEventBusRef.html) — Use Event Bus as event destination.

  **Default:** do not send events to Event bus

- `dimensions`: [CloudWatchDimension](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.CloudWatchDimension.html)[] — A list of CloudWatch dimensions upon which to categorize your emails.

  **Default:** do not send events to CloudWatch

- `stream`: [FirehoseDeliveryStreamDestination](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.FirehoseDeliveryStreamDestination.html) — Use Firehose Delivery Stream.

  **Default:** do not send events to Firehose Delivery Stream

- `topic`: [ITopic](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sns.ITopic.html) — A SNS topic to use as event destination.

  **Default:** do not send events to a SNS topic

## Methods

- `cloudWatchDimensions(dimensions: CloudWatchDimension[]): EventDestination // chainable` (static) — Use CloudWatch dimensions as event destination.

- `eventBus(eventBus: IEventBusRef): EventDestination // chainable` (static) — Use Event Bus as event destination.

- `firehoseDeliveryStream(stream: FirehoseDeliveryStreamDestination): EventDestination // chainable` (static) — Use Firehose Delivery Stream as event destination.

- `snsTopic(topic: ITopic): EventDestination // chainable` (static) — Use a SNS topic as event destination.
