modifyDBSubnetGroup method
May throw DBSubnetGroupNotFoundFault. May throw DBSubnetQuotaExceededFault. May throw SubnetAlreadyInUse. May throw DBSubnetGroupDoesNotCoverEnoughAZs. May throw InvalidSubnet.
Implementation
Future<ModifyDBSubnetGroupResult> modifyDBSubnetGroup({
required String dBSubnetGroupName,
required List<String> subnetIds,
String? dBSubnetGroupDescription,
}) async {
ArgumentError.checkNotNull(dBSubnetGroupName, 'dBSubnetGroupName');
ArgumentError.checkNotNull(subnetIds, 'subnetIds');
final $request = <String, dynamic>{};
$request['DBSubnetGroupName'] = dBSubnetGroupName;
$request['SubnetIds'] = subnetIds;
dBSubnetGroupDescription
?.also((arg) => $request['DBSubnetGroupDescription'] = arg);
final $result = await _protocol.send(
$request,
action: 'ModifyDBSubnetGroup',
version: '2013-09-09',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ModifyDBSubnetGroupMessage'],
shapes: shapes,
resultWrapper: 'ModifyDBSubnetGroupResult',
);
return ModifyDBSubnetGroupResult.fromXml($result);
}