"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.NestedStackSynthesizer=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),_shared_1=require("./_shared"),stack_synthesizer_1=require("./stack-synthesizer");class NestedStackSynthesizer extends stack_synthesizer_1.StackSynthesizer{constructor(parentDeployment){super(),this.parentDeployment=parentDeployment;try{jsiiDeprecationWarnings.aws_cdk_lib_IStackSynthesizer(parentDeployment)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.constructor),error}}bind(stack){try{jsiiDeprecationWarnings.aws_cdk_lib_Stack(stack)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}if(this.stack!==void 0)throw new Error("A StackSynthesizer can only be used for one Stack: create a new instance to use with a different Stack");this.stack=stack}addFileAsset(asset){try{jsiiDeprecationWarnings.aws_cdk_lib_FileAssetSource(asset)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.addFileAsset),error}return this.parentDeployment.addFileAsset(asset)}addDockerImageAsset(asset){try{jsiiDeprecationWarnings.aws_cdk_lib_DockerImageAssetSource(asset)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.addDockerImageAsset),error}return this.parentDeployment.addDockerImageAsset(asset)}synthesize(session){try{jsiiDeprecationWarnings.aws_cdk_lib_ISynthesisSession(session)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.synthesize),error}_shared_1.assertBound(this.stack),this.synthesizeStackTemplate(this.stack,session)}}exports.NestedStackSynthesizer=NestedStackSynthesizer,_a=JSII_RTTI_SYMBOL_1,NestedStackSynthesizer[_a]={fqn:"aws-cdk-lib.NestedStackSynthesizer",version:"2.24.1"};
//# sourceMappingURL=nested.js.map
