@aws-cdk/cx-api
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -88,4 +88,10 @@ export declare const ASSET_METADATA = "aws:cdk:asset"; | ||
}; | ||
/** | ||
* Docker target to build to | ||
* | ||
* @default no build target | ||
*/ | ||
readonly target?: string; | ||
} | ||
export declare type AssetMetadataEntry = FileAssetMetadataEntry | ContainerImageAssetMetadataEntry; | ||
export {}; |
@@ -27,2 +27,2 @@ "use strict"; | ||
exports.ASSET_PREFIX_SEPARATOR = '||'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYXNzZXRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQWEsUUFBQSxjQUFjLEdBQUcsZUFBZSxDQUFDO0FBRTlDOzs7O0dBSUc7QUFDVSxRQUFBLHVDQUF1QyxHQUFHLCtCQUErQixDQUFDO0FBRXZGOzs7R0FHRztBQUNVLFFBQUEsZ0NBQWdDLEdBQUcsZ0JBQWdCLENBQUM7QUFDcEQsUUFBQSxvQ0FBb0MsR0FBRyxvQkFBb0IsQ0FBQztBQUV6RTs7Ozs7Ozs7O0dBU0c7QUFDVSxRQUFBLHNCQUFzQixHQUFHLElBQUksQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBBU1NFVF9NRVRBREFUQSA9ICdhd3M6Y2RrOmFzc2V0JztcblxuLyoqXG4gKiBJZiB0aGlzIGlzIHNldCBpbiB0aGUgY29udGV4dCwgdGhlIGF3czphc3NldDp4eHggbWV0YWRhdGEgZW50cmllcyB3aWxsIG5vdCBiZVxuICogYWRkZWQgdG8gdGhlIHRlbXBsYXRlLiBUaGlzIGlzIHVzZWQsIGZvciBleGFtcGxlLCB3aGVuIHdlIHJ1biBpbnRlZ3JhdGlvbnRcbiAqIHRlc3RzLlxuICovXG5leHBvcnQgY29uc3QgQVNTRVRf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bHQgbm8gYnVpbGQgYXJncyBhcmUgcGFzc2VkXG4gICAqL1xuICByZWFkb25seSBidWlsZEFyZ3M/OiB7IFtrZXk6IHN0cmluZ106IHN0cmluZyB9O1xuXG4gIC8qKlxuICAgKiBEb2NrZXIgdGFyZ2V0IHRvIGJ1aWxkIHRvXG4gICAqXG4gICAqIEBkZWZhdWx0IG5vIGJ1aWxkIHRhcmdldFxuICAgKi9cbiAgcmVhZG9ubHkgdGFyZ2V0Pzogc3RyaW5nO1xufVxuXG5leHBvcnQgdHlwZSBBc3NldE1ldGFkYXRhRW50cnkgPSBGaWxlQXNzZXRNZXRhZGF0YUVudHJ5IHwgQ29udGFpbmVySW1hZ2VBc3NldE1ldGFkYXRhRW50cnk7XG4iXX0= |
import { CloudAssembly } from './cloud-assembly'; | ||
import { Environment } from './environment'; | ||
import { MetadataEntry, MetadataEntryResult, SynthesisMessage } from './metadata'; | ||
@@ -12,3 +11,7 @@ /** | ||
*/ | ||
AWS_CLOUDFORMATION_STACK = "aws:cloudformation:stack" | ||
AWS_CLOUDFORMATION_STACK = "aws:cloudformation:stack", | ||
/** | ||
* The artifact contains metadata generated out of the CDK application. | ||
*/ | ||
CDK_TREE = "cdk:tree" | ||
} | ||
@@ -26,3 +29,3 @@ /** | ||
*/ | ||
readonly environment: string; | ||
readonly environment?: string; | ||
/** | ||
@@ -71,4 +74,5 @@ * Associated metadata. | ||
* @param artifact The artifact manifest | ||
* @returns the `CloudArtifact` that matches the artifact type or `undefined` if it's an artifact type that is unrecognized by this module. | ||
*/ | ||
static fromManifest(assembly: CloudAssembly, id: string, artifact: ArtifactManifest): CloudArtifact; | ||
static fromManifest(assembly: CloudAssembly, id: string, artifact: ArtifactManifest): CloudArtifact | undefined; | ||
/** | ||
@@ -83,6 +87,2 @@ * The artifact's manifest | ||
/** | ||
* The environment into which to deploy this artifact. | ||
*/ | ||
readonly environment: Environment; | ||
/** | ||
* Cache of resolved dependencies. | ||
@@ -89,0 +89,0 @@ */ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const environment_1 = require("./environment"); | ||
const metadata_1 = require("./metadata"); | ||
@@ -15,2 +14,6 @@ /** | ||
ArtifactType["AWS_CLOUDFORMATION_STACK"] = "aws:cloudformation:stack"; | ||
/** | ||
* The artifact contains metadata generated out of the CDK application. | ||
*/ | ||
ArtifactType["CDK_TREE"] = "cdk:tree"; | ||
})(ArtifactType = exports.ArtifactType || (exports.ArtifactType = {})); | ||
@@ -25,3 +28,2 @@ /** | ||
this.manifest = manifest; | ||
this.environment = environment_1.EnvironmentUtils.parse(manifest.environment); | ||
this.messages = this.renderMessages(); | ||
@@ -35,2 +37,3 @@ this._dependencyIDs = manifest.dependencies || []; | ||
* @param artifact The artifact manifest | ||
* @returns the `CloudArtifact` that matches the artifact type or `undefined` if it's an artifact type that is unrecognized by this module. | ||
*/ | ||
@@ -41,4 +44,6 @@ static fromManifest(assembly, id, artifact) { | ||
return new cloudformation_artifact_1.CloudFormationStackArtifact(assembly, id, artifact); | ||
case ArtifactType.CDK_TREE: | ||
return new tree_cloud_artifact_1.TreeCloudArtifact(assembly, id, artifact); | ||
default: | ||
throw new Error(`unsupported artifact type: ${artifact.type}`); | ||
return undefined; | ||
} | ||
@@ -104,2 +109,3 @@ } | ||
const cloudformation_artifact_1 = require("./cloudformation-artifact"); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xvdWQtYXJ0aWZhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjbG91ZC1hcnRpZmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLCtDQUE4RDtBQUM5RCx5Q0FPMkM7QUFFM0M7O0dBRUc7QUFDSCxJQUFZLFlBT1g7QUFQRCxXQUFZLFlBQVk7SUFDdEIsNkJBQWEsQ0FBQTtJQUViOztPQUVHO0lBQ0gscUVBQXFELENBQUE7QUFDdkQsQ0FBQyxFQVBXLF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4gICAgICAgIHN3aXRjaCAoZW50cnkudHlwZSkge1xuICAgICAgICAgIGNhc2UgV0FSTklOR19NRVRBREFUQV9LRVk6XG4gICAgICAgICAgICBsZXZlbCA9IFN5bnRoZXNpc01lc3NhZ2VMZXZlbC5XQVJOSU5HO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgY2FzZSBFUlJPUl9NRVRBREFUQV9LRVk6XG4gICAgICAgICAgICBsZXZlbCA9IFN5bnRoZXNpc01lc3NhZ2VMZXZlbC5FUlJPUjtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgIGNhc2UgSU5GT19NRVRBREFUQV9LRVk6XG4gICAgICAgICAgICBsZXZlbCA9IFN5bnRoZXNpc01lc3NhZ2VMZXZlbC5JTkZPO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgbWVzc2FnZXMucHVzaCh7IGxldmVsLCBlbnRyeSwgaWQgfSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIG1lc3NhZ2VzO1xuICB9XG59XG5cbi8vIG5lZWRzIHRvIGJlIGRlZmluZWQgYXQgdGhlIGVuZCB0byBhdm9pZCBhIGN5Y2xpYyBkZXBlbmRlbmN5XG5pbXBvcnQgeyBDbG91ZEZvcm1hdGlvblN0YWNrQXJ0aWZhY3QgfSBmcm9tICcuL2Nsb3VkZm9ybWF0aW9uLWFydGlmYWN0JztcbmltcG9ydCB7IFRyZWVDbG91ZEFydGlmYWN0IH0gZnJvbSAnLi90cmVlLWNsb3VkLWFydGlmYWN0JztcbiJdfQ== |
import { ArtifactManifest, CloudArtifact } from './cloud-artifact'; | ||
import { CloudFormationStackArtifact } from './cloudformation-artifact'; | ||
import { TreeCloudArtifact } from './tree-cloud-artifact'; | ||
/** | ||
@@ -70,2 +71,8 @@ * A manifest which describes the cloud assembly. | ||
/** | ||
* Returns the tree metadata artifact from this assembly. | ||
* @throws if there is no metadata artifact by that name | ||
* @returns a `TreeCloudArtifact` object if there is one defined in the manifest, `undefined` otherwise. | ||
*/ | ||
tree(): TreeCloudArtifact | undefined; | ||
/** | ||
* @returns all the CloudFormation stack artifacts that are included in this assembly. | ||
@@ -72,0 +79,0 @@ */ |
@@ -9,2 +9,3 @@ "use strict"; | ||
const toposort_1 = require("./toposort"); | ||
const tree_cloud_artifact_1 = require("./tree-cloud-artifact"); | ||
const versioning_1 = require("./versioning"); | ||
@@ -39,3 +40,3 @@ /** | ||
tryGetArtifact(id) { | ||
return this.stacks.find(a => a.id === id); | ||
return this.artifacts.find(a => a.id === id); | ||
} | ||
@@ -59,2 +60,21 @@ /** | ||
/** | ||
* Returns the tree metadata artifact from this assembly. | ||
* @throws if there is no metadata artifact by that name | ||
* @returns a `TreeCloudArtifact` object if there is one defined in the manifest, `undefined` otherwise. | ||
*/ | ||
tree() { | ||
const trees = this.artifacts.filter(a => a.manifest.type === cloud_artifact_1.ArtifactType.CDK_TREE); | ||
if (trees.length === 0) { | ||
return undefined; | ||
} | ||
else if (trees.length > 1) { | ||
throw new Error(`Multiple artifacts of type ${cloud_artifact_1.ArtifactType.CDK_TREE} found in manifest`); | ||
} | ||
const tree = trees[0]; | ||
if (!(tree instanceof tree_cloud_artifact_1.TreeCloudArtifact)) { | ||
throw new Error(`"Tree" artifact is not of expected type`); | ||
} | ||
return tree; | ||
} | ||
/** | ||
* @returns all the CloudFormation stack artifacts that are included in this assembly. | ||
@@ -79,3 +99,6 @@ */ | ||
for (const [name, artifact] of Object.entries(this.manifest.artifacts || {})) { | ||
result.push(cloud_artifact_1.CloudArtifact.fromManifest(this, name, artifact)); | ||
const cloudartifact = cloud_artifact_1.CloudArtifact.fromManifest(this, name, artifact); | ||
if (cloudartifact) { | ||
result.push(cloudartifact); | ||
} | ||
} | ||
@@ -170,2 +193,2 @@ return toposort_1.topologicalSort(result, x => x.id, x => x._dependencyIDs); | ||
} | ||
//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n1cblxuZnVuY3Rpb24gaWdub3JlKF94OiBhbnkpIHtcbiAgcmV0dXJuO1xufVxuIl19 |
import { AssetMetadataEntry } from './assets'; | ||
import { ArtifactManifest, CloudArtifact } from './cloud-artifact'; | ||
import { CloudAssembly } from './cloud-assembly'; | ||
import { Environment } from './environment'; | ||
export declare class CloudFormationStackArtifact extends CloudArtifact { | ||
@@ -31,3 +32,7 @@ /** | ||
readonly name: string; | ||
/** | ||
* The environment into which to deploy this artifact. | ||
*/ | ||
readonly environment: Environment; | ||
constructor(assembly: CloudAssembly, name: string, artifact: ArtifactManifest); | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
const cloud_artifact_1 = require("./cloud-artifact"); | ||
const environment_1 = require("./environment"); | ||
class CloudFormationStackArtifact extends cloud_artifact_1.CloudArtifact { | ||
@@ -14,2 +15,6 @@ constructor(assembly, name, artifact) { | ||
} | ||
if (!artifact.environment) { | ||
throw new Error('Invalid CloudFormation stack artifact. Missing environment'); | ||
} | ||
this.environment = environment_1.EnvironmentUtils.parse(artifact.environment); | ||
const properties = (this.manifest.properties || {}); | ||
@@ -24,2 +29,2 @@ this.templateFile = properties.templateFile; | ||
exports.CloudFormationStackArtifact = CloudFormationStackArtifact; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xvdWRmb3JtYXRpb24tYXJ0aWZhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjbG91ZGZvcm1hdGlvbi1hcnRpZmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlCQUEwQjtBQUMxQiw2QkFBOEI7QUFDOUIscUNBQThEO0FBQzlELHFEQUFxRztBQUdyRyxNQUFhLDJCQUE0QixTQUFRLDhCQUFhO0lBK0I1RCxZQUFZLFFBQXVCLEVBQUUsSUFBWSxFQUFFLFFBQTBCO1FBQzNFLEtBQUssQ0FBQyxRQUFRLEVBQUUsSUFBSSxFQUFF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GVtcGxhdGVGaWxlKSwgJ3V0Zi04JykpO1xuICAgIHRoaXMuYXNzZXRzID0gdGhpcy5maW5kTWV0YWRhdGFCeVR5cGUoQVNTRVRfTUVUQURBVEEpLm1hcChlID0+IGUuZGF0YSk7XG4gIH1cbn1cbiJdfQ== |
@@ -30,1 +30,5 @@ export declare const OUTDIR_ENV = "CDK_OUTDIR"; | ||
export declare const DISABLE_METADATA_STACK_TRACE = "aws:cdk:disable-stack-trace"; | ||
/** | ||
* If a context value is an object with this key, it indicates an error | ||
*/ | ||
export declare const PROVIDER_ERROR_KEY = "$providerError"; |
@@ -35,2 +35,6 @@ "use strict"; | ||
exports.DISABLE_METADATA_STACK_TRACE = 'aws:cdk:disable-stack-trace'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3hhcGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjeGFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtGQUFrRjtBQUNsRixtRkFBbUY7QUFDbkYsMEJBQTBCO0FBQ2IsUUFBQSxVQUFVLEdBQUcsWUFBWSxDQUFDO0FBQzFCLFFBQUEsV0FBVyxHQUFHLGtCQUFrQixDQUFDO0FBRTlDOztHQUVHO0FBQ1UsUUFBQSxtQkFBbUIsR0FBRyxxQkFBcUIsQ0FBQztBQUV6RDs7R0FFRztBQUNVLFFBQUEsa0JBQWtCLEdBQUcsb0JBQW9CLENBQUM7QUFFdkQ7O0dBRUc7QUFDVSxRQUFBLDRCQUE0QixHQUFHLDhCQUE4QixDQUFDO0FBRTNFOztHQUVHO0FBQ1UsUUFBQSx5QkFBeUIsR0FBRyxtQ0FBbUMsQ0FBQztBQUU3RTs7O0dBR0c7QUFDVSxRQUFBLDZCQUE2QixHQUFHLCtCQUErQixDQUFDO0FBRTdFOzs7O0dBSUc7QUFDVSxRQUFBLDRCQUE0QixHQUFHLDZCQUE2QixDQUFDIiwic291cm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mVwb3J0aW5nIG9mIHZlcnNpb24gaW5mb3JtYXRpb24uXG4gKi9cbmV4cG9ydCBjb25zdCBESVNBQkxFX1ZFUlNJT05fUkVQT1JUSU5HID0gJ2F3czpjZGs6ZGlzYWJsZS12ZXJzaW9uLXJlcG9ydGluZyc7XG5cbi8qKlxuICogSWYgdGhpcyBpcyBzZXQsIGFzc2V0IHN0YWdpbmcgaXMgZGlzYWJsZWQuIFRoaXMgbWVhbnMgdGhhdCBhc3NldHMgd2lsbCBub3QgYmUgY29waWVkIHRvXG4gKiB0aGUgb3V0cHV0IGRpcmVjdG9yeSBhbmQgd2lsbCBiZSByZWZlcmVuY2VkIHdpdGggYWJzb2x1dGUgc291cmNlIHBhdGhzLlxuICovXG5leHBvcnQgY29uc3QgRElTQUJMRV9BU1NFVF9TVEFHSU5HX0NPTlRFWFQgPSAnYXdzOmNkazpkaXNhYmxlLWFzc2V0LXN0YWdpbmcnO1xuXG4vKipcbiAqIElmIHRoaXMgY29udGV4dCBrZXkgaXMgc2V0LCB0aGUgQ0RLIHdpbGwgc3RhZ2UgYXNzZXRzIHVuZGVyIHRoZSBzcGVjaWZpZWRcbiAqIGRpcmVjdG9yeS4gT3RoZXJ3aXNlLCBhc3NldHMgd2lsbCBub3QgYmUgc3RhZ2VkLlxuICogT21pdHMgc3RhY2sgdHJhY2VzIGZyb20gY29uc3RydWN0IG1ldGFkYXRhIGVudHJpZXMuXG4gKi9cbmV4cG9ydCBjb25zdCBESVNBQkxFX01FVEFEQVRBX1NUQUNLX1RSQUNFID0gJ2F3czpjZGs6ZGlzYWJsZS1zdGFjay10cmFjZSc7XG4iXX0= | ||
/** | ||
* If a context value is an object with this key, it indicates an error | ||
*/ | ||
exports.PROVIDER_ERROR_KEY = '$providerError'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3hhcGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjeGFwaS50cyJdLCJuYW1lc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pjZGs6ZGlzYWJsZS1hc3NldC1zdGFnaW5nJztcblxuLyoqXG4gKiBJZiB0aGlzIGNvbnRleHQga2V5IGlzIHNldCwgdGhlIENESyB3aWxsIHN0YWdlIGFzc2V0cyB1bmRlciB0aGUgc3BlY2lmaWVkXG4gKiBkaXJlY3RvcnkuIE90aGVyd2lzZSwgYXNzZXRzIHdpbGwgbm90IGJlIHN0YWdlZC5cbiAqIE9taXRzIHN0YWNrIHRyYWNlcyBmcm9tIGNvbnN0cnVjdCBtZXRhZGF0YSBlbnRyaWVzLlxuICovXG5leHBvcnQgY29uc3QgRElTQUJMRV9NRVRBREFUQV9TVEFDS19UUkFDRSA9ICdhd3M6Y2RrOmRpc2FibGUtc3RhY2stdHJhY2UnO1xuXG4vKipcbiAqIElmIGEgY29udGV4dCB2YWx1ZSBpcyBhbiBvYmplY3Qgd2l0aCB0aGlzIGtleSwgaXQgaW5kaWNhdGVzIGFuIGVycm9yXG4gKi9cbmV4cG9ydCBjb25zdCBQUk9WSURFUl9FUlJPUl9LRVkgPSAnJHByb3ZpZGVyRXJyb3InOyJdfQ== |
@@ -8,2 +8,3 @@ export * from './cxapi'; | ||
export * from './cloudformation-artifact'; | ||
export * from './tree-cloud-artifact'; | ||
export * from './cloud-assembly'; | ||
@@ -13,1 +14,2 @@ export * from './assets'; | ||
export * from './metadata'; | ||
export { CLOUD_ASSEMBLY_VERSION } from './versioning'; |
@@ -13,2 +13,3 @@ "use strict"; | ||
__export(require("./cloudformation-artifact")); | ||
__export(require("./tree-cloud-artifact")); | ||
__export(require("./cloud-assembly")); | ||
@@ -18,2 +19,4 @@ __export(require("./assets")); | ||
__export(require("./metadata")); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDZCQUF3QjtBQUN4QiwyQ0FBc0M7QUFDdEMsbUNBQThCO0FBQzlCLDZDQUF3QztBQUN4QyxrREFBNkM7QUFDN0Msc0NBQWlDO0FBQ2pDLCtDQUEwQztBQUMxQyxzQ0FBaUM7QUFDakMsOEJBQXlCO0FBQ3pCLG1DQUE4QjtBQUM5QixnQ0FBMkIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2N4YXBpJztcbmV4cG9ydCAqIGZyb20gJy4vY29udGV4dC9ob3N0ZWQtem9uZSc7XG5leHBvcnQgKiBmcm9tICcuL2NvbnRleHQvdnBjJztcbmV4cG9ydCAqIGZyb20gJy4vY29udGV4dC9zc20tcGFyYW1ldGVyJztcbmV4cG9ydCAqIGZyb20gJy4vY29udGV4dC9hdmFpbGFiaWxpdHktem9uZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9jbG91ZC1hcnRpZmFjdCc7XG5leHBvcnQgKiBmcm9tICcuL2Nsb3VkZm9ybWF0aW9uLWFydGlmYWN0JztcbmV4cG9ydCAqIGZyb20gJy4vY2xvdWQtYXNzZW1ibHknO1xuZXhwb3J0ICogZnJvbSAnLi9hc3NldHMnO1xuZXhwb3J0ICogZnJvbSAnLi9lbnZpcm9ubWVudCc7XG5leHBvcnQgKiBmcm9tICcuL21ldGFkYXRhJztcbiJdfQ== | ||
var versioning_1 = require("./versioning"); | ||
exports.CLOUD_ASSEMBLY_VERSION = versioning_1.CLOUD_ASSEMBLY_VERSION; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDZCQUF3QjtBQUN4QiwyQ0FBc0M7QUFDdEMsbUNBQThCO0FBQzlCLDZDQUF3QztBQUN4QyxrREFBNkM7QUFDN0Msc0NBQWlDO0FBQ2pDLCtDQUEwQztBQUMxQywyQ0FBc0M7QUFDdEMsc0NBQWlDO0FBQ2pDLDhCQUF5QjtBQUN6QixtQ0FBOEI7QUFDOUIsZ0NBQTJCO0FBRTNCLDJDQUFzRDtBQUE3Qyw4Q0FBQSxzQkFBc0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY3hhcGknO1xuZXhwb3J0ICogZnJvbSAnLi9jb250ZXh0L2hvc3RlZC16b25lJztcbmV4cG9ydCAqIGZyb20gJy4vY29udGV4dC92cGMnO1xuZXhwb3J0ICogZnJvbSAnLi9jb250ZXh0L3NzbS1wYXJhbWV0ZXInO1xuZXhwb3J0ICogZnJvbSAnLi9jb250ZXh0L2F2YWlsYWJpbGl0eS16b25lcyc7XG5leHBvcnQgKiBmcm9tICcuL2Nsb3VkLWFydGlmYWN0JztcbmV4cG9ydCAqIGZyb20gJy4vY2xvdWRmb3JtYXRpb24tYXJ0aWZhY3QnO1xuZXhwb3J0ICogZnJvbSAnLi90cmVlLWNsb3VkLWFydGlmYWN0JztcbmV4cG9ydCAqIGZyb20gJy4vY2xvdWQtYXNzZW1ibHknO1xuZXhwb3J0ICogZnJvbSAnLi9hc3NldHMnO1xuZXhwb3J0ICogZnJvbSAnLi9lbnZpcm9ubWVudCc7XG5leHBvcnQgKiBmcm9tICcuL21ldGFkYXRhJztcblxuZXhwb3J0IHsgQ0xPVURfQVNTRU1CTFlfVkVSU0lPTiB9IGZyb20gJy4vdmVyc2lvbmluZyc7XG4iXX0= |
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
export declare const CLOUD_ASSEMBLY_VERSION = "0.36.0"; | ||
export declare const CLOUD_ASSEMBLY_VERSION = "1.10.0"; | ||
/** | ||
@@ -20,0 +20,0 @@ * Look at the type of response we get and upgrade it to the latest expected version |
@@ -20,3 +20,3 @@ "use strict"; | ||
*/ | ||
exports.CLOUD_ASSEMBLY_VERSION = '0.36.0'; | ||
exports.CLOUD_ASSEMBLY_VERSION = '1.10.0'; | ||
/** | ||
@@ -45,2 +45,2 @@ * Look at the type of response we get and upgrade it to the latest expected version | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbmluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInZlcnNpb25pbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBa0M7QUFFbEM7Ozs7Ozs7Ozs7Ozs7OztHQWVHO0FBQ1UsUUFBQSxzQkFBc0IsR0FBRyxRQUFRLENBQUM7QUFFL0M7O0dBRUc7QUFDSCxTQUFnQixxQkFBcUIsQ0FBQyxjQUFzQjtJQUMxRCxNQUFNLGdCQUFnQixHQUFHLFdBQVcsQ0FBQyxjQUFjLENBQUMsQ0FBQztJQUNyRCxNQUFNLGNBQWMsR0FBRyxXQUFXLENBQUMsOEJBQXNCLENBQUMsQ0FBQztJQUUzRCxxREFBcUQ7SUFDckQsSUFBSSxNQUFNLENBQUMsRUFBRSxDQUFDLGdCQUFnQixFQUFFLGNBQWMsQ0FBQyxFQUFFO1FBQy9DLE1BQU0sSUFBSSxLQUFLLENBQUMsY0FBYyxnQkFBZ0Isd0NBQXdDLENBQUMsQ0FBQztLQUN6RjtJQUVELDJEQUEyRDtJQUMzRCxJQUFJLE1BQU0sQ0FBQyxFQUFFLENBQUMsZ0JBQWdCLEVBQUUsY0FBYyxDQUFDLEVBQUU7UUFDL0MsTUFBTSxJQUFJLEtBQUssQ0FDYix3REFBd0QsOEJBQXNCLEVBQUUsQ0FBQyxDQUFDO0tBQ3JGO0FBQ0gsQ0FBQztBQWRELHNEQWNDO0FBRUQsU0FBUyxXQUFXLENBQUMsT0FBZTtJQUNsQyxNQUFNLEdBQUcsR0FBRyxNQUFNLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQ25DLElBQUksQ0FBQyxHQUFHLEVBQUU7UUFDUixNQUFNLElBQUksS0FBS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ICB9XG5cbiAgLy8gaWYgZnJhbWV3b3JrIDwgY2xpLCB3ZSByZXF1aXJlIGEgbmV3ZXIgZnJhbWV3b3JrIHZlcnNpb25cbiAgaWYgKHNlbXZlci5sdChmcmFtZXdvcmtWZXJzaW9uLCB0b29sa2l0VmVyc2lvbikpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICBgQ0RLIENMSSBjYW4gb25seSBiZSB1c2VkIHdpdGggYXBwcyBjcmVhdGVkIGJ5IENESyA+PSAke0NMT1VEX0FTU0VNQkxZX1ZFUlNJT059YCk7XG4gIH1cbn1cblxuZnVuY3Rpb24gcGFyc2VTZW12ZXIodmVyc2lvbjogc3RyaW5nKSB7XG4gIGNvbnN0IHZlciA9IHNlbXZlci5jb2VyY2UodmVyc2lvbik7XG4gIGlmICghdmVyKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKGBDb3VsZCBub3QgcGFyc2UgXCIke3ZlcnNpb259XCIgYXMgc2VtdmVyYCk7XG4gIH1cblxuICByZXR1cm4gdmVyO1xufVxuIl19 |
{ | ||
"name": "@aws-cdk/cx-api", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Cloud executable protocol", | ||
@@ -24,3 +24,3 @@ "main": "lib/index.js", | ||
"versionSuffix": "-devpreview", | ||
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/png/default-256-dark.png" | ||
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png" | ||
}, | ||
@@ -27,0 +27,0 @@ "python": { |
@@ -29,2 +29,8 @@ "use strict"; | ||
}); | ||
session.addArtifact('tree-artifact', { | ||
type: lib_1.ArtifactType.CDK_TREE, | ||
properties: { | ||
file: 'foo.tree.json' | ||
} | ||
}); | ||
session.addMissing({ | ||
@@ -62,2 +68,8 @@ key: 'foo', | ||
artifacts: { | ||
'tree-artifact': { | ||
type: 'cdk:tree', | ||
properties: { | ||
file: 'foo.tree.json' | ||
} | ||
},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LnRlbXBsYXRlLmpzb24nIH1cbiAgICAgIH1cbiAgICB9XG4gIH0pO1xuXG4gIC8vIHZlcmlmeSB3ZSBoYXZlIGEgdGVtcGxhdGUgZmlsZVxuICBleHBlY3QoYXNzZW1ibHkuZ2V0U3RhY2soJ21pbmltYWwtYXJ0aWZhY3QnKS50ZW1wbGF0ZSkudG9TdHJpY3RFcXVhbCh7XG4gICAgUmVzb3VyY2VzOiB7XG4gICAgICBNeVRvcGljOiB7XG4gICAgICAgIFR5cGU6ICdBV1M6OlMzOjpUb3BpYydcbiAgICAgIH1cbiAgICB9XG4gIH0pO1xufSk7XG5cbnRlc3QoJ291dGRpciBtdXN0IGJlIGEgZGlyZWN0b3J5JywgKCkgPT4ge1xuICBleHBlY3QoKCkgPT4gbmV3IENsb3VkQXNzZW1ibHlCdWlsZGVyKF9fZmlsZW5hbWUpKS50b1Rocm93KCdtdXN0IGJlIGEgZGlyZWN0b3J5Jyk7XG59KTtcbiJdfQ== |
@@ -14,6 +14,7 @@ "use strict"; | ||
expect(assembly.manifest).toMatchSnapshot(); | ||
expect(assembly.tree()).toBeUndefined(); | ||
}); | ||
test('assembly a single cloudformation stack', () => { | ||
test('assembly a single cloudformation stack and tree metadata', () => { | ||
const assembly = new lib_1.CloudAssembly(path.join(FIXTURES, 'single-stack')); | ||
expect(assembly.artifacts).toHaveLength(1); | ||
expect(assembly.artifacts).toHaveLength(2); | ||
expect(assembly.stacks).toHaveLength(1); | ||
@@ -23,3 +24,2 @@ expect(assembly.manifest.missing).toBeUndefined(); | ||
expect(assembly.version).toEqual(versioning_1.CLOUD_ASSEMBLY_VERSION); | ||
expect(assembly.artifacts[0]).toEqual(assembly.stacks[0]); | ||
const stack = assembly.stacks[0]; | ||
@@ -35,3 +35,17 @@ expect(stack.manifest).toMatchSnapshot(); | ||
expect(stack.name).toEqual('MyStackName'); | ||
const treeArtifact = assembly.tree(); | ||
expect(treeArtifact).toBeDefined(); | ||
expect(treeArtifact.file).toEqual('foo.tree.json'); | ||
expect(treeArtifact.manifest).toMatchSnapshot(); | ||
}); | ||
test('assembly with invalid tree metadata', () => { | ||
const assembly = new lib_1.CloudAssembly(path.join(FIXTURES, 'invalid-manifest-type-tree')); | ||
expect(() => assembly.tree()).toThrow(/Multiple artifacts/); | ||
}); | ||
test('assembly with tree metadata having no file property specified', () => { | ||
expect(() => new lib_1.CloudAssembly(path.join(FIXTURES, 'tree-no-file-property'))).toThrow(/Invalid TreeCloudArtifact/); | ||
}); | ||
test('assembly with cloudformation artifact having no environment property specified', () => { | ||
expect(() => new lib_1.CloudAssembly(path.join(FIXTURES, 'invalid-manifest-type-cloudformation'))).toThrow(/Invalid CloudFormation stack artifact/); | ||
}); | ||
test('assembly with missing context', () => { | ||
@@ -47,4 +61,4 @@ const assembly = new lib_1.CloudAssembly(path.join(FIXTURES, 'missing-context')); | ||
test('fails for invalid artifact type', () => { | ||
expect(() => new lib_1.CloudAssembly(path.join(FIXTURES, 'invalid-artifact-type'))) | ||
.toThrow('unsupported artifact type: who:am:i'); | ||
const assembly = new lib_1.CloudAssembly(path.join(FIXTURES, 'invalid-artifact-type')); | ||
expect(assembly.tryGetArtifact('MyArt')).toBeUndefined(); | ||
}); | ||
@@ -85,2 +99,2 @@ test('fails for invalid environment format', () => { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xvdWQtYXNzZW1ibHkudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImNsb3VkLWFzc2VtYmx5LnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBOEI7QUFDOUIsZ0NBQXVDO0FBQ3ZDLGtEQUFrRjtBQUVsRixNQUFNLFFBQVEsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsRUFBRSxVQUFVLENBQUMsQ0FBQztBQUVsRCxJQUFJLENBQUMsZ0JBQWdCLEVBQUUsR0FBRy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@@ -4,0 +4,0 @@ "MyStackName": { |
{ | ||
"version": "0.36.0", | ||
"version": "1.10.0", | ||
"artifacts": { | ||
@@ -4,0 +4,0 @@ "StackA": { |
{ | ||
"version": "0.36.0" | ||
"version": "1.10.0" | ||
} |
{ | ||
"version": "0.36.0", | ||
"version": "1.10.0", | ||
"artifacts": { | ||
@@ -4,0 +4,0 @@ "MyArt": { |
{ | ||
"version": "0.36.0", | ||
"version": "1.10.0", | ||
"artifacts": { | ||
@@ -4,0 +4,0 @@ "StackA": { |
{ | ||
"version": "0.36.0", | ||
"version": "1.10.0", | ||
"artifacts": { | ||
@@ -4,0 +4,0 @@ "MyStackName": { |
{ | ||
"version": "0.36.0", | ||
"version": "1.10.0", | ||
"artifacts": { | ||
@@ -4,0 +4,0 @@ "MyStackName": { |
{ | ||
"version": "0.36.0", | ||
"version": "1.10.0", | ||
"artifacts": { | ||
@@ -4,0 +4,0 @@ "MyStackName": { |
{ | ||
"version": "0.36.0", | ||
"version": "1.10.0", | ||
"missing": { | ||
@@ -4,0 +4,0 @@ "key": "missing:context:key", |
{ | ||
"version": "0.36.0", | ||
"version": "1.10.0", | ||
"artifacts": { | ||
@@ -4,0 +4,0 @@ "MyStackName": { |
{ | ||
"version": "0.36.0", | ||
"version": "1.10.0", | ||
"artifacts": { | ||
"Tree": { | ||
"type": "cdk:tree", | ||
"properties": { | ||
"file": "foo.tree.json" | ||
} | ||
}, | ||
"MyStackName": { | ||
@@ -5,0 +11,0 @@ "type": "aws:cloudformation:stack", |
{ | ||
"version": "0.36.0", | ||
"version": "1.10.0", | ||
"artifacts": { | ||
@@ -4,0 +4,0 @@ "MyStackName": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
304831
77
3439
14