def iter_list_invocations(
self,
session_identifier: "capo_bedrock_agent_runtime.types.session_identifier.SessionIdentifier",
*,
config_overrides: Optional[BedrockAgentRuntimeClientConfig] = None,
next_token: Optional[
"capo_bedrock_agent_runtime.types.next_token.NextToken"
] = None,
max_results: Optional[
"capo_bedrock_agent_runtime.types.max_results.MaxResults"
] = None,
) -> "Iterator[capo_bedrock_agent_runtime.types.invocation_summary.InvocationSummary]":
_token = next_token
while True:
_response = self.list_invocations(
session_identifier,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("invocation_summaries",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break