Webiny\Component\Amazon\Bridge\S3\S3::getBucketPolicy PHP Method

getBucketPolicy() public method

Returns the policy of a specified bucket.
public getBucketPolicy ( string $bucket ) : mixed
$bucket string
return mixed
    public function getBucketPolicy($bucket)
    {
        $params = ['Bucket' => $bucket];
        return $this->instance->getBucketPolicy($params);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Returns the policy of a specified bucket.
  *
  * @param string $bucket
  *
  * @return mixed
  */
 public function getBucketPolicy($bucket)
 {
     return $this->instance->getBucketPolicy($bucket);
 }