Skip to content

Step Functions

myna supports operations for managing and executing AWS Step Functions state machines.

  • sfn.list_state_machines
  • sfn.start_execution
  • sfn.describe_execution
  • sfn.stop_execution

List State Machines (sfn.list_state_machines)

Section titled “List State Machines (sfn.list_state_machines)”

Lists the existing state machines.

version = "1.0"
kind = "sfn.list_state_machines"

Starts a state machine execution.

FieldTypeRequiredDescription
state_machine_arnstringYesThe Amazon Resource Name (ARN) of the state machine to execute.
namestringNoThe name of the execution.

The input for the execution is taken from the [payload] block (either data or file).

version = "1.0"
kind = "sfn.start_execution"
[sfn]
state_machine_arn = "arn:aws:states:us-east-1:123456789012:stateMachine:MyStateMachine"
name = "test-execution-1"
[payload]
data = """
{
"input_key": "input_value"
}
"""

Describe Execution (sfn.describe_execution)

Section titled “Describe Execution (sfn.describe_execution)”

Describes an execution.

FieldTypeRequiredDescription
execution_arnstringYesThe Amazon Resource Name (ARN) of the execution to describe.
version = "1.0"
kind = "sfn.describe_execution"
[sfn]
execution_arn = "arn:aws:states:us-east-1:123456789012:execution:MyStateMachine:test-execution-1"

Stops an execution.

FieldTypeRequiredDescription
execution_arnstringYesThe Amazon Resource Name (ARN) of the execution to stop.
errorstringNoThe error code of the failure.
causestringNoA more detailed explanation of the cause of the failure.
version = "1.0"
kind = "sfn.stop_execution"
[sfn]
execution_arn = "arn:aws:states:us-east-1:123456789012:execution:MyStateMachine:test-execution-1"
cause = "Timeout"