"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AssetManifestArtifact=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var fs=()=>{var tmp=require("fs");return fs=()=>tmp,tmp},path=()=>{var tmp=require("path");return path=()=>tmp,tmp},cloud_artifact_1=()=>{var tmp=require("../cloud-artifact");return cloud_artifact_1=()=>tmp,tmp};const ASSET_MANIFEST_ARTIFACT_SYM=Symbol.for("@aws-cdk/cx-api.AssetManifestArtifact");class AssetManifestArtifact extends cloud_artifact_1().CloudArtifact{static isAssetManifestArtifact(art){return art&&typeof art=="object"&&art[ASSET_MANIFEST_ARTIFACT_SYM]}constructor(assembly,name,artifact){super(assembly,name,artifact);try{jsiiDeprecationWarnings().aws_cdk_lib_cx_api_CloudAssembly(assembly),jsiiDeprecationWarnings().aws_cdk_lib_cloud_assembly_schema_ArtifactManifest(artifact)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,AssetManifestArtifact),error}const properties=this.manifest.properties||{};if(!properties.file)throw new Error('Invalid AssetManifestArtifact. Missing "file" property');this.file=path().resolve(this.assembly.directory,properties.file),this.requiresBootstrapStackVersion=properties.requiresBootstrapStackVersion,this.bootstrapStackVersionSsmParameter=properties.bootstrapStackVersionSsmParameter}get contents(){return this._contents!==void 0?this._contents:this._contents=JSON.parse(fs().readFileSync(this.file,"utf-8"))}}exports.AssetManifestArtifact=AssetManifestArtifact,_a=JSII_RTTI_SYMBOL_1,AssetManifestArtifact[_a]={fqn:"aws-cdk-lib.cx_api.AssetManifestArtifact",version:"2.159.0"},Object.defineProperty(AssetManifestArtifact.prototype,ASSET_MANIFEST_ARTIFACT_SYM,{value:!0,enumerable:!1,writable:!1});
