def iter_list_third_party_firewall_firewall_policies(
self,
third_party_firewall: "capo_fms.types.third_party_firewall.ThirdPartyFirewall",
max_results: "capo_fms.types.pagination_max_results.PaginationMaxResults",
*,
config_overrides: Optional[FMSClientConfig] = None,
next_token: Optional["capo_fms.types.pagination_token.PaginationToken"] = None,
) -> "Iterator[capo_fms.types.third_party_firewall_firewall_policy.ThirdPartyFirewallFirewallPolicy]":
_token = next_token
while True:
_response = self.list_third_party_firewall_firewall_policies(
third_party_firewall,
max_results,
config_overrides=config_overrides,
next_token=_token,
)
_page = _resolve_path(
_response, ("third_party_firewall_firewall_policies",)
)
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break