"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.KubectlLayer=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 KubectlLayer 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/kubectl/kubectl and /opt/helm/helm"})}}exports.KubectlLayer=KubectlLayer,_a=JSII_RTTI_SYMBOL_1,KubectlLayer[_a]={fqn:"aws-cdk-lib.lambda_layer_kubectl.KubectlLayer",version:"2.13.0"};function hashFile(fileName){return crypto.createHash("sha256").update(fs.readFileSync(fileName)).digest("hex")}
//# sourceMappingURL=kubectl-layer.js.map
