def get_data(event):
    """Returns the data property in a given event.

    :type event: dict
    :param event: event from CodePipeline.

    :rtype: dict
    :return: data property in ``event``.

    :raises KeyError: if ``event`` does not have a necessary property.
    """
    return event['CodePipeline.job']['data']