async def iter_list_contacts(
self,
contact_list_name: "capo_sesv2.types.contact_list_name.ContactListName",
*,
config_overrides: Optional[AsyncSESv2ClientConfig] = None,
filter: Optional[
"capo_sesv2.types.list_contacts_filter.ListContactsFilter"
] = None,
page_size: Optional["capo_sesv2.types.max_items.MaxItems"] = None,
next_token: Optional["capo_sesv2.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_sesv2.types.list_contacts_response.ListContactsResponse]":
_token = next_token
while True:
_response = await self.list_contacts(
contact_list_name,
config_overrides=config_overrides,
filter=filter,
page_size=page_size,
next_token=_token,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break