def iter_list_child_hours_of_operations(
self,
instance_id: "capo_connect.types.instance_id.InstanceId",
hours_of_operation_id: "capo_connect.types.hours_of_operation_id.HoursOfOperationId",
*,
config_overrides: Optional[ConnectClientConfig] = None,
next_token: Optional["capo_connect.types.next_token.NextToken"] = None,
max_results: Optional["capo_connect.types.max_result100.MaxResult100"] = None,
) -> "Iterator[capo_connect.types.hours_of_operations_identifier.HoursOfOperationsIdentifier]":
_token = next_token
while True:
_response = self.list_child_hours_of_operations(
instance_id,
hours_of_operation_id,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(
_response, ("child_hours_of_operations_summary_list",)
)
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break