Class Pass
Define a Pass in the state machine.
Inherited Members
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Pass : State, IChainable, INextable
Syntax (vb)
Public Class Pass
Inherits State
Implements IChainable, INextable
Remarks
A Pass state can be used to transform the current execution's state.
ExampleMetadata: infused
Examples
var choice = new Choice(this, "Did it work?");
// Add conditions with .when()
var successState = new Pass(this, "SuccessState");
var failureState = new Pass(this, "FailureState");
choice.When(Condition.StringEquals("$.status", "SUCCESS"), successState);
choice.When(Condition.NumberGreaterThan("$.attempts", 5), failureState);
// Use .otherwise() to indicate what should be done if none of the conditions match
var tryAgainState = new Pass(this, "TryAgainState");
choice.Otherwise(tryAgainState);
Synopsis
Constructors
Pass(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Pass(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Pass(Construct, String, IPassProps) |
Properties
EndStates | Continuable states of this Chainable. |
Methods
Next(IChainable) | Continue normal execution with the given state. |
ToStateJson() | Return the Amazon States Language object for this state. |
Constructors
Pass(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Pass(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Pass(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Pass(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Pass(Construct, String, IPassProps)
public Pass(Construct scope, string id, IPassProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
Descriptive identifier for this chainable.
- props IPassProps
Properties
EndStates
Continuable states of this Chainable.
public override INextable[] EndStates { get; }
Property Value
Overrides
Methods
Next(IChainable)
Continue normal execution with the given state.
public virtual Chain Next(IChainable next)
Parameters
- next IChainable
Returns
ToStateJson()
Return the Amazon States Language object for this state.
public override JObject ToStateJson()
Returns
Newtonsoft.Json.Linq.JObject