Class Fail
Define a Fail state in the state machine.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Fail : State, IChainable
Syntax (vb)
Public Class Fail
Inherits State
Implements IChainable
Remarks
Reaching a Fail state terminates the state execution in failure.
ExampleMetadata: infused
Examples
var fail = new Fail(this, "Fail", new FailProps {
ErrorPath = JsonPath.StringAt("$.someError"),
CausePath = JsonPath.StringAt("$.someCause")
});
Synopsis
Constructors
Fail(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Fail(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Fail(Construct, String, IFailProps) |
Properties
EndStates | Continuable states of this Chainable. |
Methods
ToStateJson() | Return the Amazon States Language object for this state. |
Constructors
Fail(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Fail(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Fail(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Fail(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Fail(Construct, String, IFailProps)
public Fail(Construct scope, string id, IFailProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
Descriptive identifier for this chainable.
- props IFailProps
Properties
EndStates
Continuable states of this Chainable.
public override INextable[] EndStates { get; }
Property Value
Overrides
Methods
ToStateJson()
Return the Amazon States Language object for this state.
public override JObject ToStateJson()
Returns
Newtonsoft.Json.Linq.JObject