async def iter_list_data_sources(
self,
domain_identifier: "capo_datazone.types.domain_id.DomainId",
project_identifier: str,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = None,
environment_identifier: Optional[str] = None,
connection_identifier: Optional[str] = None,
type: Optional["capo_datazone.types.data_source_type.DataSourceType"] = None,
status: Optional[
"capo_datazone.types.data_source_status.DataSourceStatus"
] = None,
name: Optional["capo_datazone.types.name.Name"] = None,
next_token: Optional[
"capo_datazone.types.pagination_token.PaginationToken"
] = None,
max_results: Optional["capo_datazone.types.max_results.MaxResults"] = None,
) -> "AsyncIterator[capo_datazone.types.data_source_summary.DataSourceSummary]":
_token = next_token
while True:
_response = await self.list_data_sources(
domain_identifier,
project_identifier,
config_overrides=config_overrides,
environment_identifier=environment_identifier,
connection_identifier=connection_identifier,
type=type,
status=status,
name=name,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("items",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break