How to Stream data from AWS IoT to AWS Lambda utilizing Python?

Hi…I am Publishing data from Raspberry Pi to AWS IoT and I can see the updates there. Now, I need to get that data into and connect it to AWS SNS to send a message above a threshold. I know about working with SNS and IoT. I simply need to realize that how I can get the information from AWS IoT to AWS Lambda ??

Well, anyone who is looking to get data from AWS and connect it to AWS Lamda, can follow and use AWS IoT rules that allow them to do this.