I was kept awake by the noise of the traffic. Given sentence is in Past simple tense and it is in active voice, we need to change it into passive voice. Rule : Subject + (was / were) + V3 + Optional Agents.
From Voice · English Language Competence Test
The boy laughed at the beggar.
She will be rewarded for her kind deed.
The boys were playing cricket.
The children could use the place always.
Why was he refused admittance?
They are building a house next door to our school.
Open the window.
They made him a king.