async def iter_list_flow_execution_events(
self,
flow_identifier: "capo_bedrock_agent_runtime.types.flow_identifier.FlowIdentifier",
flow_alias_identifier: "capo_bedrock_agent_runtime.types.flow_alias_identifier.FlowAliasIdentifier",
execution_identifier: "capo_bedrock_agent_runtime.types.flow_execution_identifier.FlowExecutionIdentifier",
event_type: "capo_bedrock_agent_runtime.types.flow_execution_event_type.FlowExecutionEventType",
*,
config_overrides: Optional[AsyncBedrockAgentRuntimeClientConfig] = None,
max_results: Optional[
"capo_bedrock_agent_runtime.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_bedrock_agent_runtime.types.next_token.NextToken"
] = None,
) -> "AsyncIterator[capo_bedrock_agent_runtime.types.flow_execution_event.FlowExecutionEvent]":
_token = next_token
while True:
_response = await self.list_flow_execution_events(
flow_identifier,
flow_alias_identifier,
execution_identifier,
event_type,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("flow_execution_events",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break