Scalr\Service\Aws\S3\Handler\BucketHandler::setWebsite PHP Method

setWebsite() public method

This implementation of the PUT operation uses the website subresource to set the request website configuration of a bucket.
public setWebsite ( BucketData | string $bucketName, string $website ) : boolean
$bucketName Scalr\Service\Aws\S3\DataType\BucketData | string A bucket name.
$website string A XML Document which defines configuration
return boolean Returns true on succes or false if failure.
    public function setWebsite($bucketName, $website)
    {
        if ($bucketName instanceof BucketData) {
            $bucketName = $bucketName->bucketName;
        }
        return $this->getS3()->getApiHandler()->setBucketWebsite($bucketName, $website);
    }