async def iter_list_service_network_vpc_associations(
self,
*,
config_overrides: Optional[AsyncVPCLatticeClientConfig] = None,
service_network_identifier: Optional[
"capo_vpc_lattice.types.service_network_identifier.ServiceNetworkIdentifier"
] = None,
vpc_identifier: Optional["capo_vpc_lattice.types.vpc_id.VpcId"] = 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_vpc_association_summary.ServiceNetworkVpcAssociationSummary]":
_token = next_token
while True:
_response = await self.list_service_network_vpc_associations(
config_overrides=config_overrides,
service_network_identifier=service_network_identifier,
vpc_identifier=vpc_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