UNPKG

awscdk-construct-ad-decision-server

Version:

AWS CDK Construct to upload local files to S3 and make them publicly available via CloudFront

19 lines (18 loc) 591 B
import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs'; import { Construct } from 'constructs'; export interface Creative { readonly duration: number; readonly url: string; readonly delivery: string; readonly mimeType: string; readonly width: number; readonly height: number; } export interface LambdaProps { readonly creatives: Creative[]; readonly clearanceRule: 'LONGEST_FIRST' | 'SEQUENCIAL'; } export declare class Lambda extends Construct { readonly func: NodejsFunction; constructor(scope: Construct, id: string, props: LambdaProps); }