UNPKG

365 BTypeScriptView Raw
1import { IFunction } from './function-base';
2/**
3 * An abstract class which represents an AWS Lambda event source.
4 */
5export interface IEventSource {
6 /**
7 * Called by `lambda.addEventSource` to allow the event source to bind to this
8 * function.
9 *
10 * @param target That lambda function to bind to.
11 */
12 bind(target: IFunction): void;
13}