A living will is a document which expresses your desire not to be kept on artificial life prolonging medical procedures when there is no prospect for your recovery from a serious illness, or when you are terminally ill.
In your living will you may give certain health care directives and even name an Agent to make medical decisions on your behalf if you are unable to make such decisions.