KinesisClient.update_shard_count
rboto-kinesis==0.4.0 · Service index · Types
Model summary (excerpt): Updates the shard count of the specified stream to the specified number of shards. This API is only supported for the data streams with the provisioned capacity mode. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. Updating the shard count is an asynchronous...
Install and imports
from rboto import KinesisClient
from rboto_kinesis.types import (
ScalingType,
UpdateShardCountOutput,
)
Signature
async def update_shard_count(
*,
target_shard_count: int,
scaling_type: ScalingType,
stream_name: str | None = None,
stream_arn: str | None = None,
stream_id: str | None = None,
) -> UpdateShardCountOutput: ...
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) |
|---|---|---|
target_shard_count |
Yes | The new number of shards. This value has the following default limits. By default, you cannot do the following: Set this value to more than double your current shard count for a stream. Set this value below half your current shard count for a stream. Set this value to more than 10000 shards in a stream (the default limit for shard count per stream is 10000 per account per region), unless you... |
scaling_type |
Yes | The scaling type. Uniform scaling creates shards of equal size. |
stream_name |
No | The name of the stream. |
stream_arn |
No | The ARN of the stream. |
stream_id |
No | Not Implemented. Reserved for future use. |
Output
UpdateShardCountOutput.
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_name |
str | None |
Always present | — |
current_shard_count |
int | None |
Always present | — |
target_shard_count |
int | None |
Always present | — |
stream_arn |
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.
Related types
ScalingType, UpdateShardCountOutput
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.