--- id: types-aiobotocore-ec2 version: "3.9.0" license: MIT license_treatment: permissive maintenance: active --- # types-aiobotocore-ec2 — Type annotations for aiobotocore EC2 3.9.0 service generated with mypy-boto3-builder 8.12.0 License: permissive · Maintenance: active · Downloads: 3.7M/mo ## What it is and what it does types-aiobotocore-ec2 is a type-stub package that adds complete type annotations for the aiobotocore EC2 service. It was generated using mypy-boto3-builder 8.12.0 and provides type hints for EC2 clients, paginators, waiters, and service resources. When installed, it enables IDE features like autocomplete and inline documentation, and allows static type checkers (mypy, pyright) to validate your async AWS EC2 code without requiring explicit type annotations in your source. The package is designed to work with multiple development environments: VSCode with Pylance, PyCharm, Emacs with lsp-pyright, Sublime Text with LSP-pyright, and command-line type checkers. It has a single runtime dependency on typing-extensions and requires Python 3.9 or later. The package is pure stubs (no compiled code), making installation straightforward and friction-free. Use it for: - Enable IDE autocomplete and type checking when writing async EC2 code with aiobotocore in VSCode or Emacs. - Validate EC2 API calls with mypy or pyright in CI/CD pipelines to catch type errors before deployment. - Provide inline documentation and parameter hints for EC2 client methods, paginators, and waiters in your editor. - Use TYPE_CHECKING guards to get type safety during development while keeping the package out of production dependencies. - Migrate from synchronous boto3 to async aiobotocore with confidence via static type checking. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides type stubs and annotations for aiobotocore EC2 3.9.0, enabling IDE autocomplete, type checking with mypy and pyright, and static analysis for async AWS EC2 operations. Yes. This is a low-friction, actively maintained type-stub package with no security vulnerabilities, permissive MIT licensing, and a single lightweight dependency. Install it if you use aiobotocore EC2 3.9.0 and want IDE autocomplete or static type checking. PyCharm users should be aware of a known performance issue (PY-40997) with Literal overloads and may prefer types-aiobotocore-lite instead. ## Install pip install types-aiobotocore-ec2 uv add types-aiobotocore-ec2 poetry add types-aiobotocore-ec2 ## Installing types-aiobotocore-ec2 Before you install: Low friction: single runtime dependency (typing-extensions), wheel distribution, and active maintenance with a recent release 12 days ago. Designed as a pure type-stub package with no compiled dependencies. License in practice: MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal obligations. Quickstart: pip install types-aiobotocore-ec2 from aiobotocore.session import get_session from types_aiobotocore_ec2 import EC2Client session = get_session() async with session.create_client("ec2") as client: client: EC2Client # Type checking and IDE completion now available Requires aiobotocore 3.9.0 to be installed separately; Python 3.9 or later. Verify before relying: - Whether the package works with aiobotocore versions other than 3.9.0 or only that specific version. - Performance impact in PyCharm reported in the description (PY-40997) and whether it affects other IDEs. - Whether types-aiobotocore-lite is recommended as a default or only for PyCharm users experiencing slowness. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 3.7M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags aiobotocore ec2 type stubs, aws ec2 async type annotations, mypy boto3 ec2 types, pyright aiobotocore ec2, ec2 client type hints, aiobotocore type checking, boto3 ec2 autocomplete, type-stubs, aws-ec2, async [View on SkillFed](https://skillfed.io/packages/types-aiobotocore-ec2) · [View on PyPI](https://pypi.org/project/types-aiobotocore-ec2/)