Scalr\Service\Aws\S3\DataType\BucketData::setLifecycle PHP Метод

setLifecycle() публичный Метод

Sets the lifecycle configuration for your bucket. If the configuration exists, Amazon S3 replaces it.
public setLifecycle ( string $lifecycle ) : boolean
$lifecycle string A XML document that defines lifecycle configuration.
Результат boolean Returns true on succes or false if failure.
    public function setLifecycle($lifecycle)
    {
        $this->throwExceptionIfNotInitialized();
        return $this->getS3()->bucket->setLifecycle($this->bucketName);
    }