updateServerConfig method

Future<void> updateServerConfig({
  1. required String serverId,
  2. StrategyOption? strategyOption,
})

Updates the configuration of the specified server.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter serverId : The ID of the server.

Parameter strategyOption : The preferred strategy options for the application component. See the response from GetServerStrategies.

Implementation

Future<void> updateServerConfig({
  required String serverId,
  StrategyOption? strategyOption,
}) async {
  final $payload = <String, dynamic>{
    'serverId': serverId,
    if (strategyOption != null) 'strategyOption': strategyOption,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/update-server-config/',
    exceptionFnMap: _exceptionFns,
  );
}