Rule for turning off plug after X minutes?

Is there a way to create a rule to turn on a plug and then turn it off after, say, 30 minutes?

yes, but you would have to set up two rules. on to turn it on and one to turn it off after the allotted time.