"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.NodeProxyAgentLayer=void 0;const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),crypto=require("crypto"),fs=require("fs"),path=require("path"),lambda=require("../../aws-lambda");class NodeProxyAgentLayer extends lambda.LayerVersion{constructor(scope,id){super(scope,id,{code:lambda.Code.fromAsset(path.join(__dirname,"layer.zip"),{assetHash:hashFile(path.join(__dirname,"..","layer","Dockerfile"))}),description:"/opt/nodejs/node_modules/proxy-agent"})}}exports.NodeProxyAgentLayer=NodeProxyAgentLayer,_a=JSII_RTTI_SYMBOL_1,NodeProxyAgentLayer[_a]={fqn:"aws-cdk-lib.lambda_layer_node_proxy_agent.NodeProxyAgentLayer",version:"2.24.1"};function hashFile(fileName){return crypto.createHash("sha256").update(fs.readFileSync(fileName)).digest("hex")}
//# sourceMappingURL=node-proxy-agent-layer.js.map
