UNPKG

@faceteer/cdk

Version:

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

15 lines (14 loc) 748 B
import * as lambdaEventSources from 'aws-cdk-lib/aws-lambda-event-sources'; import * as sns from 'aws-cdk-lib/aws-sns'; import * as sqs from 'aws-cdk-lib/aws-sqs'; import { Construct } from 'constructs'; import { NotificationHandlerDefinition } from '../handlers'; import { BaseFunction, BaseFunctionProps } from './base-function'; export interface ServiceNotificationFunctionProps extends BaseFunctionProps<NotificationHandlerDefinition> { topic: sns.Topic; } export declare class ServiceNotificationFunction extends BaseFunction<NotificationHandlerDefinition> { readonly dlq: sqs.Queue; readonly eventSource: lambdaEventSources.SnsEventSource; constructor(scope: Construct, id: string, props: ServiceNotificationFunctionProps); }