Syncs Data from smartthings cloud to AWS/AZure

I am new to smartthings. I am looking for capturing data from sensors like Door Open/Close, Light switched off/on from Sensor connected to smartthings Hub/Mobile app and sync the data with Azure and AWS so that I can run analytics on this data. Can anyone connect me to any documentation to build this app ?