How does FaaS work?

Trigger (Event Source) -> Function -> Resources (output)