import json


def apigw_event(input_data, return_prediction=True, return_probabilities=False):
    """ Generates a minimal API GW Event"""

    return {
        "body": json.dumps(
            {
                "input": input_data,
                "return_prediction": return_prediction,
                "return_probabilities": return_probabilities,
            }
        )
    }