Skip to content

iter_describe_network_insights_paths

iter_describe_network_insights_paths(
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    network_insights_path_ids: Optional[NetworkInsightsPathIdList] = None,
    filters: Optional[FilterList] = None,
    max_results: Optional[NetworkInsightsMaxResults] = None,
    dry_run: Optional[Boolean] = None,
    next_token: Optional[NextToken] = None,
) -> Iterator[NetworkInsightsPath]
Source code in docs_src/capo_ec2/_services/ec2.py
def iter_describe_network_insights_paths(
    self,
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    network_insights_path_ids: Optional[
        "capo_ec2.types.network_insights_path_id_list.NetworkInsightsPathIdList"
    ] = None,
    filters: Optional["capo_ec2.types.filter_list.FilterList"] = None,
    max_results: Optional[
        "capo_ec2.types.network_insights_max_results.NetworkInsightsMaxResults"
    ] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
    next_token: Optional["capo_ec2.types.next_token.NextToken"] = None,
) -> "Iterator[capo_ec2.types.network_insights_path.NetworkInsightsPath]":
    _token = next_token
    while True:
        _response = self.describe_network_insights_paths(
            config_overrides=config_overrides,
            network_insights_path_ids=network_insights_path_ids,
            filters=filters,
            max_results=max_results,
            dry_run=dry_run,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("network_insights_paths",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break