Today, Amazon CloudWatch alarms support AWS Lambda functions as an alarm state change action. Customers can now choose to invoke a Lambda function directly when a CloudWatch alarm changes to an OK, ALARM or INSUFFICIENT_DATA state. This makes it easier for customers to automate custom actions on alarm state changes.
Source:: Amazon AWS