They are called digital potentiometers. Here is one. Not sure if this is what you are looking for however. If you can elaborate on what you need to do, we can offer more guidance.
You can make a voltage controlled resistor using the LM13700. See Fig.10 in the data sheet. That's not a digital input unless you do a digital-analog conversion first.