How to activate/deactivate the ambient occlusion and vignette effect in code?

Hi,

Right now, I can enable or disenable the ambient occlusion and vignette effect in Unreal before I play, but is there a way to control them in code? Like create a menu or a button. Thank you.