def iter_list_stream_consumers(
self,
stream_arn: "capo_kinesis.types.stream_arn.StreamARN",
*,
config_overrides: Optional[KinesisClientConfig] = None,
next_token: Optional["capo_kinesis.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_kinesis.types.list_stream_consumers_input_limit.ListStreamConsumersInputLimit"
] = None,
stream_creation_timestamp: Optional[
"capo_kinesis.types.timestamp.Timestamp"
] = None,
stream_id: Optional["capo_kinesis.types.stream_id.StreamId"] = None,
) -> "Iterator[capo_kinesis.types.list_stream_consumers_output.ListStreamConsumersOutput]":
_token = next_token
while True:
_response = self.list_stream_consumers(
stream_arn,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
stream_creation_timestamp=stream_creation_timestamp,
stream_id=stream_id,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break