getDurableExecution method
Retrieves detailed information about a specific durable execution, including its current status, input payload, result or error information, and execution metadata such as start time and usage statistics.
May throw InvalidParameterValueException.
May throw KMSAccessDeniedException.
May throw KMSDisabledException.
May throw KMSInvalidStateException.
May throw KMSNotFoundException.
May throw ResourceNotFoundException.
May throw ServiceException.
May throw TooManyRequestsException.
Parameter durableExecutionArn :
The Amazon Resource Name (ARN) of the durable execution.
Parameter includeExecutionData :
Specifies whether to include execution data such as input payload, result,
and error information in the response. Set to false for a
more compact response that includes only execution metadata. The default
value is set to true.
Implementation
Future<GetDurableExecutionResponse> getDurableExecution({
required String durableExecutionArn,
bool? includeExecutionData,
}) async {
final $query = <String, List<String>>{
if (includeExecutionData != null)
'IncludeExecutionData': [includeExecutionData.toString()],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2025-12-01/durable-executions/${Uri.encodeComponent(durableExecutionArn)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetDurableExecutionResponse.fromJson(response);
}