Disables access logging for the specified Amazon S3 bucket.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the bucket to use. Pass |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Disable logging for a bucket.
// Instantiate the class $s3 = new AmazonS3(); $logging_bucket = 'my-bucket-logs' . strtolower($s3->key); $logged_bucket = 'my-bucket-test' . strtolower($s3->key); // Disable logging for a given bucket $response = $s3->disable_logging($logged_bucket); // Delete bucket that contained the logs $s3->delete_bucket($logging_bucket, true); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
See Also
Source
Method defined in services/s3.class.php | Toggle source view (14 lines) | View on GitHub