Scalr\Service\Aws\Rds\V20141031\RdsApi::modifyDBSubnetGroup PHP Method

modifyDBSubnetGroup() public method

DB subnet groups must contain at least one subnet in at least two AZs in the region.
public modifyDBSubnetGroup ( Scalr\Service\Aws\Rds\DataType\ModifyDBSubnetGroupRequestData $request ) : Scalr\Service\Aws\Rds\DataType\DBSubnetGroupData
$request Scalr\Service\Aws\Rds\DataType\ModifyDBSubnetGroupRequestData
return Scalr\Service\Aws\Rds\DataType\DBSubnetGroupData
    public function modifyDBSubnetGroup(ModifyDBSubnetGroupRequestData $request)
    {
        $result = null;
        $options = $request->getQueryArray();
        if ($this->rds->getApiClientType() === Aws::CLIENT_SOAP) {
            if (isset($options['SubnetIds.member.1'])) {
                foreach ($options as $k => $v) {
                    if (strpos($k, 'SubnetIds.member.') !== false) {
                        $options['SubnetIds']['SubnetId'][] = $v;
                        unset($options[$k]);
                    }
                }
            }
        }
        $response = $this->client->call(ucfirst(__FUNCTION__), $options);
        if ($response->getError() === false) {
            $sxml = simplexml_load_string($response->getRawContent());
            if (!$this->exist($sxml->ModifyDBSubnetGroupResult)) {
                throw new RdsException(sprintf(self::UNEXPECTED, 'modify DBSubnet group'));
            }
            $result = $this->_loadDBSubnetGroupData($sxml->ModifyDBSubnetGroupResult->DBSubnetGroup);
        }
        return $result;
    }
RdsApi