INNER CODE UNIT · Python

lambda_handler

ydamni/cloud-is-free · projects/project-2/resources/restApiHandler/restApiHandler.py:6

def lambda_handler(event, context):
    sfn.start_execution(
        stateMachineArn="<state_machine_arn>",
        input=event['body']
    )
    
    return {
        "statusCode": 200,
        "body": json.dumps(
            {"Status": "Instruction sent to the REST API Handler!"},
        )
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…