StateMachineType
- class aws_cdk.aws_stepfunctions.StateMachineType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Two types of state machines are available in AWS Step Functions: EXPRESS AND STANDARD.
- Default:
STANDARD
- See:
- ExampleMetadata:
infused
Example:
import aws_cdk.aws_kms as kms import aws_cdk as cdk kms_key = kms.Key(self, "Key") state_machine = sfn.StateMachine(self, "StateMachineWithCMKEncryptionConfiguration", state_machine_name="StateMachineWithCMKEncryptionConfiguration", definition_body=sfn.DefinitionBody.from_chainable(sfn.Chain.start(sfn.Pass(self, "Pass"))), state_machine_type=sfn.StateMachineType.STANDARD, encryption_configuration=sfn.CustomerManagedEncryptionConfiguration(kms_key, cdk.Duration.seconds(60)) )
Attributes
- EXPRESS
Express Workflows are ideal for high-volume, event processing workloads.
- STANDARD
Standard Workflows are ideal for long-running, durable, and auditable workflows.