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.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The identifier for the DB Snapshot to restore from. Constraints:
|
|
|
Required |
Name of the DB Instance to create from the DB Snapshot. This parameter isn’t case sensitive. Constraints:
Example: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Restore a database instance from a database snapshot.
// Instantiate the class $rds = new AmazonRDS(); $response = $rds->restore_db_instance_from_db_snapshot('mySnapshot', 'mySnapshot', array( 'DBInstanceClass' => 'db.m1.small', 'AutoMinorVersionUpgrade' => 'true' )); // Success? var_dump($response->isOK());
Related Methods
Source
Method defined in services/rds.class.php | Toggle source view (8 lines) | View on GitHub