Skip to content

KinesisClient.list_stream_consumers

rboto-kinesis==0.4.0 · Service index · Types

Model summary (excerpt): Lists the consumers registered to receive data from a stream using enhanced fan-out, and provides information about each consumer. This operation has a limit of 5 transactions per second per stream.

Install and imports

python -m pip install "rboto[kinesis]==0.4.0"
from rboto import KinesisClient
from rboto_kinesis.types import (
    ListStreamConsumersOutput,
)

Signature

async def list_stream_consumers(
    *,
    stream_arn: str,
    next_token: str | None = None,
    max_results: int | None = None,
    stream_creation_timestamp: str | None = None,
    stream_id: str | None = None,
) -> ListStreamConsumersOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
stream_arn Yes The ARN of the Kinesis data stream for which you want to list the registered consumers. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces .
next_token No When the number of consumers that are registered with the data stream is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of consumers that are registered with the data stream, the response includes a pagination token named NextToken . You can specify this NextToken value in a subsequent call to...
max_results No The maximum number of consumers that you want a single call of ListStreamConsumers to return. The default value is 100. If you specify a value greater than 100, at most 100 results are returned.
stream_creation_timestamp No Specify this input parameter to distinguish data streams that have the same name. For example, if you create a data stream and then delete it, and you later create another data stream with the same name, you can use this input parameter to specify which of the two streams you want to list the consumers for. You can't specify this parameter if you specify the NextToken parameter.
stream_id No Not Implemented. Reserved for future use.

Output

ListStreamConsumersOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
consumers list[ConsumerOutput] | None Always present ConsumerOutput
next_token str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ListStreamConsumersOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.list_stream_consumers(...) accepts the same arguments and returns AsyncIterator[ListStreamConsumersOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: max_results.

No output stream.

Errors

Import from rboto_kinesis.exceptions:

ExpiredNextTokenError, InvalidArgumentError, LimitExceededError, ResourceInUseError, ResourceNotFoundError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model