Basic of a Resignation Letter. There's no need to sugarcoat or get creative in the beginning; just state the position you're resigning from and the effective date. While you probably shared with your boss your reasons for leaving, you don't need to describe them here__keeping it simple is perfectly fine.
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.