Skip to content

CloudWatchRUM module#

Index > CloudWatchRUM

Auto-generated documentation for CloudWatchRUM type annotations stubs module mypy-boto3-rum.

How to install#

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and CloudWatchRUM.

From PyPI with pip#

Install boto3-stubs for CloudWatchRUM service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[rum]'

# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[rum]'

# standalone installation
python -m pip install mypy-boto3-rum

How to uninstall#

python -m pip uninstall -y mypy-boto3-rum


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("rum") as CloudWatchRUMClient boto3 documentation

# CloudWatchRUMClient usage example

from boto3.session import Session

from mypy_boto3_rum.client import CloudWatchRUMClient

def get_client() -> CloudWatchRUMClient:
    return Session().client("rum")


Type annotations and code completion for paginators from boto3.client("rum").get_paginator("...").

# BatchGetRumMetricDefinitionsPaginator usage example

from boto3.session import Session

from mypy_boto3_rum.paginator import BatchGetRumMetricDefinitionsPaginator

def get_batch_get_rum_metric_definitions_paginator() -> BatchGetRumMetricDefinitionsPaginator:
    return Session().client("rum").get_paginator("batch_get_rum_metric_definitions"))


Type annotations for literals used in methods and schemas.

# BatchGetRumMetricDefinitionsPaginatorName usage example

from mypy_boto3_rum.literals import BatchGetRumMetricDefinitionsPaginatorName

def get_value() -> BatchGetRumMetricDefinitionsPaginatorName:
    return "batch_get_rum_metric_definitions"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# AppMonitorConfigurationTypeDef usage example

from mypy_boto3_rum.type_defs import AppMonitorConfigurationTypeDef

def get_value() -> AppMonitorConfigurationTypeDef:
    return {
        "AllowCookies": ...,