in src/ClientBuilder.php [412:427]
protected function isCloud(array $hosts): bool
{
if (empty($hosts) || count($hosts)>1) {
return false;
}
$url = $hosts[0];
// Elastic Cloud gcp
if (preg_match('/\.cloud\.es\.io/i', $url)) {
return true;
}
// Elastic Cloud aws or azure
if (preg_match('/\.elastic-cloud\.com/i', $url)) {
return true;
}
return false;
}