What is this ?

This was mounted to the passenger side cowl under the hood. It looks like it's part of the ignition or alternator. I tried looking up the part numbers but I got nothing. Any help would be appreciated. Thanks!

20200205_172328.jpg

20200205_152237.jpg

20200205_172321.jpg