def iter_get_behavior_model_training_summaries(
self,
*,
config_overrides: Optional[IoTClientConfig] = None,
security_profile_name: Optional[
"capo_iot.types.security_profile_name.SecurityProfileName"
] = None,
max_results: Optional["capo_iot.types.tiny_max_results.TinyMaxResults"] = None,
next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
) -> "Iterator[capo_iot.types.behavior_model_training_summary.BehaviorModelTrainingSummary]":
_token = next_token
while True:
_response = self.get_behavior_model_training_summaries(
config_overrides=config_overrides,
security_profile_name=security_profile_name,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("summaries",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break