stopDurableExecution method
Future<StopDurableExecutionResponse>
stopDurableExecution({
- required String durableExecutionArn,
- ErrorObject? error,
Stops a running durable execution. The execution transitions to STOPPED status and cannot be resumed. Any in-progress operations are terminated.
May throw InvalidParameterValueException.
May throw ResourceNotFoundException.
May throw ServiceException.
May throw TooManyRequestsException.
Parameter durableExecutionArn :
The Amazon Resource Name (ARN) of the durable execution.
Parameter error :
Optional error details explaining why the execution is being stopped.
Implementation
Future<StopDurableExecutionResponse> stopDurableExecution({
required String durableExecutionArn,
ErrorObject? error,
}) async {
final response = await _protocol.send(
payload: error,
method: 'POST',
requestUri:
'/2025-12-01/durable-executions/${Uri.encodeComponent(durableExecutionArn)}/stop',
exceptionFnMap: _exceptionFns,
);
return StopDurableExecutionResponse.fromJson(response);
}