def iter_get_chat_controls_configuration(
self,
application_id: "capo_qbusiness.types.application_id.ApplicationId",
*,
config_overrides: Optional[QBusinessClientConfig] = None,
max_results: Optional[
"capo_qbusiness.types.max_results_integer_for_get_topic_configurations.MaxResultsIntegerForGetTopicConfigurations"
] = None,
next_token: Optional["capo_qbusiness.types.next_token.NextToken"] = None,
) -> "Iterator[capo_qbusiness.types.topic_configuration.TopicConfiguration]":
_token = next_token
while True:
_response = self.get_chat_controls_configuration(
application_id,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("topic_configurations",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break