suggest an aws based architecture that will allow me :
1. gather information from medical iot device
2. save the received data in time series optimized data base 
3. will allow me to perform real time AI based analytics 
4. will allow me to trigger an alert when particular patterns are detected 

make sure you suggestion contains both: aws best tools to use and an architectural in mermaid style 