def notification_event(events):
    valid_events = ['All', 'InProgress', 'Success', 'TimedOut', 'Cancelled', 'Failed']
    for event in events:
        if (event not in valid_events):
            raise ValueError(('NotificationEvents must be at least one of: "%s"' % ', '.join(valid_events)))
    return events
def notification_event(events):
    valid_events = ['All', 'InProgress', 'Success', 'TimedOut', 'Cancelled', 'Failed']
    for event in events:
        if (event not in valid_events):
            raise ValueError(('NotificationEvents must be at least one of: "%s"' % ', '.join(valid_events)))
    return events