def iter_list_associations(
self,
chat_configuration: "capo_chatbot.types.chat_configuration_arn.ChatConfigurationArn",
*,
config_overrides: Optional[chatbotClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional["capo_chatbot.types.string.String"] = None,
) -> "Iterator[capo_chatbot.types.association_listing.AssociationListing]":
_token = next_token
while True:
_response = self.list_associations(
chat_configuration,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("associations",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break