modifyDBSubnetGroup method

Future<ModifyDBSubnetGroupResult> modifyDBSubnetGroup({
  1. required String dBSubnetGroupName,
  2. required List<String> subnetIds,
  3. String? dBSubnetGroupDescription,
})

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);
}