KinesisClient.update_stream_record_distribution_strategy
rboto-kinesis==0.4.0 · Service index · Types
Model summary (excerpt): Updates the record distribution strategy for the specified Amazon Kinesis Data Streams on-demand data stream. The record distribution strategy determines how Amazon Kinesis Data Streams distributes records across the shards in a stream. You must specify the stream using the StreamARN parameter. The record distribution strategy is a stream-level setting. You can switch between the following...
Install and imports
Signature
async def update_stream_record_distribution_strategy(
*,
stream_arn: str,
record_distribution_strategy: RecordDistributionStrategy,
stream_id: str | 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_arn |
Yes | The Amazon Resource Name (ARN) of the stream to update. |
record_distribution_strategy |
Yes | The record distribution strategy to apply to the stream. 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. USER_PARTITION_KEY – Producers must supply a partition key, which Amazon Kinesis Data Streams uses to determine shard placement. This is the default. |
stream_id |
No | Not Implemented. Reserved for future use. |
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
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:
AccessDeniedError, InvalidArgumentError, LimitExceededError, ResourceInUseError, ResourceNotFoundError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.