stopWorkspacesPool method

Future<void> stopWorkspacesPool({
  1. required String poolId,
})

Stops the specified pool.

You cannot stop a WorkSpace pool unless it has a running mode of AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR.

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> stopWorkspacesPool({
  required String poolId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.StopWorkspacesPool'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'PoolId': poolId,
    },
  );
}