def iter_list_channel_messages(
self,
channel_arn: "capo_chime_sdk_messaging.types.chime_arn.ChimeArn",
chime_bearer: "capo_chime_sdk_messaging.types.chime_arn.ChimeArn",
*,
config_overrides: Optional[ChimeSDKMessagingClientConfig] = None,
sort_order: Optional[
"capo_chime_sdk_messaging.types.sort_order.SortOrder"
] = None,
not_before: Optional[
"capo_chime_sdk_messaging.types.timestamp.Timestamp"
] = None,
not_after: Optional[
"capo_chime_sdk_messaging.types.timestamp.Timestamp"
] = None,
max_results: Optional[
"capo_chime_sdk_messaging.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_chime_sdk_messaging.types.next_token.NextToken"
] = None,
sub_channel_id: Optional[
"capo_chime_sdk_messaging.types.sub_channel_id.SubChannelId"
] = None,
) -> "Iterator[capo_chime_sdk_messaging.types.list_channel_messages_response.ListChannelMessagesResponse]":
_token = next_token
while True:
_response = self.list_channel_messages(
channel_arn,
chime_bearer,
config_overrides=config_overrides,
sort_order=sort_order,
not_before=not_before,
not_after=not_after,
max_results=max_results,
next_token=_token,
sub_channel_id=sub_channel_id,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break