def iter_list_profile_notifications(
self,
*,
config_overrides: Optional[WellArchitectedClientConfig] = None,
workload_id: Optional[
"capo_wellarchitected.types.workload_id.WorkloadId"
] = None,
next_token: Optional["capo_wellarchitected.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_wellarchitected.types.max_results.MaxResults"
] = None,
) -> "Iterator[capo_wellarchitected.types.list_profile_notifications_output.ListProfileNotificationsOutput]":
_token = next_token
while True:
_response = self.list_profile_notifications(
config_overrides=config_overrides,
workload_id=workload_id,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break