Scalr\Service\Aws\Ec2\DataType\SnapshotData::copy PHP Method

copy() public method

Copies a point-in-time snapshot of an Amazon Elastic Block Store (Amazon EBS) volume and stores it in Amazon Simple Storage Service (Amazon S3).You can copy the snapshot within the same region or from one region to another.You can use the snapshot to create new Amazon EBS volumes or Amazon Machine Images (AMIs)
public copy ( string $srcRegion, string $description = null, string $destRegion = null, string $presignedUrl = null ) : string
$srcRegion string The ID of the AWS region that contains the snapshot to be copied.
$description string optional A description of the new Amazon EBS snapshot.
$destRegion string optional The ID of the destination region.
$presignedUrl string optional The pre-signed URL that facilitates copying an encrypted snapshot. The PresignedUrl should use the snapshot source endpoint, the CopySnapshot action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion parameters.
return string Returns ID of the created snapshot on success.
    public function copy($srcRegion, $description = null, $destRegion = null, $presignedUrl = null)
    {
        $this->throwExceptionIfNotInitialized();
        return $this->getEc2()->snapshot->copy($srcRegion, $this->snapshotId, $description, $destRegion, $presignedUrl);
    }