public function modifyDBParameterGroup($dBParameterGroupName, ParameterList $parameters)
{
$result = false;
$options = array('DBParameterGroupName' => (string) $dBParameterGroupName);
if ($this->rds->getApiClientType() == Aws::CLIENT_SOAP) {
$parameter = array();
foreach ($parameters as $v) {
$parameter[] = $v->getQueryArray();
}
$options['Parameters']['Parameter'] = $parameter;
} else {
$options = array_merge($options, array_filter($parameters->getQueryArray('Parameters'), function ($v) {
return $v !== null;
}));
}
$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 = (string) $ptr->DBParameterGroupName;
}
return $result;
}