ChoiceTransitionOptions
- class aws_cdk.aws_stepfunctions.ChoiceTransitionOptions(*, comment=None)
Bases:
object
Options for Choice Transition.
- Parameters:
comment (
Optional
[str
]) – An optional description for the choice transition. Default: No comment- ExampleMetadata:
infused
Example:
choice = sfn.Choice(self, "What color is it?", comment="color comment" ) handle_blue_item = sfn.Pass(self, "HandleBlueItem") handle_other_item_color = sfn.Pass(self, "HanldeOtherItemColor") choice.when(sfn.Condition.string_equals("$.color", "BLUE"), handle_blue_item, comment="blue item comment" ) choice.otherwise(handle_other_item_color)
Attributes
- comment
An optional description for the choice transition.
- Default:
No comment