"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BootstraplessSynthesizer=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var default_synthesizer_1=()=>{var tmp=require("./default-synthesizer");return default_synthesizer_1=()=>tmp,tmp},errors_1=()=>{var tmp=require("../errors");return errors_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../private/literal-string");return literal_string_1=()=>tmp,tmp};class BootstraplessSynthesizer extends default_synthesizer_1().DefaultStackSynthesizer{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.BootstraplessSynthesizer",version:"2.256.1"};constructor(props={}){super({deployRoleArn:props.deployRoleArn,cloudFormationExecutionRole:props.cloudFormationExecutionRoleArn,generateBootstrapVersionRule:!1,qualifier:props.qualifier});try{jsiiDeprecationWarnings().aws_cdk_lib_BootstraplessSynthesizerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,BootstraplessSynthesizer),error}}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}throw new(errors_1()).UnscopedValidationError((0,literal_string_1().lit)`CannotAddAssetsStackUses`,"Cannot add assets to a Stack that uses the BootstraplessSynthesizer")}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}throw new(errors_1()).UnscopedValidationError((0,literal_string_1().lit)`CannotAddAssetsStackUses`,"Cannot add assets to a Stack that uses the BootstraplessSynthesizer")}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}this.synthesizeStackTemplate(this.boundStack,session),this.emitArtifact(session,{assumeRoleArn:this.deployRoleArn,cloudFormationExecutionRoleArn:this.cloudFormationExecutionRoleArn})}}exports.BootstraplessSynthesizer=BootstraplessSynthesizer;
