/** * @depends testHeadBucket * @expectedException \Aws\S3\Exception\NoSuchBucketPolicyException */ public function testGetBucketPolicy() { $this->log(__METHOD__); $this->client->getBucketPolicy(array('Bucket' => $this->bucket)); }
/** * Returns the policy of a specified bucket. * * @param string $bucket * * @return mixed */ public function getBucketPolicy($bucket) { $params = ['Bucket' => $bucket]; return $this->instance->getBucketPolicy($params); }
/** * getPolicy * * @return \Guzzle\Service\Resource\Model */ public function getPolicy() { return $this->client->getBucketPolicy(['Bucket' => $this->name]); }