def iter_list_managed_thing_account_associations(
self,
*,
config_overrides: Optional[IoTManagedIntegrationsClientConfig] = None,
managed_thing_id: Optional[
"capo_iot_managed_integrations.types.managed_thing_id.ManagedThingId"
] = None,
account_association_id: Optional[
"capo_iot_managed_integrations.types.account_association_id.AccountAssociationId"
] = None,
max_results: Optional[
"capo_iot_managed_integrations.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_iot_managed_integrations.types.next_token.NextToken"
] = None,
) -> "Iterator[capo_iot_managed_integrations.types.managed_thing_association.ManagedThingAssociation]":
_token = next_token
while True:
_response = self.list_managed_thing_account_associations(
config_overrides=config_overrides,
managed_thing_id=managed_thing_id,
account_association_id=account_association_id,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("items",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break