"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.LinuxArmLambdaBuildImage=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var compute_type_1=()=>{var tmp=require("./compute-type");return compute_type_1=()=>tmp,tmp},run_script_linux_build_spec_1=()=>{var tmp=require("./private/run-script-linux-build-spec");return run_script_linux_build_spec_1=()=>tmp,tmp},project_1=()=>{var tmp=require("./project");return project_1=()=>tmp,tmp};class LinuxArmLambdaBuildImage{static fromCodeBuildImageId(id){return new LinuxArmLambdaBuildImage({imageId:id})}constructor(props){this.type="ARM_LAMBDA_CONTAINER",this.defaultComputeType=compute_type_1().ComputeType.LAMBDA_1GB,this.imageId=props.imageId}validate(buildEnvironment){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codebuild_BuildEnvironment(buildEnvironment)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.validate),error}const errors=[];return buildEnvironment.privileged&&errors.push("Lambda compute type does not support privileged mode"),buildEnvironment.computeType&&!(0,project_1().isLambdaComputeType)(buildEnvironment.computeType)&&errors.push(["Lambda images only support Lambda ComputeTypes between",`'${compute_type_1().ComputeType.LAMBDA_1GB}'`,"and",`'${compute_type_1().ComputeType.LAMBDA_10GB}',`,`got '${buildEnvironment.computeType}'`].join(" ")),errors}runScriptBuildspec(entrypoint){return(0,run_script_linux_build_spec_1().runScriptLinuxBuildSpec)(entrypoint)}}exports.LinuxArmLambdaBuildImage=LinuxArmLambdaBuildImage,_a=JSII_RTTI_SYMBOL_1,LinuxArmLambdaBuildImage[_a]={fqn:"aws-cdk-lib.aws_codebuild.LinuxArmLambdaBuildImage",version:"2.159.0"},LinuxArmLambdaBuildImage.AMAZON_LINUX_2_NODE_18=LinuxArmLambdaBuildImage.fromCodeBuildImageId("aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs18"),LinuxArmLambdaBuildImage.AMAZON_LINUX_2023_NODE_20=LinuxArmLambdaBuildImage.fromCodeBuildImageId("aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs20"),LinuxArmLambdaBuildImage.AMAZON_LINUX_2_PYTHON_3_11=LinuxArmLambdaBuildImage.fromCodeBuildImageId("aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.11"),LinuxArmLambdaBuildImage.AMAZON_LINUX_2023_PYTHON_3_12=LinuxArmLambdaBuildImage.fromCodeBuildImageId("aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12"),LinuxArmLambdaBuildImage.AMAZON_LINUX_2_RUBY_3_2=LinuxArmLambdaBuildImage.fromCodeBuildImageId("aws/codebuild/amazonlinux-aarch64-lambda-standard:ruby3.2"),LinuxArmLambdaBuildImage.AMAZON_LINUX_2023_CORRETTO_21=LinuxArmLambdaBuildImage.fromCodeBuildImageId("aws/codebuild/amazonlinux-aarch64-lambda-standard:corretto21"),LinuxArmLambdaBuildImage.AMAZON_LINUX_2_CORRETTO_17=LinuxArmLambdaBuildImage.fromCodeBuildImageId("aws/codebuild/amazonlinux-aarch64-lambda-standard:corretto17"),LinuxArmLambdaBuildImage.AMAZON_LINUX_2_CORRETTO_11=LinuxArmLambdaBuildImage.fromCodeBuildImageId("aws/codebuild/amazonlinux-aarch64-lambda-standard:corretto11"),LinuxArmLambdaBuildImage.AMAZON_LINUX_2_GO_1_21=LinuxArmLambdaBuildImage.fromCodeBuildImageId("aws/codebuild/amazonlinux-aarch64-lambda-standard:go1.21"),LinuxArmLambdaBuildImage.AMAZON_LINUX_2_DOTNET_6=LinuxArmLambdaBuildImage.fromCodeBuildImageId("aws/codebuild/amazonlinux-aarch64-lambda-standard:dotnet6"),LinuxArmLambdaBuildImage.AMAZON_LINUX_2023_DOTNET_8=LinuxArmLambdaBuildImage.fromCodeBuildImageId("aws/codebuild/amazonlinux-aarch64-lambda-standard:dotnet8");
