Esp32 connection with aws iot core with ethernet shield enc28j60

Hi community.-.

I had developed with your collaboration some code for connecting the esp32 with the google cloud iot core service by using the ethernet shield enc28j60.
Google cloud iot core will be dismissed so I had to find another provider.
I found this esample for the connection with AWS Iot core by using the wifi.

This example is relying on the WiFiClientSecure.h library and the <PubSubClient.h>…

The question is that if there are same examples of the connection with the ethernet shield or we have to change the call to the library as I did for the google iot core example .

The change it is the same ?

Thanks a lot @maxgerhardt