in lambda/source/invoke_state_machine.py [0:0]
def invoke(stateMachineArn, stateMachineInputJSON):
# The Amazon Resource Name (ARN) of the state machine to execute.
# Example - arn:aws:states:us-west-2:112233445566:stateMachine:HelloWorld-StateMachine
STATE_MACHINE_ARN = stateMachineArn
#The string that contains the JSON input data for the execution
INPUT = stateMachineInputJSON
response = sfn.start_execution(
stateMachineArn=STATE_MACHINE_ARN,
input=INPUT
)
#display the arn that identifies the execution
print("state machine execution response:")
print(response.get('executionArn'))
return response.get('executionArn')