import { Construct } from '@aws-cdk/core' ; import { LayerVersion , Code } from '@aws-cdk/aws-lambda' ; /**
 * Lambda layer which includes chromium, enabling lambdas to use Puppeteer
 */ export default class ChromeLambdaLayer extends LayerVersion { constructor ( scope , id ) { super ( scope , id , { code : Code . fromAsset ( '../lambda/chromelayer' ) , } ) ; } }