Bases: object
Properties for defining a State Machine.
definition (IChainable
) – Definition for this state machine.
logs (Union
[LogOptions
, Dict
[str
, Any
], None
]) – Defines what execution history events are logged and where they are logged. Default: No logging
role (Optional
[IRole
]) – The execution role for the state machine service. Default: A role is automatically created
state_machine_name (Optional
[str
]) – A name for the state machine. Default: A name is automatically generated
state_machine_type (Optional
[StateMachineType
]) – Type of the state machine. Default: StateMachineType.STANDARD
timeout (Optional
[Duration
]) – Maximum run time for this state machine. Default: No timeout
tracing_enabled (Optional
[bool
]) – Specifies whether Amazon X-Ray tracing is enabled for this state machine. Default: false
infused
Example:
import aws_cdk.aws_stepfunctions as stepfunctions
pipeline = codepipeline.Pipeline(self, "MyPipeline")
input_artifact = codepipeline.Artifact()
start_state = stepfunctions.Pass(self, "StartState")
simple_state_machine = stepfunctions.StateMachine(self, "SimpleStateMachine",
definition=start_state
)
step_function_action = codepipeline_actions.StepFunctionInvokeAction(
action_name="Invoke",
state_machine=simple_state_machine,
state_machine_input=codepipeline_actions.StateMachineInput.file_path(input_artifact.at_path("assets/input.json"))
)
pipeline.add_stage(
stage_name="StepFunctions",
actions=[step_function_action]
)
Attributes
Definition for this state machine.
Defines what execution history events are logged and where they are logged.
No logging
The execution role for the state machine service.
A role is automatically created
A name for the state machine.
A name is automatically generated
Type of the state machine.
StateMachineType.STANDARD
Maximum run time for this state machine.
No timeout
Specifies whether Amazon X-Ray tracing is enabled for this state machine.
false