Skip to content

KinesisClient.describe_stream

rboto-kinesis==0.4.0 · Service index · Types

Model summary (excerpt): Describes the specified Kinesis data stream. This API has been revised. It's highly recommended that you use the DescribeStreamSummary API to get a summarized description of the specified Kinesis data stream and the ListShards API to list the shards in a specified data stream and obtain information about each shard. When invoking this API, you must use either the StreamARN or the StreamName...

Install and imports

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

Signature

async def describe_stream(
    *,
    stream_name: str | None = None,
    limit: int | None = None,
    exclusive_start_shard_id: str | None = None,
    stream_arn: str | None = None,
    stream_id: str | None = None,
) -> DescribeStreamOutput: ...

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_name No The name of the stream to describe.
limit No The maximum number of shards to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 results are returned.
exclusive_start_shard_id No The shard ID of the shard to start with. Specify this parameter to indicate that you want to describe the stream starting with the shard whose ID immediately follows ExclusiveStartShardId . If you don't specify this parameter, the default behavior for DescribeStream is to describe the stream starting with the first shard in the stream.
stream_arn No The ARN of the stream.
stream_id No Not Implemented. Reserved for future use.

Output

DescribeStreamOutput.

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
stream_description StreamDescriptionOutput | None Always present StreamDescriptionOutput

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

DescribeStreamOutput

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

Pagination and streaming

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

Input cursors: exclusive_start_shard_id. Page-size argument: limit.

No output stream.

Waiters

from rboto import WaiterConfig. Calls use this public operation, including configured middleware and native retries. Polling, deadlines and errors.

client.waiters.stream_exists:

async def stream_exists(
    *,
    stream_name: str | None = None,
    limit: int | None = None,
    exclusive_start_shard_id: str | None = None,
    stream_arn: str | None = None,
    stream_id: str | None = None,
    waiter_config: WaiterConfig | None = None,
) -> DescribeStreamOutput: ...

Default fixed delay: 10 seconds. Default maximum: 40 polls. No overall timeout unless configured.

Returns the successful polling Output.

Acceptor index State Matcher Model path Expected
0 success stringEquals StreamDescription.StreamStatus ACTIVE

Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.

client.waiters.stream_not_exists:

async def stream_not_exists(
    *,
    stream_name: str | None = None,
    limit: int | None = None,
    exclusive_start_shard_id: str | None = None,
    stream_arn: str | None = None,
    stream_id: str | None = None,
    waiter_config: WaiterConfig | None = None,
) -> None: ...

Default fixed delay: 10 seconds. Default maximum: 40 polls. No overall timeout unless configured.

Returns None when the modeled error confirms success.

Acceptor index State Matcher Model path Expected
0 success errorType — ResourceNotFoundException

Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.

Errors

Import from rboto_kinesis.exceptions:

AccessDeniedError, InvalidArgumentError, LimitExceededError, ResourceNotFoundError.

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

Service guide · Pinned model