static bool GetConfigValue()

in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp [171:185]


static bool GetConfigValue(std::map<std::string, std::string> & data, const char * name, T & result,
                           bool optional)
{
  auto it = data.find(name);
  if (it != data.end()) {
    if (ParseConfigValue(it->second, result) && !optional) {
      return true;
    }
  }

  if (!optional) {
    AWS_LOG_DEBUG(AWS_LOG_TAG, "IoT provider: Missing %s configuration value", name);
  }
  return false;
}