Skip to content

iter_list_channel_handshakes async

iter_list_channel_handshakes(
    handshake_type: HandshakeType,
    catalog: Catalog,
    participant_type: ParticipantType,
    *,
    config_overrides: Optional[AsyncPartnerCentralChannelClientConfig] = None,
    max_results: Optional[int] = None,
    statuses: Optional[HandshakeStatusList] = None,
    associated_resource_identifiers: Optional[AssociatedResourceIdentifierList] = None,
    handshake_type_filters: Optional[ListChannelHandshakesTypeFilters] = None,
    handshake_type_sort: Optional[ListChannelHandshakesTypeSort] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ChannelHandshakeSummary]
Source code in docs_src/capo_partnercentral_channel/_services/async_partner_central_channel.py
async def iter_list_channel_handshakes(
    self,
    handshake_type: "capo_partnercentral_channel.types.handshake_type.HandshakeType",
    catalog: "capo_partnercentral_channel.types.catalog.Catalog",
    participant_type: "capo_partnercentral_channel.types.participant_type.ParticipantType",
    *,
    config_overrides: Optional[AsyncPartnerCentralChannelClientConfig] = None,
    max_results: Optional[int] = None,
    statuses: Optional[
        "capo_partnercentral_channel.types.handshake_status_list.HandshakeStatusList"
    ] = None,
    associated_resource_identifiers: Optional[
        "capo_partnercentral_channel.types.associated_resource_identifier_list.AssociatedResourceIdentifierList"
    ] = None,
    handshake_type_filters: Optional[
        "capo_partnercentral_channel.types.list_channel_handshakes_type_filters.ListChannelHandshakesTypeFilters"
    ] = None,
    handshake_type_sort: Optional[
        "capo_partnercentral_channel.types.list_channel_handshakes_type_sort.ListChannelHandshakesTypeSort"
    ] = None,
    next_token: Optional[
        "capo_partnercentral_channel.types.next_token.NextToken"
    ] = None,
) -> "AsyncIterator[capo_partnercentral_channel.types.channel_handshake_summary.ChannelHandshakeSummary]":
    _token = next_token
    while True:
        _response = await self.list_channel_handshakes(
            handshake_type,
            catalog,
            participant_type,
            config_overrides=config_overrides,
            max_results=max_results,
            statuses=statuses,
            associated_resource_identifiers=associated_resource_identifiers,
            handshake_type_filters=handshake_type_filters,
            handshake_type_sort=handshake_type_sort,
            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