I think
this example should do exactly what you're looking for.
One thing to be aware of is that when you're "getting" the pre-deployed lambda function, you're just getting values from it (i.e. the ARN) but you won't be able to manage it with Pulumi. If you want to do that you'll need to
import it