Disable entity as part of routine

I have a switch that when its turned off i want it to be disabled from turning back on for 10mins or so by any means, (alexa skill via HA, UI etc).

I think the easiest way to do this is via node red and the perhaps the home assistant API. Has anybody done something similar or could possibly share what the call to disable programatically looks like?

The only way i can think off right now to achieve this is, is by using a proxy switch that you expose to UI, Alexa etc. and link the state to the real switch. Then put it on a timer, that leaves enough time for node red to cancel the request if it originated within the 10min after being turned off.