Otherwise, look to the history of your company. How have your boss and other managers handled employees' resignations? If you see a pattern of upper management refusing to let the team members work out their notice, you can likely expect the same.
It also starts the clock for your boss and your company, kicking off the transition plan of training, hiring, and otherwise covering your impending departure. The bad examples here are all too vague. With the last one, you're aligning yourself with company policy, which is good, but it still doesn't tell the reader how much notice that actually is. Be as specific as possible on the time you have between now and your last day.