Show / Hide Table of Contents

Interface IChoiceProps

Properties for defining a Choice state.

Inherited Members
IStateBaseProps.Comment
IStateBaseProps.QueryLanguage
IStateBaseProps.StateName
IAssignableStateOptions.Assign
IJsonPathCommonOptions.InputPath
IJsonPathCommonOptions.OutputPath
IJsonataCommonOptions.Outputs
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IChoiceProps : IStateBaseProps, IAssignableStateOptions, IJsonPathCommonOptions, IJsonataCommonOptions
Syntax (vb)
Public Interface IChoiceProps Inherits IStateBaseProps, IAssignableStateOptions, IJsonPathCommonOptions, IJsonataCommonOptions
Remarks

ExampleMetadata: infused

Examples
var choice = new Choice(this, "What color is it?", new ChoiceProps {
                Comment = "color comment"
            });
            var handleBlueItem = new Pass(this, "HandleBlueItem");
            var handleOtherItemColor = new Pass(this, "HanldeOtherItemColor");
            choice.When(Condition.StringEquals("$.color", "BLUE"), handleBlueItem, new ChoiceTransitionOptions {
                Comment = "blue item comment"
            });
            choice.Otherwise(handleOtherItemColor);

Synopsis

Back to top Generated by DocFX