def iter_list_connection_groups(
self,
*,
config_overrides: Optional[CloudFrontClientConfig] = None,
association_filter: Optional[
"capo_cloudfront.types.connection_group_association_filter.ConnectionGroupAssociationFilter"
] = None,
marker: Optional["capo_cloudfront.types.string.string"] = None,
max_items: Optional["capo_cloudfront.types.integer.integer"] = None,
) -> "Iterator[capo_cloudfront.types.connection_group_summary.ConnectionGroupSummary]":
_token = marker
while True:
_response = self.list_connection_groups(
config_overrides=config_overrides,
association_filter=association_filter,
marker=_token,
max_items=max_items,
)
_page = _resolve_path(_response, ("connection_groups",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_marker",))
if not _token:
break