'AWS IOT thing onDeviceShadowChanged weebhook / event

I'm developing an application in nodeJS to interact with AWS IOT things. I've managed to read/update a thing shadow but i want to fire an event / call a function when the device update the shadow to read the reported state. Is there any way to subscribe to an event ? I don't want to connect to MQTT topic as we pay per minute of connection.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source