Skip to content

iter_list_profile_shares async

iter_list_profile_shares(
    profile_arn: ProfileArn,
    *,
    config_overrides: Optional[AsyncWellArchitectedClientConfig] = None,
    shared_with_prefix: Optional[SharedWithPrefix] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    status: Optional[ShareStatus] = None,
) -> AsyncIterator[ListProfileSharesOutput]
Source code in docs_src/capo_wellarchitected/_services/async_well_architected.py
async def iter_list_profile_shares(
    self,
    profile_arn: "capo_wellarchitected.types.profile_arn.ProfileArn",
    *,
    config_overrides: Optional[AsyncWellArchitectedClientConfig] = 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,
) -> "AsyncIterator[capo_wellarchitected.types.list_profile_shares_output.ListProfileSharesOutput]":
    _token = next_token
    while True:
        _response = await self.list_profile_shares(
            profile_arn,
            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