async def iter_list_durable_executions_by_function(
self,
function_name: "capo_lambda.types.namespaced_function_name.NamespacedFunctionName",
*,
config_overrides: Optional[AsyncLambdaClientConfig] = None,
qualifier: Optional[
"capo_lambda.types.numeric_latest_published_or_alias_qualifier.NumericLatestPublishedOrAliasQualifier"
] = None,
durable_execution_name: Optional[
"capo_lambda.types.durable_execution_name.DurableExecutionName"
] = None,
statuses: Optional[
"capo_lambda.types.execution_status_list.ExecutionStatusList"
] = None,
started_after: Optional[
"capo_lambda.types.execution_timestamp.ExecutionTimestamp"
] = None,
started_before: Optional[
"capo_lambda.types.execution_timestamp.ExecutionTimestamp"
] = None,
reverse_order: Optional["capo_lambda.types.reverse_order.ReverseOrder"] = None,
marker: Optional["capo_lambda.types.string.String"] = None,
max_items: Optional["capo_lambda.types.item_count.ItemCount"] = None,
) -> "AsyncIterator[capo_lambda.types.execution.Execution]":
_token = marker
while True:
_response = await self.list_durable_executions_by_function(
function_name,
config_overrides=config_overrides,
qualifier=qualifier,
durable_execution_name=durable_execution_name,
statuses=statuses,
started_after=started_after,
started_before=started_before,
reverse_order=reverse_order,
marker=_token,
max_items=max_items,
)
_page = _resolve_path(_response, ("durable_executions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_marker",))
if not _token:
break