UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 1.18 kB
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Fail=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var state_type_1=()=>{var tmp=require("./private/state-type");return state_type_1=()=>tmp,tmp},state_1=()=>{var tmp=require("./state");return state_1=()=>tmp,tmp};class Fail extends state_1().State{constructor(scope,id,props={}){super(scope,id,props),this.endStates=[];try{jsiiDeprecationWarnings().aws_cdk_lib_aws_stepfunctions_FailProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,Fail),error}this.error=props.error,this.errorPath=props.errorPath,this.cause=props.cause,this.causePath=props.causePath}toStateJson(){return{Type:state_type_1().StateType.FAIL,Comment:this.comment,Error:this.error,ErrorPath:(0,state_1().renderJsonPath)(this.errorPath),Cause:this.cause,CausePath:(0,state_1().renderJsonPath)(this.causePath)}}}exports.Fail=Fail,_a=JSII_RTTI_SYMBOL_1,Fail[_a]={fqn:"aws-cdk-lib.aws_stepfunctions.Fail",version:"2.130.0"};