All files / src/mq-esm esm-deleter.on-event-function.ts

100% Statements 26/26
100% Branches 1/1
100% Functions 1/1
100% Lines 26/26

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 261x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 11x 11x 11x 11x 11x 11x 11x 11x 11x 1x
// ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
import * as path from 'path';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import { Construct } from 'constructs';
 
/**
 * Props for EsmDeleterOnEventFunction
 */
export interface EsmDeleterOnEventFunctionProps extends lambda.FunctionOptions {
}
 
/**
 * An AWS Lambda function which executes src/mq-esm/esm-deleter.on-event.
 */
export class EsmDeleterOnEventFunction extends lambda.Function {
  constructor(scope: Construct, id: string, props?: EsmDeleterOnEventFunctionProps) {
    super(scope, id, {
      description: 'src/mq-esm/esm-deleter.on-event.lambda.ts',
      ...props,
      runtime: new lambda.Runtime('nodejs18.x', lambda.RuntimeFamily.NODEJS),
      handler: 'index.handler',
      code: lambda.Code.fromAsset(path.join(__dirname, '../../assets/mq-esm/esm-deleter.on-event.lambda')),
    });
    this.addEnvironment('AWS_NODEJS_CONNECTION_REUSE_ENABLED', '1', { removeInEdge: true });
  }
}