mypy-boto3-acm-pca provides type annotations (stubs) for the boto3 ACMPCA service, enabling static type checking with tools like MyPy. It is part of the broader mypy-boto3-builder project, which generates stubs for all AWS services. The current version is 1.42.3 and new versions are released regularly to keep pace with boto3 updates.
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
muslpy 3.10–3.925 runs
installs and imports cleanly · install 0.0s · import 0.614s · 51.4MB
glibcpy 3.10–3.925 runs
installs and imports cleanly · install 3.8s · import 0.574s · 52MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
from mypy_boto3_acm_pca.client import ACMPCAClient
Recommended pattern for conditional import of type stubs to avoid runtime dependency.
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from mypy_boto3_acm_pca.client import ACMPCAClient
Initializes a boto3 ACMPCA client and demonstrates how to use the type annotations for static analysis while maintaining standard boto3 runtime behavior.
import boto3
from typing import TYPE_CHECKING
# The actual boto3 client is used at runtime
session = boto3.Session()
client = session.client("acm-pca")
# For type checking only, use conditional import
if TYPE_CHECKING:
from mypy_boto3_acm_pca.client import ACMPCAClient
# Type-hint the client for static analysis
typed_client: ACMPCAClient = client
# Example usage with type-hinted client
# These calls will be type-checked by MyPy
response = typed_client.list_certificate_authorities(
MaxResults=5,
Status='ACTIVE'
)
print(response.get('CertificateAuthorities'))
else:
# Runtime execution will use the untyped client
response = client.list_certificate_authorities(MaxResults=5)
print(response.get('CertificateAuthorities'))
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.