aws-cdk-lib.aws_stepfunctions.StateMachineType

enum StateMachineType

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.StateMachineType
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#StateMachineType
Javasoftware.amazon.awscdk.services.stepfunctions.StateMachineType
Pythonaws_cdk.aws_stepfunctions.StateMachineType
TypeScript (source)aws-cdk-lib » aws_stepfunctions » StateMachineType

Two types of state machines are available in AWS Step Functions: EXPRESS AND STANDARD.

See also: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-standard-vs-express.html

Example

const stateMachineDefinition = new stepfunctions.Pass(this, 'PassState');

const stateMachine: stepfunctions.IStateMachine = new stepfunctions.StateMachine(this, 'StateMachine', {
  definition: stateMachineDefinition,
  stateMachineType: stepfunctions.StateMachineType.EXPRESS,
});

new apigateway.StepFunctionsRestApi(this, 'StepFunctionsRestApi', {
  deploy: true,
  stateMachine: stateMachine,
});

Members

NameDescription
EXPRESSExpress Workflows are ideal for high-volume, event processing workloads.
STANDARDStandard Workflows are ideal for long-running, durable, and auditable workflows.

EXPRESS

Express Workflows are ideal for high-volume, event processing workloads.


STANDARD

Standard Workflows are ideal for long-running, durable, and auditable workflows.