"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Step=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),core_1=require("../../../core");class Step{constructor(id){if(this.id=id,this.dependencyFileSets=[],this.isSource=!1,this._dependencies=[],core_1.Token.isUnresolved(id))throw new Error(`Step id cannot be unresolved, got '${id}'`)}static sequence(steps){for(let i=1;i<steps.length;i++)steps[i].addStepDependency(steps[i-1]);return steps}get dependencies(){return this.dependencyFileSets.map(f=>f.producer).concat(this._dependencies)}toString(){return`${this.constructor.name}(${this.id})`}get primaryOutput(){return this._primaryOutput}addStepDependency(step){jsiiDeprecationWarnings.aws_cdk_lib_pipelines_Step(step),this._dependencies.push(step)}addDependencyFileSet(fs){jsiiDeprecationWarnings.aws_cdk_lib_pipelines_FileSet(fs),this.dependencyFileSets.push(fs)}configurePrimaryOutput(fs){jsiiDeprecationWarnings.aws_cdk_lib_pipelines_FileSet(fs),this._primaryOutput=fs}}exports.Step=Step,_a=JSII_RTTI_SYMBOL_1,Step[_a]={fqn:"aws-cdk-lib.pipelines.Step",version:"2.13.0"};
//# sourceMappingURL=step.js.map
