def iter_list_vpc_endpoint_associations(
self,
*,
config_overrides: Optional[NetworkFirewallClientConfig] = None,
next_token: Optional[
"capo_network_firewall.types.pagination_token.PaginationToken"
] = None,
max_results: Optional[
"capo_network_firewall.types.pagination_max_results.PaginationMaxResults"
] = None,
firewall_arn: Optional[
"capo_network_firewall.types.resource_arn.ResourceArn"
] = None,
) -> "Iterator[capo_network_firewall.types.vpc_endpoint_association_metadata.VpcEndpointAssociationMetadata]":
_token = next_token
while True:
_response = self.list_vpc_endpoint_associations(
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
firewall_arn=firewall_arn,
)
_page = _resolve_path(_response, ("vpc_endpoint_associations",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break