Registry / type-stubs / types-aiobotocore-elbv2

types-aiobotocore-elbv2

JSON →
library3.7.0pypypiunverified

This library provides type annotations for the `aiobotocore` client interacting with the AWS Elastic Load Balancing V2 (ELBv2) service. It is generated by `mypy-boto3-builder` and ensures type-safe asynchronous AWS interactions. The current version is 3.4.0, and the `mypy-boto3-builder` project has a frequent release cadence, often aligning with new AWS service features and SDK updates.

pip install types-aiobotocore-elbv2 aiobotocore
INSTALL
IMPORT
SIG · TYPES-AIOBOTOCORE-
T
types-aiobotocore-elbv2
type-stubspythonv3.7.0
Install
6.0s avg
Import
Disk
60MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.7.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.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 59.8MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 6.0s · import 0.000s · 62MB
60MB installed
● package 60MB
Code
Verified usage

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

ELBv2Client
from types_aiobotocore_elbv2.client import ELBv2Client
from types_aiobotocore.elbv2 import ELBv2Client
Type stubs are organized by service within their own `types_aiobotocore_<service_name>` package, not as submodules of a main `types_aiobotocore` package.
DescribeLoadBalancersOutputTypeDef
from types_aiobotocore_elbv2.type_defs import DescribeLoadBalancersOutputTypeDef
from types_aiobotocore_elbv2.client import DescribeLoadBalancersOutputTypeDef
Type definitions for method inputs/outputs are typically found in the `type_defs` submodule, not directly in `client`.

This quickstart demonstrates how to instantiate an `aiobotocore` ELBv2 client and apply the `ELBv2Client` type hint for full static analysis support with `mypy` or similar tools. It retrieves a list of ELBv2 load balancers in the configured region.

import asyncio from aiobotocore.session import get_session from types_aiobotocore_elbv2.client import ELBv2Client async def describe_elbv2_load_balancers(): session = get_session() async with session.create_client("elbv2") as client: # Explicitly type-hint the client for static analysis elbv2_client: ELBv2Client = client response = await elbv2_client.describe_load_balancers() print(f"ELBv2 Load Balancers: {response.get('LoadBalancers')}") if __name__ == "__main__": asyncio.run(describe_elbv2_load_balancers())
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. Users on Python 3.8 must upgrade their Python version to 3.9 or newer.
fix
Upgrade your Python environment to 3.9 or later.
affects: >=8.12.0 of mypy-boto3-builder generated packages
breakingType definition (TypeDef) argument names might have changed in `mypy-boto3-builder` version 8.9.0 for brevity (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`).
fix
Review your code for `TypeDef` names and adjust them according to the latest generated types. Mypy will highlight incorrect names.
affects: >=8.9.0 of mypy-boto3-builder generated packages
gotchaThis library provides *type annotations* only. `aiobotocore` (and optionally `boto3` if you mix async/sync operations) must be installed separately for the code to run at runtime.
fix
Ensure `pip install aiobotocore` is executed alongside `pip install types-aiobotocore-elbv2`.
affects: All versions
gotchaThe `mypy-boto3-builder` projects now use PEP 561 packaging. While this generally improves compatibility, ensure you are not relying on internal builder structures or non-standard import paths that might have changed.
fix
Stick to documented public import paths (e.g., `types_aiobotocore_elbv2.client` or `types_aiobotocore_elbv2.type_defs`).
affects: >=8.12.0 of mypy-boto3-builder generated packages
Upgrade
Version history
3.7.0latest on PyPI · released May 10, 2026
Audit
Dependencies
aiobotocorerequiredRuntime dependency for the actual AWS service interaction. This package provides type stubs for aiobotocore.
typing-extensionsoptionalProvides backports of new `typing` features for older Python versions (e.g., `NotRequired`). Required for Python < 3.10.
Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
1
Resources
types-aiobotocore-elbv2 — pip install types-aiobotocore-elbv2 · libregistry