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

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

Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted. Note! The specified DB Parameter Group cannot be associated with any DB Instances
public deleteDBParameterGroup ( string $dBParameterGroupName ) : boolean
$dBParameterGroupName string The name of the DB Parameter Group
Результат boolean Returns true on success or throws an exception.
    public function deleteDBParameterGroup($dBParameterGroupName)
    {
        $result = false;
        $options = array('DBParameterGroupName' => (string) $dBParameterGroupName);
        $action = ucfirst(__FUNCTION__);
        $response = $this->client->call($action, $options);
        if ($response->getError() === false) {
            $sxml = simplexml_load_string($response->getRawContent());
            $result = true;
            if ($this->rds->getEntityManagerEnabled() && null !== ($item = $this->rds->dbParameterGroup->get($options['DBParameterGroupName']))) {
                $this->getEntityManager()->detach($item);
            }
        }
        return $result;
    }
RdsApi