@faceteer/cdk
Version:
CDK 2.0 constructs and helpers that make composing a Lambda powered service easier.
16 lines (15 loc) • 777 B
TypeScript
import * as sqs from 'aws-cdk-lib/aws-sqs';
import * as lambdaEventSources from 'aws-cdk-lib/aws-lambda-event-sources';
import { Construct } from 'constructs';
import { QueueHandlerDefinition } from '../handlers/queue-handler';
import { BaseFunction, BaseFunctionProps } from './base-function';
export interface ServiceQueueFunctionProps extends BaseFunctionProps<QueueHandlerDefinition> {
}
export declare class ServiceQueueFunction extends BaseFunction<QueueHandlerDefinition> {
readonly queue: sqs.Queue;
readonly dlq: sqs.Queue;
readonly queueEnvironmentVariable: string;
readonly dlqEnvironmentVariable: string;
readonly eventSource: lambdaEventSources.SqsEventSource;
constructor(scope: Construct, id: string, props: ServiceQueueFunctionProps);
}