@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:43.493Z") public class Pass extends State implements INextable
A Pass state can be used to transform the current execution's state.
Example:
Choice choice = new Choice(this, "Did it work?"); // Add conditions with .when() Pass successState = new Pass(this, "SuccessState"); Pass 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 Pass tryAgainState = new Pass(this, "TryAgainState"); choice.otherwise(tryAgainState);
Modifier and Type | Class and Description |
---|---|
static class |
Pass.Builder
A fluent builder for
Pass . |
INextable.Jsii$Default, INextable.Jsii$Proxy
IChainable.Jsii$Default
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
Pass(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Pass(software.amazon.jsii.JsiiObjectRef objRef) |
|
Pass(software.constructs.Construct scope,
java.lang.String id) |
|
Pass(software.constructs.Construct scope,
java.lang.String id,
PassProps props) |
Modifier and Type | Method and Description |
---|---|
java.util.List<INextable> |
getEndStates()
Continuable states of this Chainable.
|
Chain |
next(IChainable next)
Continue normal execution with the given state.
|
com.fasterxml.jackson.databind.node.ObjectNode |
toStateJson()
Return the Amazon States Language object for this state.
|
addBranch, addChoice, addIterator, addPrefix, bindToGraph, filterNextables, findReachableEndStates, findReachableEndStates, findReachableStates, findReachableStates, getBranches, getComment, getDefaultChoice, getId, getInputPath, getIteration, getOutputPath, getParameters, getResultPath, getResultSelector, getStartState, getStateId, makeDefault, makeNext, prefixStates, renderBranches, renderChoices, renderInputOutput, renderIterator, renderNextEnd, renderResultSelector, renderRetryCatch, setDefaultChoice, setIteration, whenBoundToGraph
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected Pass(software.amazon.jsii.JsiiObjectRef objRef)
protected Pass(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Pass(software.constructs.Construct scope, java.lang.String id, PassProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public Pass(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public Chain next(IChainable next)
public com.fasterxml.jackson.databind.node.ObjectNode toStateJson()
toStateJson
in class State
public java.util.List<INextable> getEndStates()
getEndStates
in interface IChainable
getEndStates
in class State