Skip to content

iter_get_vpc_links async

iter_get_vpc_links(
    *,
    config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
    position: Optional[String] = None,
    limit: Optional[NullableInteger] = None,
) -> AsyncIterator[VpcLink]
Source code in docs_src/capo_api_gateway/_services/async_api_gateway.py
async def iter_get_vpc_links(
    self,
    *,
    config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
    position: Optional["capo_api_gateway.types.string.String"] = None,
    limit: Optional[
        "capo_api_gateway.types.nullable_integer.NullableInteger"
    ] = None,
) -> "AsyncIterator[capo_api_gateway.types.vpc_link.VpcLink]":
    _token = position
    while True:
        _response = await self.get_vpc_links(
            config_overrides=config_overrides,
            position=_token,
            limit=limit,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("position",))
        if not _token:
            break