def iter_list_command_executions(
self,
*,
config_overrides: Optional[IoTClientConfig] = None,
max_results: Optional[
"capo_iot.types.command_max_results.CommandMaxResults"
] = None,
next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
namespace: Optional["capo_iot.types.command_namespace.CommandNamespace"] = None,
status: Optional[
"capo_iot.types.command_execution_status.CommandExecutionStatus"
] = None,
sort_order: Optional["capo_iot.types.sort_order.SortOrder"] = None,
started_time_filter: Optional["capo_iot.types.time_filter.TimeFilter"] = None,
completed_time_filter: Optional["capo_iot.types.time_filter.TimeFilter"] = None,
target_arn: Optional["capo_iot.types.target_arn.TargetArn"] = None,
command_arn: Optional["capo_iot.types.command_arn.CommandArn"] = None,
) -> "Iterator[capo_iot.types.command_execution_summary.CommandExecutionSummary]":
_token = next_token
while True:
_response = self.list_command_executions(
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
namespace=namespace,
status=status,
sort_order=sort_order,
started_time_filter=started_time_filter,
completed_time_filter=completed_time_filter,
target_arn=target_arn,
command_arn=command_arn,
)
_page = _resolve_path(_response, ("command_executions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break