Skip to content

KinesisClient.register_stream_consumer

rboto-kinesis==0.4.0 · Service index · Types

Model summary (excerpt): Registers a consumer with a Kinesis data stream. When you use this operation, the consumer you register can then call SubscribeToShard to receive data from the stream using enhanced fan-out, at a rate of up to 2 MiB per second for every shard you subscribe to. This rate is unaffected by the total number of consumers that read from the same stream. You can add tags to the registered consumer...

Install and imports

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

Signature

async def register_stream_consumer(
    *,
    stream_arn: str,
    consumer_name: str,
    stream_id: str | None = None,
    tags: dict[str, str] | None = None,
) -> RegisterStreamConsumerOutput: ...

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 that you want to register the consumer with. For more info, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces .
consumer_name Yes For a given Kinesis data stream, each consumer must have a unique name. However, consumer names don't have to be unique across data streams.
stream_id No Not Implemented. Reserved for future use.
tags No A set of up to 50 key-value pairs. A tag consists of a required key and an optional value.

Output

RegisterStreamConsumerOutput.

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
consumer ConsumerOutput | None Always present ConsumerOutput

| 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.

RegisterStreamConsumerOutput

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

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_kinesis.exceptions:

InvalidArgumentError, LimitExceededError, ResourceInUseError, ResourceNotFoundError.

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

Service guide · Pinned model