def iter_list_publisher_reports(
self,
*,
config_overrides: Optional[ECRPUBLICClientConfig] = None,
report_type: Optional[
"capo_ecr_public.types.publisher_report_type.PublisherReportType"
] = None,
granularity: Optional[
"capo_ecr_public.types.publisher_report_granularity.PublisherReportGranularity"
] = None,
max_results: Optional["capo_ecr_public.types.max_results.MaxResults"] = None,
next_token: Optional["capo_ecr_public.types.next_token.NextToken"] = None,
) -> "Iterator[capo_ecr_public.types.publisher_report.PublisherReport]":
_token = next_token
while True:
_response = self.list_publisher_reports(
config_overrides=config_overrides,
report_type=report_type,
granularity=granularity,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("reports",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break