Skip to content
v2.273.0

StateMachineType Enum ​

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

Example ​

ts
import * as kms from 'aws-cdk-lib/aws-kms';
import * as cdk from 'aws-cdk-lib';

const kmsKey = new kms.Key(this, 'Key');
const stateMachine = new sfn.StateMachine(this, 'StateMachineWithCMKEncryptionConfiguration', {
  stateMachineName: 'StateMachineWithCMKEncryptionConfiguration',
  definitionBody: sfn.DefinitionBody.fromChainable(sfn.Chain.start(new sfn.Pass(this, 'Pass'))),
  stateMachineType: sfn.StateMachineType.STANDARD,
  encryptionConfiguration: new sfn.CustomerManagedEncryptionConfiguration(kmsKey, cdk.Duration.seconds(60)),
});

Members ​

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

Referenced by ​

  • DistributedMapJsonataProps.mapExecutionTypemap_execution_typemapExecutionTypeMapExecutionTypeMapExecutionType
  • DistributedMapJsonPathProps.mapExecutionTypemap_execution_typemapExecutionTypeMapExecutionTypeMapExecutionType
  • DistributedMapProps.mapExecutionTypemap_execution_typemapExecutionTypeMapExecutionTypeMapExecutionType
  • StateMachine.stateMachineTypestate_machine_typestateMachineTypeStateMachineTypeStateMachineType
  • StateMachineProps.stateMachineTypestate_machine_typestateMachineTypeStateMachineTypeStateMachineType