KinesisClient.create_stream
rboto-kinesis==0.4.0 · Service index · Types
Model summary (excerpt): Creates a Kinesis data stream. A stream captures and transports data records that are continuously emitted from different data sources or producers . Scale-out within a stream is explicitly supported by means of shards, which are uniquely identified groups of data records in a stream. You can create your data stream using either on-demand or provisioned capacity mode. Data streams with an...
Install and imports
from rboto import KinesisClient
from rboto_kinesis.types import (
RecordDistributionStrategy,
StreamModeDetails,
)
Signature
async def create_stream(
*,
stream_name: str,
shard_count: int | None = None,
stream_mode_details: StreamModeDetails | None = None,
tags: dict[str, str] | None = None,
warm_throughput_mibps: int | None = None,
max_record_size_in_kib: int | None = None,
record_distribution_strategy: RecordDistributionStrategy | None = None,
) -> None: ...
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 |
Yes | A name to identify the stream. The stream name is scoped to the Amazon Web Services account used by the application that creates the stream. It is also scoped by Amazon Web Services Region. That is, two streams in two different Amazon Web Services accounts can have the same name. Two streams in the same Amazon Web Services account but in two different Regions can also have the same name. |
shard_count |
No | The number of shards that the stream will use. The throughput of the stream is a function of the number of shards; more shards are required for greater provisioned throughput. |
stream_mode_details |
No | Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams. |
tags |
No | A set of up to 50 key-value pairs to use to create the tags. A tag consists of a required key and an optional value. |
warm_throughput_mibps |
No | The target warm throughput in MB/s that the stream should be scaled to handle. This represents the throughput capacity that will be immediately available for write operations. |
max_record_size_in_kib |
No | The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream. |
record_distribution_strategy |
No | The record distribution strategy for the stream, which determines how Amazon Kinesis Data Streams distributes records across shards. Specify one of the following values: AUTO – Amazon Kinesis Data Streams distributes records evenly across shards and ignores any partition key and ExplicitHashKey that producers supply. Use this value for stateless workloads that do not require partition-key... |
Output
None.
| 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.
Related types
RecordDistributionStrategy, StreamModeDetails
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, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.