Registry / type-stubs / mypy-boto3-aiops

mypy-boto3-aiops

JSON →
library1.43.0pypypi✓ verified 22d ago

mypy-boto3-aiops provides comprehensive type annotations for the AWS AIOps service when used with the `boto3` library. As part of the `mypy-boto3` ecosystem, it enables static type checking with tools like `mypy` and enhances IDE autocompletion for `boto3` clients and responses. The library is actively maintained and regularly updated to reflect changes in `boto3` service definitions, with the current version being 1.42.3.

pip install boto3 mypy-boto3-aiops
INSTALL
IMPORT
SIG · MYPY-BOTO3-AIOPS
M
mypy-boto3-aiops
type-stubspythonv1.43.0
Install
4.1s 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.0 · 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 · 51.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.1s · import 0.000s · 52MB
50MB installed
● package 50MB
Code
Verified usage

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

AIOPSClient
from mypy_boto3_aiops.client import AIOPSClient
Import the typed client for explicit type hinting.
GetClient
from mypy_boto3_aiops import AIOPSClient as GetClient
Common pattern to alias the client type for generic functions.
DescribeServiceQuotaResponseTypeDef
from mypy_boto3_aiops.type_defs import DescribeServiceQuotaResponseTypeDef
Import specific type definitions for response models.

This quickstart demonstrates how to import and use the `AIOPSClient` type for `boto3` operations, enabling static type checking for method calls and responses. It highlights how to instantiate a type-hinted client and call a sample method, illustrating the benefits of `mypy-boto3` for improved code quality and developer experience.

import boto3 from mypy_boto3_aiops.client import AIOPSClient # Instantiate a boto3 AIOps client with type hint client: AIOPSClient = boto3.client("aiops") # Example usage with type-checked parameters and return value # Note: AWS Account ID and Service Code might need to be valid for actual execution response = client.describe_service_quota( ServiceCode="s3", # Example service code QuotaCode="L-F994326F", # Example quota code AccountId="123456789012" # Example AWS account ID ) print(f"Service Quota: {response.get('Quota', {}).get('QuotaName')}") # To run this, ensure AWS credentials are configured (e.g., via ~/.aws/credentials # or environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN). # Also, 'aiops' is a placeholder service for demonstration purposes as AIOps is a broader concept. # For actual AIOps related services like DevOps Guru, look for specific stubs.
Debug
Known issues
gotchaThis package provides only type stubs. You must install the `boto3` library separately for runtime functionality. `mypy-boto3-aiops` will not make API calls on its own.
fix
Ensure `pip install boto3` is executed alongside `pip install mypy-boto3-aiops`.
affects: All
breakingPython 3.8 support was removed with `mypy-boto3-builder` v8.12.0. As `mypy-boto3-aiops` v1.42.3 was generated using this builder, it explicitly requires Python 3.9 or newer.
fix
Upgrade your Python environment to version 3.9 or higher.
affects: 1.42.3+
gotchaFor accurate type checking, the version of `mypy-boto3-aiops` should ideally match or be compatible with your installed `boto3` version. Mismatched versions can lead to incorrect or missing type hints.
fix
Consult the `mypy-boto3-builder` release notes or PyPI for the `mypy-boto3-aiops` package to find the recommended `boto3` version range.
affects: All
breakingSpecific `TypeDef` names for arguments or responses may change between versions (e.g., `CreateDistributionRequestRequestTypeDef` becoming `CreateDistributionRequestTypeDef`). This can break explicit type hints in your code.
fix
Refer to the latest generated type definitions in the stub package (`mypy_boto3_aiops.type_defs`) or update your code according to release notes when upgrading `mypy-boto3-*` packages.
affects: 8.9.0+ of builder (impacts all generated stubs)
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the actual runtime functionality; this package only offers type stubs for it.
Agent activity
28 hits · last 30 days
node
24
Amazon
1
OpenAI (training)
1
Resources
mypy-boto3-aiops — pip install mypy-boto3-aiops · libregistry