# EventBridgeDestination

Use an Amazon EventBridge event bus as an event destination.

Implements: [IEventDestination](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.IEventDestination.html)

- Source: [`aws-appconfig/lib/extension.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-appconfig/lib/extension.ts#L141)
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

TypeScript:

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

new appconfig.Extension(this, 'MyExtension', {
  actions: [
    new appconfig.Action({
      actionPoints: [appconfig.ActionPoint.ON_DEPLOYMENT_START],
      eventDestination: new appconfig.EventBridgeDestination(bus),
    }),
  ],
});
```

Python:

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

appconfig.Extension(self, "MyExtension",
    actions=[
        appconfig.Action(
            action_points=[appconfig.ActionPoint.ON_DEPLOYMENT_START],
            event_destination=appconfig.EventBridgeDestination(bus)
        )
    ]
)
```

Java:

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

Extension.Builder.create(this, "MyExtension")
        .actions(List.of(
            Action.Builder.create()
                    .actionPoints(List.of(ActionPoint.ON_DEPLOYMENT_START))
                    .eventDestination(new EventBridgeDestination(bus))
                    .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
var bus = EventBus.FromEventBusName(this, "MyEventBus", "default");

new Extension(this, "MyExtension", new ExtensionProps {
    Actions = new [] {
        new Action(new ActionProps {
            ActionPoints = new [] { ActionPoint.ON_DEPLOYMENT_START },
            EventDestination = new EventBridgeDestination(bus)
        }) }
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
bus := events.EventBus_FromEventBusName(this, jsii.String("MyEventBus"), jsii.String("default"))

appconfig.NewExtension(this, jsii.String("MyExtension"), &ExtensionProps{
	Actions: []Action{
		appconfig.NewAction(&ActionProps{
			ActionPoints: []ActionPoint{
				appconfig.ActionPoint_ON_DEPLOYMENT_START,
			},
			EventDestination: appconfig.NewEventBridgeDestination(bus),
		}),
	},
})
```

## Initializer

TypeScript:

```ts
new EventBridgeDestination(bus: IEventBusRef)
```

Python:

```python
EventBridgeDestination(bus: IEventBusRef)
```

Java:

```java
new EventBridgeDestination(IEventBusRef bus)
```

C# / .NET:

```csharp
new EventBridgeDestination(IEventBusRef bus)
```

Golang:

```go
NewEventBridgeDestination(Bus IEventBusRef)
```

## Properties

- `extensionUri`: string — The URI of the extension event destination.

- `type`: [SourceType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.SourceType.html) — The type of the extension event destination.
