code: public static boolean isValidRegion(String region) {
  		try {
  			Regions.fromName(region.toLowerCase());
  		} catch (IllegalArgumentException e) {
  			return false;
  		}
  		return true;
  	}
docs: Checks whether or not a region ID is valid.
  
  @param region The AWS region ID to check
  @return true if the supplied region ID is valid, false otherwise