async def iter_get_similar_profiles(
self,
domain_name: "capo_customer_profiles.types.name.name",
match_type: "capo_customer_profiles.types.match_type.MatchType",
search_key: "capo_customer_profiles.types.string1_to255.string1To255",
search_value: "capo_customer_profiles.types.string1_to255.string1To255",
*,
config_overrides: Optional[AsyncCustomerProfilesClientConfig] = None,
next_token: Optional["capo_customer_profiles.types.token.token"] = None,
max_results: Optional[
"capo_customer_profiles.types.max_size100.maxSize100"
] = None,
) -> "AsyncIterator[capo_customer_profiles.types.uuid.uuid]":
_token = next_token
while True:
_response = await self.get_similar_profiles(
domain_name,
match_type,
search_key,
search_value,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("profile_ids",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break