Skip to content

KinesisClient.enable_enhanced_monitoring

rboto-kinesis==0.4.0 · Service index · Types

Model summary (excerpt): Enables enhanced Kinesis data stream monitoring for shard-level metrics. 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.

Install and imports

python -m pip install "rboto[kinesis]==0.4.0"
from rboto import KinesisClient
from collections.abc import Sequence
from rboto_kinesis.types import (
    EnableEnhancedMonitoringOutput,
    MetricsName,
)

Signature

async def enable_enhanced_monitoring(
    *,
    shard_level_metrics: Sequence[MetricsName],
    stream_name: str | None = None,
    stream_arn: str | None = None,
    stream_id: str | None = None,
) -> EnableEnhancedMonitoringOutput: ...

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_level_metrics Yes List of shard-level metrics to enable. The following are the valid shard-level metrics. The value " ALL " enables every metric. IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the...
stream_name No The name of the stream for which to enable enhanced monitoring.
stream_arn No The ARN of the stream.
stream_id No Not Implemented. Reserved for future use.

Output

EnableEnhancedMonitoringOutput.

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_level_metrics list[MetricsNameOutput] | None Always present MetricsNameOutput
desired_shard_level_metrics list[MetricsNameOutput] | None Always present MetricsNameOutput
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.

EnableEnhancedMonitoringOutput, MetricsName

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.

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

Service guide · Pinned model