Type annotations for aiobotocore.ElasticLoadBalancing 2.1.0 service generated by mypy-boto3-builder 6.4.2
Project description
mypy-boto3-elb
Type annotations for boto3.ElasticLoadBalancing 1.20.47 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-builder 6.4.2.
More information can be found on boto3-stubs page and in types-aiobotocore-elb docs
See how it helps to find and fix potential bugs:
How to install
VSCode extension
Add
AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and ElasticLoadBalancing
.
From PyPI with pip
Install types-aiobotocore
for ElasticLoadBalancing
service.
# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[elb]'
# Lite version does not provide session.create_client overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[elb]'
# standalone installation
python -m pip install types-aiobotocore-elb
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylance
as your Python Language Server - Install
types-aiobotocore[elb]
in your environment:python -m pip install 'types-aiobotocore[elb]'
Both type checking and auto-complete should work for ElasticLoadBalancing
service. No explicit type annotations required, write your boto3
code as
usual.
PyCharm
- Install
types-aiobotocore[elb]
in your environment:python -m pip install 'types-aiobotocore[elb]'
Both type checking and auto-complete should work for ElasticLoadBalancing
service. No explicit type annotations required, write your aiobotocore
code
as usual. Auto-complete can be slow on big projects or if you have a lot of
installed types-aiobotocore
submodules.
Other IDEs
Not tested, but as long as your IDE supports mypy
or pyright
, everything
should work.
mypy
- Install
mypy
:python -m pip install mypy
- Install
types-aiobotocore[elb]
in your environment:python -m pip install 'types-aiobotocore[elb]'
- Run
mypy
as usual
Type checking should work for ElasticLoadBalancing
service. No explicit type
annotations required, write your aiobotocore
code as usual.
pyright
- Install
pyright
:yarn global add pyright
- Install
types-aiobotocore[elb]
in your environment:python -m pip install 'types-aiobotocore[elb]'
- Optionally, you can install
boto3-stubs
totypings
folder.
Type checking should work for ElasticLoadBalancing
service. No explicit type
annotations required, write your aiobotocore
code as usual.
Explicit type annotations
Client annotations
ElasticLoadBalancingClient
provides annotations for
session.create_client("elb")
.
from aiobotocore.session import get_session
from types_aiobotocore_elb import ElasticLoadBalancingClient
session = get_session()
async with session.create_client("elb") as client:
client: ElasticLoadBalancingClient
# now client usage is checked by mypy and IDE should provide code auto-complete
Paginators annotations
types_aiobotocore_elb.paginator
module contains type annotations for all
paginators.
from aiobotocore.session import get_session
from types_aiobotocore_elb import ElasticLoadBalancingClient
from types_aiobotocore_elb.paginator import (
DescribeAccountLimitsPaginator,
DescribeLoadBalancersPaginator,
)
session = get_session()
async with session.create_client("elb") as client:
client: ElasticLoadBalancingClient
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
describe_account_limits_paginator: DescribeAccountLimitsPaginator = client.get_paginator("describe_account_limits")
describe_load_balancers_paginator: DescribeLoadBalancersPaginator = client.get_paginator("describe_load_balancers")
```
### Waiters annotations
`types_aiobotocore_elb.waiter` module contains type annotations for all waiters.
```python
from aiobotocore.session import get_session
from types_aiobotocore_elb.client import ElasticLoadBalancingClient
from types_aiobotocore_elb.waiter import (
AnyInstanceInServiceWaiter,
InstanceDeregisteredWaiter,
InstanceInServiceWaiter,
)
session = get_session()
async with session.create_client("elb") as client:
client: ElasticLoadBalancingClient
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
any_instance_in_service_waiter: AnyInstanceInServiceWaiter = client.get_waiter("any_instance_in_service")
instance_deregistered_waiter: InstanceDeregisteredWaiter = client.get_waiter("instance_deregistered")
instance_in_service_waiter: InstanceInServiceWaiter = client.get_waiter("instance_in_service")
```
<a id="literals"></a>
### Literals
`types_aiobotocore_elb.literals` module contains literals extracted from shapes
that can be used in user code for type checking.
```python
from types_aiobotocore_elb.literals import (
AnyInstanceInServiceWaiterName,
DescribeAccountLimitsPaginatorName,
DescribeLoadBalancersPaginatorName,
InstanceDeregisteredWaiterName,
InstanceInServiceWaiterName,
ServiceName,
PaginatorName,
WaiterName,
)
def check_value(value: AnyInstanceInServiceWaiterName) -> bool:
...
Typed dictionaries
types_aiobotocore_elb.type_defs
module contains structures and shapes
assembled to typed dictionaries for additional type checking.
from types_aiobotocore_elb.type_defs import (
AccessLogTypeDef,
AddAvailabilityZonesInputRequestTypeDef,
AddAvailabilityZonesOutputTypeDef,
AddTagsInputRequestTypeDef,
AdditionalAttributeTypeDef,
AppCookieStickinessPolicyTypeDef,
ApplySecurityGroupsToLoadBalancerInputRequestTypeDef,
ApplySecurityGroupsToLoadBalancerOutputTypeDef,
AttachLoadBalancerToSubnetsInputRequestTypeDef,
AttachLoadBalancerToSubnetsOutputTypeDef,
BackendServerDescriptionTypeDef,
ConfigureHealthCheckInputRequestTypeDef,
ConfigureHealthCheckOutputTypeDef,
ConnectionDrainingTypeDef,
ConnectionSettingsTypeDef,
CreateAccessPointInputRequestTypeDef,
CreateAccessPointOutputTypeDef,
CreateAppCookieStickinessPolicyInputRequestTypeDef,
CreateLBCookieStickinessPolicyInputRequestTypeDef,
CreateLoadBalancerListenerInputRequestTypeDef,
CreateLoadBalancerPolicyInputRequestTypeDef,
CrossZoneLoadBalancingTypeDef,
DeleteAccessPointInputRequestTypeDef,
DeleteLoadBalancerListenerInputRequestTypeDef,
DeleteLoadBalancerPolicyInputRequestTypeDef,
DeregisterEndPointsInputRequestTypeDef,
DeregisterEndPointsOutputTypeDef,
DescribeAccessPointsInputRequestTypeDef,
DescribeAccessPointsOutputTypeDef,
DescribeAccountLimitsInputRequestTypeDef,
DescribeAccountLimitsOutputTypeDef,
DescribeEndPointStateInputRequestTypeDef,
DescribeEndPointStateOutputTypeDef,
DescribeLoadBalancerAttributesInputRequestTypeDef,
DescribeLoadBalancerAttributesOutputTypeDef,
DescribeLoadBalancerPoliciesInputRequestTypeDef,
DescribeLoadBalancerPoliciesOutputTypeDef,
DescribeLoadBalancerPolicyTypesInputRequestTypeDef,
DescribeLoadBalancerPolicyTypesOutputTypeDef,
DescribeTagsInputRequestTypeDef,
DescribeTagsOutputTypeDef,
DetachLoadBalancerFromSubnetsInputRequestTypeDef,
DetachLoadBalancerFromSubnetsOutputTypeDef,
HealthCheckTypeDef,
InstanceStateTypeDef,
InstanceTypeDef,
LBCookieStickinessPolicyTypeDef,
LimitTypeDef,
ListenerDescriptionTypeDef,
ListenerTypeDef,
LoadBalancerAttributesTypeDef,
LoadBalancerDescriptionTypeDef,
ModifyLoadBalancerAttributesInputRequestTypeDef,
ModifyLoadBalancerAttributesOutputTypeDef,
PaginatorConfigTypeDef,
PoliciesTypeDef,
PolicyAttributeDescriptionTypeDef,
PolicyAttributeTypeDef,
PolicyAttributeTypeDescriptionTypeDef,
PolicyDescriptionTypeDef,
PolicyTypeDescriptionTypeDef,
RegisterEndPointsInputRequestTypeDef,
RegisterEndPointsOutputTypeDef,
RemoveAvailabilityZonesInputRequestTypeDef,
RemoveAvailabilityZonesOutputTypeDef,
RemoveTagsInputRequestTypeDef,
ResponseMetadataTypeDef,
SetLoadBalancerListenerSSLCertificateInputRequestTypeDef,
SetLoadBalancerPoliciesForBackendServerInputRequestTypeDef,
SetLoadBalancerPoliciesOfListenerInputRequestTypeDef,
SourceSecurityGroupTypeDef,
TagDescriptionTypeDef,
TagKeyOnlyTypeDef,
TagTypeDef,
WaiterConfigTypeDef,
)
def get_structure() -> AccessLogTypeDef:
return {
...
}
Versioning
types-aiobotocore-elb
version is the same as related boto3
version and
follows PEP 440 format.
Documentation
All type annotations can be found in types-aiobotocore-elb docs
Support and contributing
This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for types-aiobotocore-elb-2.1.0.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6acf70fafb6bf7cfffb6a1f3503418504555c5fbf0bb559edbac959eabd907f |
|
MD5 | 0cde4aa0ca47540d477d8e86f6c6cf90 |
|
BLAKE2b-256 | 240edd082f4bb38ad84ddf72a671831417e33784e7cc4fab01809ffc1081e50a |
Hashes for types_aiobotocore_elb-2.1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 289cb89e380efd17879956434e451710ea29ae9961f97fbb93491907eb102167 |
|
MD5 | 95d3eb5de87610fc5b39022f2a6d0d47 |
|
BLAKE2b-256 | 349b10e327b02e75dc145ab93fa93c4645984912b305495a86bb33235dd4272d |