def find_notification(notification_name, notification_defs):
    """ Find a notification by name in a list of notification definitions.

    :param notification_name: the name of the notification to look for.
    :param notification_defs: a list of notification definitions.
    :return: the notification_def with matching name, or None.
    """
    for notification_def in notification_defs:
        if notification_def.name == notification_name:
            return notification_def
    return None
