C++ Code Samples for Amazon CloudWatch - AWS Code Sample