Registry / type-stubs / mypy-boto3-observabilityadmin

mypy-boto3-observabilityadmin

JSON →
library1.43.72pypypi✓ verified 24d ago

mypy-boto3-observabilityadmin provides type annotations for the boto3 CloudWatchObservabilityAdminService, enabling static type checking with tools like MyPy. It's part of the `mypy-boto3` ecosystem, which generates stubs for all AWS services supported by `boto3`. The current version is 1.42.88, with releases closely tracking `boto3` and `botocore` updates, often multiple times a month.

pip install mypy-boto3-observabilityadmin boto3
INSTALL
IMPORT
SIG · MYPY-BOTO3-OBSERVA
M
mypy-boto3-observabilityadmin
type-stubspythonv1.43.72
Install
3.8s avg
Import
Disk
50MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.72 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 52.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.8s · import 0.000s · 53MB
50MB installed
● package 50MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ObservabilityAdminClient
from mypy_boto3_observabilityadmin import ObservabilityAdminClient
Main client class for the service.
ListServiceLevelObjectivesOutputTypeDef
from mypy_boto3_observabilityadmin.type_defs import ListServiceLevelObjectivesOutputTypeDef
Example of importing a specific TypeDef for request/response bodies.

This quickstart demonstrates how to initialize a typed `ObservabilityAdminClient` and use it. Your IDE and MyPy will now recognize the methods available on the `client` object and provide accurate type hints for arguments and return values, enhancing code quality and reducing runtime errors.

import boto3 from mypy_boto3_observabilityadmin import ObservabilityAdminClient from mypy_boto3_observabilityadmin.type_defs import ListServiceLevelObjectivesOutputTypeDef def get_observability_admin_client() -> ObservabilityAdminClient: """ Returns a typed CloudWatchObservabilityAdminService client. Your IDE will provide type hints for methods and arguments on 'client'. """ client: ObservabilityAdminClient = boto3.client("observabilityadmin") return client if __name__ == "__main__": client = get_observability_admin_client() print(f"Successfully created a typed ObservabilityAdminClient: {type(client)}") # Example of a typed response (requires AWS credentials and permissions) try: # MyPy will ensure 'response' conforms to ListServiceLevelObjectivesOutputTypeDef response: ListServiceLevelObjectivesOutputTypeDef = client.list_service_level_objectives() slo_count = len(response.get('ServiceLevelObjectives', [])) print(f"Successfully called list_service_level_objectives. Found {slo_count} SLOs.") except client.exceptions.ClientError as e: print(f"Could not list Service Level Objectives (expected if no permissions or resources): {e}") print("\nThis demonstrates how `mypy-boto3-observabilityadmin` provides type hints for your boto3 client interactions.")
Debug
Known issues
breakingStarting with `mypy-boto3-builder` version 8.12.0 (which generated `mypy-boto3-observabilityadmin` 1.42.88+), Python 3.8 is no longer supported. Projects using these stubs must run on Python 3.9 or newer.
fix
Upgrade your Python environment to 3.9 or later. If unable to upgrade, use an older `mypy-boto3` version compatible with Python 3.8.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-* >= 1.42.88
gotchaThese packages provide only type stubs. You must install the actual `boto3` library separately for your code to run at runtime. For optimal type checking, ensure your `boto3` version is compatible with the stub version.
fix
Always include `boto3` in your project's dependencies (e.g., `pip install boto3 mypy-boto3-observabilityadmin`).
affects: All versions
gotchaFor the most accurate type checking, the `mypy-boto3-*` stub package version should ideally align with your installed `boto3` runtime version. Significant mismatches can lead to incorrect type hints or `mypy` errors.
fix
Regularly update both `boto3` and `mypy-boto3-*` packages, or explicitly pin versions to match (`pip install boto3==X.Y.Z mypy-boto3-observabilityadmin==X.Y.Z`).
affects: All versions
breakingIn `mypy-boto3-builder` version 8.9.0, there were changes to TypeDef naming conventions (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`). If you directly import and use `TypeDef` classes by their exact names, this could cause import errors or type mismatches.
fix
Consult the `mypy-boto3` documentation or your IDE's auto-completion for the correct TypeDef names in the `mypy_boto3_observabilityadmin.type_defs` module.
affects: mypy-boto3-builder >= 8.9.0, mypy-boto3-* >= 1.40.X (approx)
Upgrade
Version history
1.43.72latest on PyPI · released Aug 14, 2026
Audit
Dependencies
boto3requiredRequired runtime library for which these stubs provide type hints.
typing-extensionsoptionalConditionally required for older Python versions (pre-3.9) to provide forward-compatible type hints.
Agent activity
11 hits · last 30 days
node
8
Amazon
1
OpenAI (training)
1
Resources