def max_cum_build_rule(mod, g, p):
    """
    **Constraint Name**: GenNewLin_Max_Cum_Build_Constraint
    **Enforced Over**: GEN_NEW_LIN_VNTS_W_MAX_CONSTRAINT

    Can't build more than certain amount of capacity by period p.
    """
    return mod.GenNewLin_Capacity_MW[g, p] \
        <= mod.gen_new_lin_max_cumulative_new_build_mw[g, p]