KinesisClient.merge_shards
rboto-kinesis==0.4.0 · Service index · Types
Model summary (excerpt): Merges two adjacent shards in a Kinesis data stream and combines them into a single shard to reduce the stream's capacity to ingest and transport data. This API is only supported for the data streams with the provisioned capacity mode. Two shards are considered adjacent if the union of the hash key ranges for the two shards form a contiguous set with no gaps. For example, if you have two...
Install and imports
Signature
async def merge_shards(
*,
shard_to_merge: str,
adjacent_shard_to_merge: str,
stream_name: str | None = None,
stream_arn: str | None = None,
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) |
|---|---|---|
shard_to_merge |
Yes | The shard ID of the shard to combine with the adjacent shard for the merge. |
adjacent_shard_to_merge |
Yes | The shard ID of the adjacent shard for the merge. |
stream_name |
No | The name of the stream for the merge. |
stream_arn |
No | The ARN of the stream. |
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.