Toddler Lock disables the Touch Ring as well as the volume and brightness buttons to prevent tiny little hands from making unexpected changes. Toddler Lock does not disable the nightlight button, so you can still easily turn on the light for a diaper change or to help soothe a nightmare away.
For information on setting up Toddler Lock, check out this article.