Skip to content

KinesisClient.update_stream_mode

rboto-kinesis==0.4.0 · Service index · Types

Model summary (excerpt): Updates 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 stream. If you'd still like to proactively scale your on-demand data stream’s capacity, you can unlock the warm throughput feature for on-demand data streams by enabling MinimumThroughputBillingCommitment for your...

Install and imports

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

Signature

async def update_stream_mode(
    *,
    stream_arn: str,
    stream_mode_details: StreamModeDetails,
    stream_id: str | None = None,
    warm_throughput_mibps: int | 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 Specifies the ARN of the data stream whose capacity mode you want to update.
stream_mode_details Yes Specifies the capacity mode to which you want to set your 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.
stream_id No Not Implemented. Reserved for future use.
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. This field is only valid when the stream mode is being updated to on-demand.

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.

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, ResourceNotFoundError, ValidationError.

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

Service guide · Pinned model