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