Scalr\Service\Aws\S3\Handler\BucketHandler::setNotification PHP Méthode

setNotification() public méthode

This implementation of the PUT operation uses the notification subresource to enable notifications of specified events for a bucket
public setNotification ( BucketData | string $bucketName, string $notification ) : boolean
$bucketName Scalr\Service\Aws\S3\DataType\BucketData | string A bucket name.
$notification string A XML Document which describes configuration
Résultat boolean Returns true on succes or false if failure.
    public function setNotification($bucketName, $notification)
    {
        if ($bucketName instanceof BucketData) {
            $bucketName = $bucketName->bucketName;
        }
        return $this->getS3()->getApiHandler()->setBucketNotification($bucketName, $notification);
    }