rebootWorkspaces method
Future<RebootWorkspacesResult>
rebootWorkspaces({
- required List<
RebootRequest> rebootWorkspaceRequests,
Reboots the specified WorkSpaces.
You cannot reboot a WorkSpace unless its state is AVAILABLE,
UNHEALTHY, or REBOOTING. Reboot a WorkSpace in
the REBOOTING state only if your WorkSpace has been stuck in
the REBOOTING state for over 20 minutes.
This operation is asynchronous and returns before the WorkSpaces have rebooted.
May throw OperationNotSupportedException.
Parameter rebootWorkspaceRequests :
The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.
Implementation
Future<RebootWorkspacesResult> rebootWorkspaces({
required List<RebootRequest> rebootWorkspaceRequests,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.RebootWorkspaces'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'RebootWorkspaceRequests': rebootWorkspaceRequests,
},
);
return RebootWorkspacesResult.fromJson(jsonResponse.body);
}