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

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("...").

Usage example
from boto3.session import Session

from mypy_boto3_rum.paginator import GetAppMonitorDataPaginator

def get_get_app_monitor_data_paginator() -> GetAppMonitorDataPaginator:
    return Session().client("rum").get_paginator("get_app_monitor_data"))


Type annotations for literals used in methods and schemas.

Usage example
from mypy_boto3_rum.literals import GetAppMonitorDataPaginatorName

def get_value() -> GetAppMonitorDataPaginatorName:
    return "get_app_monitor_data"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from mypy_boto3_rum.type_defs import AppMonitorConfigurationTypeDef

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