Put some salted water to boil and cook the pasta according to the packet instruction.
Slice the onion and brown in a saucepan with olive oil and hot pepper. Then add chopped tomato and stir fry on a medium heat for a couple of minutes. Add sliced ham and mix. Pour the drained peas, cook for one minute and turn off the heat. Add the cream and the parmesan cheese.
When the pasta is cooked, before draining, keep a cup of cooking water.
Add the pasta to the pan, stirring over a medium heat until everything is tossing well (helping with some cooking water in case of need).