Skip to content

iter_list_attachment_routing_policy_associations async

iter_list_attachment_routing_policy_associations(
    core_network_id: CoreNetworkId,
    *,
    config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
    attachment_id: Optional[AttachmentId] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[AttachmentRoutingPolicyAssociationSummary]
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
async def iter_list_attachment_routing_policy_associations(
    self,
    core_network_id: "capo_networkmanager.types.core_network_id.CoreNetworkId",
    *,
    config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
    attachment_id: Optional[
        "capo_networkmanager.types.attachment_id.AttachmentId"
    ] = None,
    max_results: Optional[
        "capo_networkmanager.types.max_results.MaxResults"
    ] = None,
    next_token: Optional["capo_networkmanager.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_networkmanager.types.attachment_routing_policy_association_summary.AttachmentRoutingPolicyAssociationSummary]":
    _token = next_token
    while True:
        _response = await self.list_attachment_routing_policy_associations(
            core_network_id,
            config_overrides=config_overrides,
            attachment_id=attachment_id,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(
            _response, ("attachment_routing_policy_associations",)
        )
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break