create_db_parameter_group ( $db_parameter_group_name, $db_parameter_group_family, $description, $opt )

Creates a new DB Parameter Group.

A DB Parameter Group is initially created with the default parameters for the database engine used by the DB Instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you’ve created a DB Parameter Group, you need to associate it with your DB Instance using ModifyDBInstance. When you associate a new DB Parameter Group with a running DB Instance, you need to reboot the DB Instance for the new DB Parameter Group and associated settings to take effect.

Access

public

Parameters

Parameter

Type

Required

Description

$db_parameter_group_name

string

Required

The name of the DB Parameter Group. Constraints:

  • Must be 1 to 255 alphanumeric characters
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

This value is stored as a lower-case string.

$db_parameter_group_family

string

Required

The DB Parameter Group Family name. A DB Parameter Group can be associated with one and only one DB Parameter Group Family, and can be applied only to a DB Instance running a database engine and engine version compatible with that DB Parameter Group Family.

$description

string

Required

The description for the DB Parameter Group.

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Examples

Create a database parameter group.

// Instantiate the class
$rds = new AmazonRDS();

$response = $rds->create_db_parameter_group('myParameterGroup', 'MySQL5.1', '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 (9 lines) | View on GitHub

public function create_db_parameter_group($db_parameter_group_name, $db_parameter_group_family, $description, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['DBParameterGroupName'] = $db_parameter_group_name;
    $opt['DBParameterGroupFamily'] = $db_parameter_group_family;
    $opt['Description'] = $description;
    
    return $this->authenticate('CreateDBParameterGroup', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback