async def iter_list_attached_links(
self,
sink_identifier: "capo_oam.types.resource_identifier.ResourceIdentifier",
*,
config_overrides: Optional[AsyncOAMClientConfig] = None,
max_results: Optional[
"capo_oam.types.list_attached_links_max_results.ListAttachedLinksMaxResults"
] = None,
next_token: Optional["capo_oam.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_oam.types.list_attached_links_item.ListAttachedLinksItem]":
_token = next_token
while True:
_response = await self.list_attached_links(
sink_identifier,
config_overrides=config_overrides,
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