@Generated(value="jsii-pacmak/1.54.0 (build b1b977a)", date="2022-02-19T00:19:34.322Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeINextable.Jsii$Default, INextable.Jsii$ProxyIChainable.Jsii$DefaultIConstruct.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
Pass(software.constructs.Construct scope,
String id) |
|
Pass(software.constructs.Construct scope,
String id,
PassProps props) |
protected |
Pass(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Pass(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
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, whenBoundToGraphgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Pass(software.amazon.jsii.JsiiObjectRef objRef)
protected Pass(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Pass(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
PassProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public Pass(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public Chain next(@NotNull IChainable next)
@Stability(value=Stable) @NotNull public com.fasterxml.jackson.databind.node.ObjectNode toStateJson()
toStateJson in class State@Stability(value=Stable) @NotNull public List<INextable> getEndStates()
getEndStates in interface IChainablegetEndStates in class StateCopyright © 2022. All rights reserved.