AWS Fundamentals Logo
AWS Fundamentals

AWS Step Functions

15 CDK constructs available in aws-cdk-lib/aws-stepfunctions

import * as stepfunctions from 'aws-cdk-lib/aws-stepfunctions';

L2 Constructs11

Higher-level abstractions with sensible defaults and convenience methods.

Activity

L2

Define a new Step Functions Activity.

Choice

L2

Define a Choice in the state machine. A choice state can be used to make decisions based on the execution state.

CustomState

L2

State defined by supplying Amazon States Language (ASL) in the state machine.

DistributedMap

L2

Define a Distributed Mode Map state in the state machine. A `Map` state can be used to run a set of steps for each element of an input array. A Map state will execute the same steps for multiple entries of an array in the state input. While the Parallel state executes multiple branches of steps using the same input, a Map state will execute the same steps for multiple entries of an array in the state input. A `Map` state in `Distributed` mode will execute a child workflow for each iteration of the Map state. This serves to increase concurrency and allows for larger workloads to be run in a single state machine.

Fail

L2

Define a Fail state in the state machine. Reaching a Fail state terminates the state execution in failure.

Map

L2

Define a Map state in the state machine. A `Map` state can be used to run a set of steps for each element of an input array. A Map state will execute the same steps for multiple entries of an array in the state input. While the Parallel state executes multiple branches of steps using the same input, a Map state will execute the same steps for multiple entries of an array in the state input.

Parallel

L2

Define a Parallel state in the state machine. A Parallel state can be used to run one or more state machines at the same time. The Result of a Parallel state is an array of the results of its substatemachines.

Pass

L2

Define a Pass in the state machine. A Pass state can be used to transform the current execution's state.

StateMachine

L2

Define a StepFunctions State Machine.

Succeed

L2

Define a Succeed state in the state machine. Reaching a Succeed state terminates the state execution in success.

Wait

L2

Define a Wait state in the state machine. A Wait state can be used to delay execution of the state machine for a while.

L1 Constructs4

Direct CloudFormation resource mappings. One-to-one with CloudFormation resource types.

Get the AWS Step Functions Cheat Sheet

Everything you need to know about AWS Step Functions on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

L2 Constructs11
L1 Constructs4
Moduleaws-cdk-lib/aws-stepfunctions