Webiny\Component\Amazon\S3::copyObject PHP Method

copyObject() public method

Creates a copy of an object that is already stored in Amazon S3.
public copyObject ( string $sourceBucket, string $sourceKey, string $targetBucket, string $targetKey, array $params = [] ) : mixed
$sourceBucket string
$sourceKey string
$targetBucket string
$targetKey string
$params array
return mixed
    public function copyObject($sourceBucket, $sourceKey, $targetBucket, $targetKey, array $params = [])
    {
        return $this->instance->copyObject($sourceBucket, $sourceKey, $targetBucket, $targetKey, $params);
    }