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