"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Pass=exports.Result=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),chain_1=require("../chain"),fields_1=require("../fields"),state_type_1=require("./private/state-type"),state_1=require("./state");class Result{constructor(value){this.value=value}static fromString(value){return new Result(value)}static fromNumber(value){return new Result(value)}static fromBoolean(value){return new Result(value)}static fromObject(value){return new Result(value)}static fromArray(value){return new Result(value)}}exports.Result=Result,_a=JSII_RTTI_SYMBOL_1,Result[_a]={fqn:"aws-cdk-lib.aws_stepfunctions.Result",version:"2.13.0"};class Pass extends state_1.State{constructor(scope,id,props={}){super(scope,id,props);jsiiDeprecationWarnings.aws_cdk_lib_aws_stepfunctions_PassProps(props),this.result=props.result,this.endStates=[this]}next(next){return jsiiDeprecationWarnings.aws_cdk_lib_aws_stepfunctions_IChainable(next),super.makeNext(next.startState),chain_1.Chain.sequence(this,next)}toStateJson(){var _c;return{Type:state_type_1.StateType.PASS,Comment:this.comment,Result:(_c=this.result)===null||_c===void 0?void 0:_c.value,ResultPath:state_1.renderJsonPath(this.resultPath),...this.renderInputOutput(),...this.renderParameters(),...this.renderNextEnd()}}renderParameters(){return fields_1.FieldUtils.renderObject({Parameters:this.parameters})}}exports.Pass=Pass,_b=JSII_RTTI_SYMBOL_1,Pass[_b]={fqn:"aws-cdk-lib.aws_stepfunctions.Pass",version:"2.13.0"};
//# sourceMappingURL=pass.js.map
