"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,jsiiDeprecationWarnings.aws_cdk_lib_IStackSynthesizer(parentDeployment)}bind(stack){if(jsiiDeprecationWarnings.aws_cdk_lib_Stack(stack),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){return jsiiDeprecationWarnings.aws_cdk_lib_FileAssetSource(asset),this.parentDeployment.addFileAsset(asset)}addDockerImageAsset(asset){return jsiiDeprecationWarnings.aws_cdk_lib_DockerImageAssetSource(asset),this.parentDeployment.addDockerImageAsset(asset)}synthesize(session){jsiiDeprecationWarnings.aws_cdk_lib_ISynthesisSession(session),_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.13.0"};
//# sourceMappingURL=nested.js.map
