protected function listS3Websites($name)
{
$result = [];
$buckets = $this->getAws()->s3->bucket->getWebsite($name);
if ($buckets) {
$location = $this->getAws()->s3->bucket->getLocation($name);
if (empty($location)) {
$location = 'us-east-1';
}
$zoneIds = Aws::getCloudLocationsZoneIds();
$result[] = array('domainName' => $name . 's3-website-' . $location . '.amazonaws.com', 'aliasZoneId' => isset($zoneIds[$location]) ? $zoneIds[$location] : null, 'title' => self::S3_ALIAS_TARGET_TITLE);
}
return $result;
}