getEnumOrNull

inline fun <T : Enum<T>> AwsProfile.getEnumOrNull(key: String, subKey: String? = null): T?

Parse a config value as an enum.