UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 565 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApproveLambdaFunction=void 0;const path=require("path"),lambda=require("../../../aws-lambda");class ApproveLambdaFunction extends lambda.Function{constructor(scope,id,props){super(scope,id,{...props,code:lambda.Code.fromAsset(path.join(__dirname,"approve-lambda")),handler:"index.handler",runtime:lambda.determineLatestNodeRuntime(scope)}),this.node.addMetadata("aws:cdk:is-custom-resource-handler-runtime-family",this.runtime.family)}}exports.ApproveLambdaFunction=ApproveLambdaFunction;