The IDs referenced in the CLEU are
GUIDs. Any ID used for a unit frame is a Unit ID(or token) which normally refers to a frame that can be referenced, or created securely.
You can cache the GUIDs when nameplates are added/removed and use those to check applicable units in the CLEU so you can avoid multiplicative aura scans, especially if you'd be scanning nameplates and raid frames.
Performance tip: Cache the player GUID in the frame your using for the CLEU event and put the IF statements inside the player check.
Lua Code:
frame.playerGUID = UnitGUID('player')
frame.AuraList = { -- skip this if you're not planning on adding more de/buffs
106830 = true,
}
-- CLEU code with assuming your function is passed the frame as self
if sourceGUID == self.playerGUID then
if subevent == "SPELL_CAST_SUCCESS" and frame.AuraList[spellList] then
-- some more code
end
end