Interface ChoiceProps
- All Superinterfaces:
AssignableStateOptions,software.amazon.jsii.JsiiSerializable,JsonataCommonOptions,JsonPathCommonOptions,StateBaseProps
- All Known Implementing Classes:
ChoiceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:18.534Z")
@Stability(Stable)
public interface ChoiceProps
extends software.amazon.jsii.JsiiSerializable, StateBaseProps, AssignableStateOptions, JsonPathCommonOptions, JsonataCommonOptions
Properties for defining a Choice state.
Example:
Choice choice = Choice.Builder.create(this, "What color is it?")
.comment("color comment")
.build();
Pass handleBlueItem = new Pass(this, "HandleBlueItem");
Pass handleOtherItemColor = new Pass(this, "HanldeOtherItemColor");
choice.when(Condition.stringEquals("$.color", "BLUE"), handleBlueItem, ChoiceTransitionOptions.builder()
.comment("blue item comment")
.build());
choice.otherwise(handleOtherItemColor);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forChoicePropsstatic final classAn implementation forChoiceProps -
Method Summary
Static MethodsMethods inherited from interface software.amazon.awscdk.services.stepfunctions.AssignableStateOptions
getAssignMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonataCommonOptions
getOutputsMethods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonPathCommonOptions
getInputPath, getOutputPathMethods inherited from interface software.amazon.awscdk.services.stepfunctions.StateBaseProps
getComment, getQueryLanguage, getStateName
-
Method Details
-
builder
- Returns:
- a
ChoiceProps.BuilderofChoiceProps
-