Skip to content

iter_list_service_network_service_associations async

iter_list_service_network_service_associations(
    *,
    config_overrides: Optional[AsyncVPCLatticeClientConfig] = None,
    service_network_identifier: Optional[ServiceNetworkIdentifier] = None,
    service_identifier: Optional[ServiceIdentifier] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ServiceNetworkServiceAssociationSummary]
Source code in docs_src/capo_vpc_lattice/_services/async_vpc_lattice.py
async def iter_list_service_network_service_associations(
    self,
    *,
    config_overrides: Optional[AsyncVPCLatticeClientConfig] = None,
    service_network_identifier: Optional[
        "capo_vpc_lattice.types.service_network_identifier.ServiceNetworkIdentifier"
    ] = None,
    service_identifier: Optional[
        "capo_vpc_lattice.types.service_identifier.ServiceIdentifier"
    ] = None,
    max_results: Optional["capo_vpc_lattice.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_vpc_lattice.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_vpc_lattice.types.service_network_service_association_summary.ServiceNetworkServiceAssociationSummary]":
    _token = next_token
    while True:
        _response = await self.list_service_network_service_associations(
            config_overrides=config_overrides,
            service_network_identifier=service_network_identifier,
            service_identifier=service_identifier,
            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