"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.DockerImageFunction=exports.DockerImageCode=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var code_1=()=>{var tmp=require("./code");return code_1=()=>tmp,tmp},function_1=()=>{var tmp=require("./function");return function_1=()=>tmp,tmp},handler_1=()=>{var tmp=require("./handler");return handler_1=()=>tmp,tmp},runtime_1=()=>{var tmp=require("./runtime");return runtime_1=()=>tmp,tmp},aws_ecr_assets_1=()=>{var tmp=require("../../aws-ecr-assets");return aws_ecr_assets_1=()=>tmp,tmp};class DockerImageCode{static fromEcr(repository,props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ecr_IRepository(repository),jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_EcrImageCodeProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.fromEcr),error}return{_bind(){return new(code_1()).EcrImageCode(repository,props)}}}static fromImageAsset(directory,props={}){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_AssetImageCodeProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.fromImageAsset),error}return{_bind(architecture){return new(code_1()).AssetImageCode(directory,{...architecture?.dockerPlatform?{platform:aws_ecr_assets_1().Platform.custom(architecture.dockerPlatform)}:{},...props})}}}}exports.DockerImageCode=DockerImageCode,_a=JSII_RTTI_SYMBOL_1,DockerImageCode[_a]={fqn:"aws-cdk-lib.aws_lambda.DockerImageCode",version:"2.159.0"};class DockerImageFunction extends function_1().Function{constructor(scope,id,props){super(scope,id,{...props,handler:handler_1().Handler.FROM_IMAGE,runtime:runtime_1().Runtime.FROM_IMAGE,code:props.code._bind(props.architecture)});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_DockerImageFunctionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,DockerImageFunction),error}}}exports.DockerImageFunction=DockerImageFunction,_b=JSII_RTTI_SYMBOL_1,DockerImageFunction[_b]={fqn:"aws-cdk-lib.aws_lambda.DockerImageFunction",version:"2.159.0"};
