list_closed_workflow_executions
async
¶
list_closed_workflow_executions(
domain: DomainName,
*,
config_overrides: Optional[AsyncSWFClientConfig] = None,
start_time_filter: Optional[ExecutionTimeFilter] = None,
close_time_filter: Optional[ExecutionTimeFilter] = None,
execution_filter: Optional[WorkflowExecutionFilter] = None,
close_status_filter: Optional[CloseStatusFilter] = None,
type_filter: Optional[WorkflowTypeFilter] = None,
tag_filter: Optional[TagFilter] = None,
next_page_token: Optional[PageToken] = None,
maximum_page_size: Optional[PageSize] = None,
reverse_order: Optional[ReverseOrder] = None,
) -> WorkflowExecutionInfos
Returns a list of closed workflow executions in the specified domain that meet the filtering criteria. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
-
Use a
Resourceelement with the domain name to limit the action to only specified domains. -
Use an
Actionelement to allow or deny permission to call this action. -
Constrain the following parameters by using a
Conditionelement with the appropriate keys.-
tagFilter.tag: String constraint. The key isswf:tagFilter.tag. -
typeFilter.name: String constraint. The key isswf:typeFilter.name. -
typeFilter.version: String constraint. The key isswf:typeFilter.version.
-
If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.
Parameters:
-
domain(DomainName) –The name of the domain that contains the workflow executions to list.
-
start_time_filter(Optional[ExecutionTimeFilter], default:None) –If specified, the workflow executions are included in the returned results based on whether their start times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their start times.
startTimeFilterandcloseTimeFilterare mutually exclusive. You must specify one of these in a request but not both. -
close_time_filter(Optional[ExecutionTimeFilter], default:None) –If specified, the workflow executions are included in the returned results based on whether their close times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their close times.
startTimeFilterandcloseTimeFilterare mutually exclusive. You must specify one of these in a request but not both. -
execution_filter(Optional[WorkflowExecutionFilter], default:None) –If specified, only workflow executions matching the workflow ID specified in the filter are returned.
closeStatusFilter,executionFilter,typeFilterandtagFilterare mutually exclusive. You can specify at most one of these in a request. -
close_status_filter(Optional[CloseStatusFilter], default:None) –If specified, only workflow executions that match this close status are listed. For example, if TERMINATED is specified, then only TERMINATED workflow executions are listed.
closeStatusFilter,executionFilter,typeFilterandtagFilterare mutually exclusive. You can specify at most one of these in a request. -
type_filter(Optional[WorkflowTypeFilter], default:None) –If specified, only executions of the type specified in the filter are returned.
closeStatusFilter,executionFilter,typeFilterandtagFilterare mutually exclusive. You can specify at most one of these in a request. -
tag_filter(Optional[TagFilter], default:None) –If specified, only executions that have the matching tag are listed.
closeStatusFilter,executionFilter,typeFilterandtagFilterare mutually exclusive. You can specify at most one of these in a request. -
next_page_token(Optional[PageToken], default:None) –If
NextPageTokenis returned there are more results available. The value ofNextPageTokenis 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 a400error: "Specified token has exceeded its maximum lifetime".The configured
maximumPageSizedetermines how many results can be returned in a single call. -
maximum_page_size(Optional[PageSize], default:None) –The maximum number of results that are returned per call. Use
nextPageTokento obtain further pages of results. -
reverse_order(Optional[ReverseOrder], default:None) –When set to
true, returns the results in reverse order. By default the results are returned in descending order of the start or the close time of the executions.
Raises:
-
OperationNotPermittedFault–Returned when the caller doesn't have sufficient permissions to invoke the action.
-
UnknownResourceFault–Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_swf/_services/async_swf.py
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 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 | |