Creates a DBSnapshot. The source DBInstance must be in “available” state.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The identifier for the DB Snapshot. Constraints:
Example: |
|
|
Required |
The DB Instance identifier. This is the unique key that identifies a DB Instance. This parameter isn’t case sensitive. Constraints:
|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Create a database snapshot.
// Instantiate the class $rds = new AmazonRDS(); $response = $rds->create_db_snapshot('mySnapshot', 'myInstanceID'); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/rds.class.php | Toggle source view (8 lines) | View on GitHub