예제 #1
0
 /**
  * @depends testHeadBucket
  * @expectedException \Aws\S3\Exception\NoSuchBucketPolicyException
  */
 public function testGetBucketPolicy()
 {
     $this->log(__METHOD__);
     $this->client->getBucketPolicy(array('Bucket' => $this->bucket));
 }
예제 #2
0
파일: S3.php 프로젝트: Webiny/Framework
 /**
  * Returns the policy of a specified bucket.
  *
  * @param string $bucket
  *
  * @return mixed
  */
 public function getBucketPolicy($bucket)
 {
     $params = ['Bucket' => $bucket];
     return $this->instance->getBucketPolicy($params);
 }
예제 #3
0
파일: Bucket.php 프로젝트: m6web/aws-bundle
 /**
  * getPolicy
  *
  * @return \Guzzle\Service\Resource\Model
  */
 public function getPolicy()
 {
     return $this->client->getBucketPolicy(['Bucket' => $this->name]);
 }