list_workflow_runs
¶
list_workflow_runs(
workflow_arn: WorkflowArn,
*,
config_overrides: Optional[MWAAServerlessClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
workflow_version: Optional[VersionId] = None,
) -> ListWorkflowRunsResponse
Lists all runs for a specified workflow, with optional pagination and filtering support.
Parameters:
-
max_results(Optional[int], default:None) –The maximum number of workflow runs to return in a single response.
-
next_token(Optional[str], default:None) –The pagination token you need to use to retrieve the next set of results. This value is returned from a previous call to
ListWorkflowRuns. -
workflow_arn(WorkflowArn) –The Amazon Resource Name (ARN) of the workflow for which you want a list of runs.
-
workflow_version(Optional[VersionId], default:None) –Optional. The specific version of the workflow for which you want a list of runs. If not specified, runs for all versions are returned.
Raises:
-
AccessDeniedException–You do not have sufficient permission to perform this action.
-
InternalServerException–An unexpected server-side error occurred during request processing.
-
OperationTimeoutException–The operation timed out.
-
ThrottlingException–The request was denied because too many requests were made in a short period, exceeding the service rate limits. Amazon Managed Workflows for Apache Airflow Serverless implements throttling controls to ensure fair resource allocation across all customers in the multi-tenant environment. This helps maintain service stability and performance. If you encounter throttling, implement exponential backoff and retry logic in your applications, or consider distributing your API calls over a longer time period.
-
ValidationException–The specified request parameters are invalid, missing, or inconsistent with Amazon Managed Workflows for Apache Airflow Serverless service requirements. This can occur when workflow definitions contain unsupported operators, when required IAM permissions are missing, when S3 locations are inaccessible, or when network configurations are invalid. The service validates workflow definitions, execution roles, and resource configurations to ensure compatibility with the managed Airflow environment and security requirements.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mwaa_serverless/_services/mwaa_serverless.py
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 | |