public static Environment from(String value) {
        return switch (value) {
            case "prod" -> prod;
            case "staging" -> staging;
            case "test" -> test;
            case "dev" -> dev;
            case "perf" -> perf;
            default -> throw new IllegalArgumentException("'" + value + "' is not a valid environment identifier");
        };
    }
Returns the environment name from the string value returned by value()
config-provisioning/src/main/java/com/yahoo/config/provision/Environment.java