# ConfigurationSetEventDestinationOptions

Options for a configuration set event destination.

- Source: [`aws-ses/lib/configuration-set-event-destination.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-ses/lib/configuration-set-event-destination.ts#L29)
- Type last changed: v2.74.0 · 13 Apr 2023

## 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),
})
```

## Properties

- `configurationSetEventDestinationName`: string — A name for the configuration set event destination.

  **Default:** a CloudFormation generated name

- `destination`: [EventDestination](/cdk/api/v2/docs/aws-cdk-lib.aws_ses.EventDestination.html) (required) — The event destination.

- `enabled`: boolean = true — Whether Amazon SES publishes events to this destination.

- `events`: [EmailSendingEvent](/cdk/api/v2/docs/aws-cdk-lib.aws_ses.EmailSendingEvent.html)[] — The type of email sending events to publish to the event destination.

  **Default:** send all event types
