Class ChoiceProps
Properties for defining a Choice state.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ChoiceProps : Object, IChoiceProps
Syntax (vb)
Public Class ChoiceProps
Inherits Object
Implements IChoiceProps
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
Constructors
ChoiceProps() |
Properties
Comment | An optional description for this state. |
InputPath | JSONPath expression to select part of the state to be the input to this state. |
OutputPath | JSONPath expression to select part of the state to be the output to this state. |
StateName | Optional name for this state. |
Constructors
ChoiceProps()
public ChoiceProps()
Properties
Comment
An optional description for this state.
public string Comment { get; set; }
Property Value
System.String
Remarks
Default: No comment
InputPath
JSONPath expression to select part of the state to be the input to this state.
public string InputPath { get; set; }
Property Value
System.String
Remarks
May also be the special value JsonPath.DISCARD, which will cause the effective input to be the empty object {}.
Default: $
OutputPath
JSONPath expression to select part of the state to be the output to this state.
public string OutputPath { get; set; }
Property Value
System.String
Remarks
May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}.
Default: $
StateName
Optional name for this state.
public string StateName { get; set; }
Property Value
System.String
Remarks
Default: - The construct ID will be used as state name