"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AssetManifestArtifact=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),path=require("path"),cloud_artifact_1=require("../cloud-artifact"),ASSET_MANIFEST_ARTIFACT_SYM=Symbol.for("@aws-cdk/cx-api.AssetManifestArtifact");class AssetManifestArtifact extends cloud_artifact_1.CloudArtifact{constructor(assembly,name,artifact){var _b;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,this.constructor),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=(_b=properties.requiresBootstrapStackVersion)!==null&&_b!==void 0?_b:1,this.bootstrapStackVersionSsmParameter=properties.bootstrapStackVersionSsmParameter}static isAssetManifestArtifact(art){return art&&typeof art=="object"&&art[ASSET_MANIFEST_ARTIFACT_SYM]}}exports.AssetManifestArtifact=AssetManifestArtifact,_a=JSII_RTTI_SYMBOL_1,AssetManifestArtifact[_a]={fqn:"aws-cdk-lib.cx_api.AssetManifestArtifact",version:"2.24.1"},Object.defineProperty(AssetManifestArtifact.prototype,ASSET_MANIFEST_ARTIFACT_SYM,{value:!0,enumerable:!1,writable:!1});
//# sourceMappingURL=asset-manifest-artifact.js.map
