Scalr\Service\Aws\Rds\V20141031\RdsApi::createDBParameterGroup PHP Метод

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

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.
public createDBParameterGroup ( Scalr\Service\Aws\Rds\DataType\DBParameterGroupData $request ) : Scalr\Service\Aws\Rds\DataType\DBParameterGroupData
$request Scalr\Service\Aws\Rds\DataType\DBParameterGroupData DBParameterGroupData object to create
Результат Scalr\Service\Aws\Rds\DataType\DBParameterGroupData Returns DBParameterGroupData on success or throws an exception.
    public function createDBParameterGroup(DBParameterGroupData $request)
    {
        $result = null;
        $options = $request->getQueryArray();
        $action = ucfirst(__FUNCTION__);
        $response = $this->client->call($action, $options);
        if ($response->getError() === false) {
            $sxml = simplexml_load_string($response->getRawContent());
            if (!$this->exist($sxml->{$action . 'Result'})) {
                throw new RdsException(sprintf(self::UNEXPECTED, $action));
            }
            $ptr = $sxml->{$action . 'Result'};
            $result = $this->_loadDBParameterGroupData($ptr->DBParameterGroup);
        }
        return $result;
    }
RdsApi