mypy-boto3-elasticbeanstalk Type Annotations for AWS ElasticBeanstalk
mypy-boto3-elasticbeanstalk provides type annotations (stubs) for the boto3 AWS ElasticBeanstalk client, enhancing static type checking capabilities for your Python code. It is currently at version 1.42.61, generated with mypy-boto3-builder 8.12.0. The `mypy-boto3` project frequently releases updates, often in sync with new boto3 versions and builder improvements.
Warnings
- breaking Support for Python 3.8 has been removed in `mypy-boto3-builder` version 8.12.0, which was used to generate this package version. Users on Python 3.8 will need to upgrade to Python 3.9 or newer.
- breaking The `mypy-boto3-builder` migrated to PEP 561 packages in version 8.12.0. While this improves discoverability for type checkers, it changes the internal package structure. If you have custom type checking configurations or older MyPy versions, you might need to adjust them.
- breaking Some generated `TypeDef` names underwent breaking changes in `mypy-boto3-builder` 8.9.0 (e.g., `CreateDistributionRequestRequestTypeDef` changed to `CreateDistributionRequestTypeDef`). While not specific to ElasticBeanstalk in the release notes, this change pattern could apply to other service definitions.
- gotcha These stubs provide type hints for `boto3`. To use them effectively, you must also have `boto3` installed in your environment. The stubs do not include the runtime functionality of `boto3` itself.
Install
-
pip install mypy-boto3-elasticbeanstalk
Imports
- ElasticBeanstalkClient
from mypy_boto3_elasticbeanstalk.client import ElasticBeanstalkClient
- Client (typed)
import boto3 from mypy_boto3_elasticbeanstalk.client import ElasticBeanstalkClient client: ElasticBeanstalkClient = boto3.client("elasticbeanstalk")
Quickstart
import boto3
from mypy_boto3_elasticbeanstalk.client import ElasticBeanstalkClient
# Get a typed ElasticBeanstalk client
elb_client: ElasticBeanstalkClient = boto3.client("elasticbeanstalk")
# Example: List applications (result will be fully typed)
response = elb_client.describe_applications()
print(f"Found {len(response['Applications'])} ElasticBeanstalk applications:")
for app in response['Applications']:
print(f"- {app['ApplicationName']}")