Scalr_UI_Controller_Tools_Aws_Route53_Recordsets::listS3Websites PHP 메소드

listS3Websites() 보호된 메소드

protected listS3Websites ( string $name ) : array
$name string
리턴 array
    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;
    }