Tuneable Gaussian to flat-top resonator by amplitude beam shaping.