state_machine

State Machine management module

class aws_stepfunction.state_machine.StateMachine(name: str, workflow: Workflow, role_arn: str, type: Optional[str] = 'STANDARD', logging_configuration: Optional[dict] = None, tracing_configuration: Optional[dict] = None, tags: Optional[dict] = None)[source]

Represent an instance of State Machine in AWS Console.

Parameters
  • name

  • workflowWorkflow

  • role_arn

  • type

  • logging_configuration

  • tracing_configuration

  • tags

exists(bsm: boto_session_manager.manager.BotoSesManager) bool[source]

Check if the state machine exists.

create(bsm: boto_session_manager.manager.BotoSesManager)[source]

Reference:

update(bsm: boto_session_manager.manager.BotoSesManager)[source]

Reference:

delete(bsm: boto_session_manager.manager.BotoSesManager)[source]

Reference:

execute(bsm: boto_session_manager.manager.BotoSesManager, payload: Optional[dict] = None, name: Optional[str] = None, sync: bool = False, trace_header: Optional[str] = None)[source]

Execute state machine with custom payload.

Parameters
  • payload – custom payload in python dictionary

  • name – the execution name, recommend to leave it empty and let step function to generate an uuid for you.

  • sync – if true, you need to wait for the execution to finish otherwise, it returns immediately, and you can check the status in the console

Reference: