1 | import { Handler } from "../handler";
|
2 |
|
3 | export type EventBridgeHandler<TDetailType extends string, TDetail, TResult> = Handler<
|
4 | EventBridgeEvent<TDetailType, TDetail>,
|
5 | TResult
|
6 | >;
|
7 |
|
8 | export interface EventBridgeEvent<TDetailType extends string, TDetail> {
|
9 | id: string;
|
10 | version: string;
|
11 | account: string;
|
12 | time: string;
|
13 | region: string;
|
14 | resources: string[];
|
15 | source: string;
|
16 | "detail-type": TDetailType;
|
17 | detail: TDetail;
|
18 | "replay-name"?: string;
|
19 | }
|