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

restoreObject() public method

Restores an archived copy of an object back into Amazon S3
public restoreObject ( string $bucket, string $key, integer $days ) : mixed
$bucket string
$key string
$days integer
return mixed
    public function restoreObject($bucket, $key, $days)
    {
        $params = ['Bucket' => $bucket, 'Key' => $key, 'Days' => $days];
        return $this->instance->restoreObject($params);
    }

Usage Example

Example #1
0
 /**
  * Restores an archived copy of an object back into Amazon S3
  *
  * @param string $bucket
  * @param string $key
  * @param int    $days
  *
  * @internal param array $args
  *
  * @return mixed
  */
 public function restoreObject($bucket, $key, $days)
 {
     return $this->instance->restoreObject($bucket, $key, $days);
 }