public function test() { $test = $this->connection->getBucketAcl(array('Bucket' => $this->bucket)); if (isset($test) && !is_null($test->getPath('Owner/ID'))) { return true; } return false; }
/** * Get access control policy for the bucket * * @param string $bucket * * @return mixed */ public function getBucketAcl($bucket) { $params['Bucket'] = $bucket; return $this->instance->getBucketAcl($params); }
/** * getAcl * * @return \Guzzle\Service\Resource\Model */ public function getAcl() { return $this->client->getBucketAcl(['Bucket' => $this->name]); }