AWS IoT offers services for all layers of security, including preventive security mechanisms, like encryption and access control to device data, and a service to continuously monitor and audit configurations.
AWS Lambda is an event-driven, serverless computing platform provided by Amazon as a part of Amazon Web Services. It lets clients run code without provisioning or managing servers.