UNPKG

@faceteer/cdk

Version:

CDK 2.0 constructs and helpers that make composing a Lambda powered service easier.

12 lines (11 loc) 544 B
import * as events from 'aws-cdk-lib/aws-events'; import { Construct } from 'constructs'; import { EventHandlerDefinition } from '../handlers'; import { BaseFunction, BaseFunctionProps } from './base-function'; export interface ServiceEventFunctionProps extends BaseFunctionProps<EventHandlerDefinition> { eventBus: events.IEventBus; } export declare class ServiceEventFunction extends BaseFunction<EventHandlerDefinition> { readonly rule: events.Rule; constructor(scope: Construct, id: string, props: ServiceEventFunctionProps); }