terminateWorkspacesPoolSession method
Terminates the pool session.
May throw AccessDeniedException.
May throw InvalidParameterValuesException.
May throw OperationInProgressException.
May throw OperationNotSupportedException.
May throw ResourceNotFoundException.
Parameter sessionId :
The identifier of the pool session.
Implementation
Future<void> terminateWorkspacesPoolSession({
required String sessionId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.TerminateWorkspacesPoolSession'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SessionId': sessionId,
},
);
}