please change line 79 to use getName as this is per AWS code. http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/regions/Regions.html#getName()