import json


def build_event(body_data, query_params=dict(), path_params=dict()):
    """
    Builds AWS Lambda event using the provided data

    Args:
        body_data (dict): data loaded to the body of event
        query_params (dict): data loaded to query params of event
        path_params (dict): data loaded to path params of event

    Returns:
        event (dict): AWS Lambda event
    """
    body = json.dumps(body_data) if body_data else None
    event = {
        'body': body,
        'queryStringParameters': query_params,
        'pathParameters': path_params
    }

    return event