> For the complete documentation index, see [llms.txt](https://haneyume-notes.gitbook.io/my-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://haneyume-notes.gitbook.io/my-notes/aws-code-snippets/cdk/lambda-greater-than-eventbridge.md).

# Lambda -> EventBridge

## 🔥 Import

```typescript
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as destinations from 'aws-cdk-lib/aws-lambda-destinations';

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

## 🔥 Code

```typescript
declare const myFunction: lambda.Function;
declare const myEventBus: events.EventBus;

myFunction.addEventSource(new destinations.EventBridgeDestination(myEventBus));
```
