Modeling of epidemic spreading under limited resources and in uncertain environments