"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.StackSynthesizer=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),_shared_1=require("./_shared");class StackSynthesizer{synthesizeStackTemplate(stack,session){try{jsiiDeprecationWarnings.aws_cdk_lib_Stack(stack),jsiiDeprecationWarnings.aws_cdk_lib_ISynthesisSession(session)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.synthesizeStackTemplate),error}stack._synthesizeTemplate(session)}emitStackArtifact(stack,session,options={}){var _b;try{jsiiDeprecationWarnings.aws_cdk_lib_Stack(stack),jsiiDeprecationWarnings.aws_cdk_lib_ISynthesisSession(session),jsiiDeprecationWarnings.aws_cdk_lib_SynthesizeStackArtifactOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.emitStackArtifact),error}_shared_1.addStackArtifactToAssembly(session,stack,options!=null?options:{},(_b=options.additionalDependencies)!==null&&_b!==void 0?_b:[])}}exports.StackSynthesizer=StackSynthesizer,_a=JSII_RTTI_SYMBOL_1,StackSynthesizer[_a]={fqn:"aws-cdk-lib.StackSynthesizer",version:"2.21.0"};
//# sourceMappingURL=stack-synthesizer.js.map
