def iter_list_datasource_packages(
self,
graph_arn: "capo_detective.types.graph_arn.GraphArn",
*,
config_overrides: Optional[DetectiveClientConfig] = None,
next_token: Optional[
"capo_detective.types.pagination_token.PaginationToken"
] = None,
max_results: Optional[
"capo_detective.types.member_results_limit.MemberResultsLimit"
] = None,
) -> "Iterator[capo_detective.types.list_datasource_packages_response.ListDatasourcePackagesResponse]":
_token = next_token
while True:
_response = self.list_datasource_packages(
graph_arn,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break