Creates a new DB Security Group. DB Security Groups control access to a DB Instance.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name for the DB Security Group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not be “Default”. Example: |
|
|
Required |
The description for the DB Security Group. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Create a database security group.
// Instantiate the class $rds = new AmazonRDS(); $response = $rds->create_db_security_group('mySecurityGroup', 'This is a sample description.'); // 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