in lambda/source/invoke_state_machine.py [0:0]
def get_output(stateMachineExecutionArn):
# The Amazon Resource Name (ARN) of the state machine execution.
# Example - arn:aws:states:us-west-2:046245209178:execution:StateMachine-QLMcJZOuQZY5:05663906-44d4-4465-921d-58454836ba40
STATE_MACHINE_EXECUTION_ARN = stateMachineExecutionArn
response = sfn.describe_execution(
executionArn=stateMachineExecutionArn
)
# Display the output
print('State machine execution output: ')
print(response.get('output'))