def iter_list_associated_resources(
self,
application: "capo_service_catalog_appregistry.types.application_specifier.ApplicationSpecifier",
*,
config_overrides: Optional[ServiceCatalogAppRegistryClientConfig] = None,
next_token: Optional[
"capo_service_catalog_appregistry.types.next_token.NextToken"
] = None,
max_results: Optional[
"capo_service_catalog_appregistry.types.max_results.MaxResults"
] = None,
) -> "Iterator[capo_service_catalog_appregistry.types.resource_info.ResourceInfo]":
_token = next_token
while True:
_response = self.list_associated_resources(
application,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("resources",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break