Skip to main content

Type annotations for boto3.CloudWatchRUM 1.20.16 service, generated by mypy-boto3-builder 6.2.1

Project description

mypy-boto3-rum

PyPI - mypy-boto3-rum PyPI - Python Version Docs PyPI - Downloads

boto3.typed

Type annotations for boto3.CloudWatchRUM 1.20.16 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.

Generated by mypy-boto3-builder 6.2.1.

More information can be found on boto3-stubs page and in mypy-boto3-rum docs

See how it helps to find and fix potential bugs:

boto3-stubs demo

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.

python -m pip install boto3-stubs[rum]

Usage

VSCode

  • Install Python extension
  • Install Pylance extension
  • Set Pylance as your Python Language Server
  • Install boto-stubs[rum] in your environment: python -m pip install 'boto3-stubs[rum]'

Both type checking and auto-complete should work for CloudWatchRUM service. No explicit type annotations required, write your boto3 code as usual.

PyCharm

  • Install boto-stubs[rum] in your environment: python -m pip install 'boto3-stubs[rum]'

Both type checking and auto-complete should work for CloudWatchRUM service. No explicit type annotations required, write your boto3 code as usual. Auto-complete can be slow on big projects or if you have a lot of installed boto3-stubs submodules.

Other IDEs

Not tested, but as long as your IDE supports mypy or pyright, everything should work.

mypy

  • Install mypy: python -m pip install mypy
  • Install boto-stubs[rum] in your environment: python -m pip install 'boto3-stubs[rum]'
  • Run mypy as usual

Type checking should work for CloudWatchRUM service. No explicit type annotations required, write your boto3 code as usual.

pyright

  • Install pyright: yarn global add pyright
  • Install boto-stubs[rum] in your environment: python -m pip install 'boto3-stubs[rum]'
  • Optionally, you can install boto3-stubs to typings folder.

Type checking should work for CloudWatchRUM service. No explicit type annotations required, write your boto3 code as usual.

Explicit type annotations

Client annotations

CloudWatchRUMClient provides annotations for boto3.client("rum").

import boto3

from mypy_boto3_rum import CloudWatchRUMClient

client: CloudWatchRUMClient = boto3.client("rum")

# now client usage is checked by mypy and IDE should provide code auto-complete

# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: CloudWatchRUMClient = session.client("rum")

Paginators annotations

mypy_boto3_rum.paginator module contains type annotations for all paginators.

from mypy_boto3_rum import CloudWatchRUMClient
from mypy_boto3_rum.paginator import (
    GetAppMonitorDataPaginator,
    ListAppMonitorsPaginator,
)

client: CloudWatchRUMClient = boto3.client("rum")

# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
get_app_monitor_data_paginator: GetAppMonitorDataPaginator = client.get_paginator("get_app_monitor_data")
list_app_monitors_paginator: ListAppMonitorsPaginator = client.get_paginator("list_app_monitors")

Literals

mypy_boto3_rum.literals module contains literals extracted from shapes that can be used in user code for type checking.

from mypy_boto3_rum.literals import (
    GetAppMonitorDataPaginatorName,
    ListAppMonitorsPaginatorName,
    StateEnumType,
    TelemetryType,
    ServiceName,
    PaginatorName,
)

def check_value(value: GetAppMonitorDataPaginatorName) -> bool:
    ...

Typed dictionaries

mypy_boto3_rum.type_defs module contains structures and shapes assembled to typed dictionaries for additional type checking.

from mypy_boto3_rum.type_defs import (
    AppMonitorConfigurationTypeDef,
    AppMonitorDetailsTypeDef,
    AppMonitorSummaryTypeDef,
    AppMonitorTypeDef,
    CreateAppMonitorRequestRequestTypeDef,
    CreateAppMonitorResponseTypeDef,
    CwLogTypeDef,
    DataStorageTypeDef,
    DeleteAppMonitorRequestRequestTypeDef,
    GetAppMonitorDataRequestRequestTypeDef,
    GetAppMonitorDataResponseTypeDef,
    GetAppMonitorRequestRequestTypeDef,
    GetAppMonitorResponseTypeDef,
    ListAppMonitorsRequestRequestTypeDef,
    ListAppMonitorsResponseTypeDef,
    ListTagsForResourceRequestRequestTypeDef,
    ListTagsForResourceResponseTypeDef,
    PaginatorConfigTypeDef,
    PutRumEventsRequestRequestTypeDef,
    QueryFilterTypeDef,
    ResponseMetadataTypeDef,
    RumEventTypeDef,
    TagResourceRequestRequestTypeDef,
    TimeRangeTypeDef,
    UntagResourceRequestRequestTypeDef,
    UpdateAppMonitorRequestRequestTypeDef,
    UserDetailsTypeDef,
)

def get_structure() -> AppMonitorConfigurationTypeDef:
    return {
      ...
    }

Versioning

mypy-boto3-rum version is the same as related boto3 version and follows PEP 440 format.

Documentation

All type annotations can be found in mypy-boto3-rum docs

Support and contributing

This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mypy-boto3-rum-1.20.16.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mypy_boto3_rum-1.20.16-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file mypy-boto3-rum-1.20.16.tar.gz.

File metadata

  • Download URL: mypy-boto3-rum-1.20.16.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for mypy-boto3-rum-1.20.16.tar.gz
Algorithm Hash digest
SHA256 8b9c8295912db080216ee1b452c339ca763c230d36554672ef2be15fd1a4c4ca
MD5 8bfcadc52157a0a7c9844a7eb34f8651
BLAKE2b-256 c08baa173414e4e2f340b7f23c38af9c196a12b9a79a9db9e86faefc0cd579a9

See more details on using hashes here.

File details

Details for the file mypy_boto3_rum-1.20.16-py3-none-any.whl.

File metadata

  • Download URL: mypy_boto3_rum-1.20.16-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for mypy_boto3_rum-1.20.16-py3-none-any.whl
Algorithm Hash digest
SHA256 98bc156c4464e16d925c066141a1d29179e0a921275f721b59a2432a99993582
MD5 2d980f6502f636ebc2f219d1be286c88
BLAKE2b-256 c229fff129cc8a8387809b82d3f131586200e414c9b6170da0a115e28db772f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page