def iter_list_lens_shares(
self,
lens_alias: "capo_wellarchitected.types.lens_alias.LensAlias",
*,
config_overrides: Optional[WellArchitectedClientConfig] = None,
shared_with_prefix: Optional[
"capo_wellarchitected.types.shared_with_prefix.SharedWithPrefix"
] = None,
next_token: Optional["capo_wellarchitected.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_wellarchitected.types.max_results.MaxResults"
] = None,
status: Optional["capo_wellarchitected.types.share_status.ShareStatus"] = None,
) -> "Iterator[capo_wellarchitected.types.list_lens_shares_output.ListLensSharesOutput]":
_token = next_token
while True:
_response = self.list_lens_shares(
lens_alias,
config_overrides=config_overrides,
shared_with_prefix=shared_with_prefix,
next_token=_token,
max_results=max_results,
status=status,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break