Java (SDK V2) Code Samples for Amazon CloudWatch - AWS Code Sample