Types for aiobotocore ACM Service

3.4.0 · active · verified Thu Apr 16

types-aiobotocore-acm provides type annotations for the aiobotocore AWS Certificate Manager (ACM) service client, generated by mypy-boto3-builder. These annotations enable static type checking with tools like MyPy, Pyright, and enhance IDE auto-completion for asynchronous AWS client interactions. The library maintains a versioning in sync with the corresponding aiobotocore and botocore versions and is actively developed with frequent releases.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to initialize an aiobotocore ACM client and use the `ACMClient` type annotation from `types-aiobotocore-acm` to enable static type checking and IDE auto-completion for client methods and their parameters. It lists issued certificates in a specified region.

import asyncio
from aiobotocore.session import get_session
from types_aiobotocore_acm.client import ACMClient

async def list_acm_certificates():
    session = get_session()
    async with session.create_client("acm", region_name="us-east-1") as client:
        client: ACMClient # Explicit type annotation for the client
        response = await client.list_certificates(CertificateStatuses=['ISSUED'])
        for cert in response.get('CertificateSummaryList', []):
            print(f"Certificate ARN: {cert['CertificateArn']}")

if __name__ == "__main__":
    asyncio.run(list_acm_certificates())

view raw JSON →