async def iter_list_file_commit_history(
self,
repository_name: "capo_codecommit.types.repository_name.RepositoryName",
file_path: "capo_codecommit.types.path.Path",
*,
config_overrides: Optional[AsyncCodeCommitClientConfig] = None,
commit_specifier: Optional[
"capo_codecommit.types.commit_name.CommitName"
] = None,
max_results: Optional["capo_codecommit.types.limit.Limit"] = None,
next_token: Optional["capo_codecommit.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_codecommit.types.list_file_commit_history_response.ListFileCommitHistoryResponse]":
_token = next_token
while True:
_response = await self.list_file_commit_history(
repository_name,
file_path,
config_overrides=config_overrides,
commit_specifier=commit_specifier,
max_results=max_results,
next_token=_token,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break