def iter_list_ad_configurations(
self,
*,
config_overrides: Optional[ivsClientConfig] = None,
next_token: Optional["capo_ivs.types.pagination_token.PaginationToken"] = None,
max_results: Optional[
"capo_ivs.types.max_ad_configuration_results.MaxAdConfigurationResults"
] = None,
) -> "Iterator[capo_ivs.types.ad_configuration_summary.AdConfigurationSummary]":
_token = next_token
while True:
_response = self.list_ad_configurations(
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("ad_configurations",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break