def iter_list_contact_flow_versions(
self,
instance_id: "capo_connect.types.instance_id.InstanceId",
contact_flow_id: "capo_connect.types.arn.ARN",
*,
config_overrides: Optional[ConnectClientConfig] = None,
next_token: Optional["capo_connect.types.next_token.NextToken"] = None,
max_results: Optional["capo_connect.types.max_result1000.MaxResult1000"] = None,
) -> "Iterator[capo_connect.types.contact_flow_version_summary.ContactFlowVersionSummary]":
_token = next_token
while True:
_response = self.list_contact_flow_versions(
instance_id,
contact_flow_id,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("contact_flow_version_summary_list",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break