async def iter_list_associated_groups(
self,
resource_arn: "capo_synthetics.types.canary_arn.CanaryArn",
*,
config_overrides: Optional[AsyncsyntheticsClientConfig] = None,
next_token: Optional[
"capo_synthetics.types.pagination_token.PaginationToken"
] = None,
max_results: Optional[
"capo_synthetics.types.max_group_results.MaxGroupResults"
] = None,
) -> "AsyncIterator[capo_synthetics.types.list_associated_groups_response.ListAssociatedGroupsResponse]":
_token = next_token
while True:
_response = await self.list_associated_groups(
resource_arn,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break