Scalr\Service\Aws\Rds\DataType\DBSnapshotData::restoreFromSnapshot PHP Метод

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

Creates a new DB Instance from a DB snapshot.The target database is created from the source database restore point with the same configuration as the original source database, except that the new RDS instance is created with the default security group.
public restoreFromSnapshot ( Scalr\Service\Aws\Rds\DataType\RestoreDBInstanceFromDBSnapshotRequestData | string $request ) : DBInstanceData
$request Scalr\Service\Aws\Rds\DataType\RestoreDBInstanceFromDBSnapshotRequestData | string The request object or DB Instance Identifier
Результат DBInstanceData Returns DBInstanceData on success or throws an exception.
    public function restoreFromSnapshot($request)
    {
        $this->throwExceptionIfNotInitialized();
        if (!is_object($request)) {
            $request = $this->getRestoreFromSnapshotRequest($request);
        }
        if (empty($request) || !$request instanceof RestoreDBInstanceFromDBSnapshotRequestData) {
            throw new \BadFunctionCallException('Invalid request argument for restoreFromSnapshot() method');
        }
        return $this->getRds()->dbInstance->restoreFromSnapshot($request);
    }