@faceteer/cdk
Version:
CDK 2.0 constructs and helpers that make composing a Lambda powered service easier.
16 lines (15 loc) • 761 B
TypeScript
import * as apigwv2 from 'aws-cdk-lib/aws-apigatewayv2';
import { Construct } from 'constructs';
import type { ApiHandlerDefinition } from '../handlers/api-handler';
import { LambdaServiceProps } from './lambda-service';
import { BaseFunction, BaseFunctionProps } from './base-function';
export interface ServiceApiFunctionProps extends BaseFunctionProps<ApiHandlerDefinition> {
httpApi: apigwv2.CfnApi;
authorizer?: apigwv2.CfnAuthorizer;
defaultScopes?: LambdaServiceProps['defaultScopes'];
}
export declare class ServiceApiFunction extends BaseFunction<ApiHandlerDefinition> {
readonly route: apigwv2.CfnRoute;
readonly integration: apigwv2.CfnIntegration;
constructor(scope: Construct, id: string, props: ServiceApiFunctionProps);
}