Gets the access control list (ACL) settings for the specified Amazon S3 bucket.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the bucket to use. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Get the ACL settings for a bucket.
// Instantiate the class $s3 = new AmazonS3(); $bucket = 'my-bucket-us-east-acl' . strtolower($s3->key); $response = $s3->get_bucket_acl($bucket); // Success? var_dump($response->isOK());Result:
bool(true)
See Also
Source
Method defined in services/s3.class.php | Toggle source view (10 lines) | View on GitHub