get_execution_history
¶
get_execution_history(
execution_arn: Arn,
*,
config_overrides: Optional[SFNClientConfig] = None,
max_results: Optional[PageSize] = None,
reverse_order: Optional[ReverseOrder] = None,
next_token: Optional[PageToken] = None,
include_execution_data: Optional[IncludeExecutionDataGetExecutionHistory] = None,
) -> GetExecutionHistoryOutput
Returns the history of the specified execution as a list of events. By default, the results are returned in ascending order of the timeStamp of the events. Use the reverseOrder parameter to get the latest events first.
If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
This API action is not supported by EXPRESS state machines.
Parameters:
-
execution_arn(Arn) –The Amazon Resource Name (ARN) of the execution.
-
max_results(Optional[PageSize], default:None) –The maximum number of results that are returned per call. You can use
nextTokento obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
-
reverse_order(Optional[ReverseOrder], default:None) –Lists events in descending order of their
timeStamp. -
next_token(Optional[PageToken], default:None) –If
nextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. -
include_execution_data(Optional[IncludeExecutionDataGetExecutionHistory], default:None) –You can select whether execution data (input or output of a history event) is returned. The default is
true.
Raises:
-
ExecutionDoesNotExist–The specified execution does not exist.
-
InvalidArn–The provided Amazon Resource Name (ARN) is not valid.
-
InvalidToken–The provided token is not valid.
-
KmsAccessDeniedException–Either your KMS key policy or API caller does not have the required permissions.
-
KmsInvalidStateException–The KMS key is not in valid state, for example: Disabled or Deleted.
-
KmsThrottlingException–Received when KMS returns
ThrottlingExceptionfor a KMS call that Step Functions makes on behalf of the caller. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sfn/_services/sfn.py
1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 | |