restartAppServer method
Causes the environment to restart the application container server running on each Amazon EC2 instance.
Parameter environmentId :
The ID of the environment to restart the server for.
Condition: You must specify either this or an EnvironmentName, or both. If
you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
Parameter environmentName :
The name of the environment to restart the server for.
Condition: You must specify either this or an EnvironmentId, or both. If
you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
Implementation
Future<void> restartAppServer({
String? environmentId,
String? environmentName,
}) async {
final $request = <String, String>{
if (environmentId != null) 'EnvironmentId': environmentId,
if (environmentName != null) 'EnvironmentName': environmentName,
};
await _protocol.send(
$request,
action: 'RestartAppServer',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
);
}