Type Annotations for boto3 CloudWatch Internet Monitor

1.42.3 · active · verified Sat Apr 11

mypy-boto3-internetmonitor provides comprehensive type annotations for the boto3 CloudWatch Internet Monitor service (version 1.42.3). Generated with mypy-boto3-builder 8.12.0, these stubs enhance development with static type checking, improved code completion, and refactoring capabilities for boto3 users across various IDEs like VSCode, PyCharm, Emacs, and Sublime Text, and type checkers such as mypy and pyright. The library is actively maintained, with updates released in sync with boto3 versions.

Warnings

Install

Imports

Quickstart

Demonstrates how to obtain a type-hinted CloudWatch Internet Monitor client using boto3.session.client(). This enables full type checking and autocompletion for the client's methods and responses.

import boto3
from mypy_boto3_internetmonitor.client import InternetMonitorClient

def get_internetmonitor_client() -> InternetMonitorClient:
    client: InternetMonitorClient = boto3.client("internetmonitor")
    return client

# Example usage
internetmonitor_client = get_internetmonitor_client()
response = internetmonitor_client.list_monitors()
print(f"Monitor summaries: {response.get('Monitors')}")

view raw JSON →