The idea that something is right only if God wills it to be so is known as
morality
Osupernatural law theory
ethics ex machina
Odivine command theory