Type annotations for boto3.ElasticLoadBalancingv2 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-elbv2
Type annotations for boto3.ElasticLoadBalancingv2 1.13.25 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.2.
More information can be found on boto3-stubs page.
How to use
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for ElasticLoadBalancingv2
service.
python -m pip install boto3-stubs[elbv2]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_elbv2
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_elbv2 import ElasticLoadBalancingv2Client
# Now mypy can check if your code is valid.
client: ElasticLoadBalancingv2Client = boto3.client("elbv2")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ElasticLoadBalancingv2Client = session.client("elbv2")
# Waiters are also supported
import mypy_boto3_elbv2.waiter as elbv2_waiters
load_balancer_available_waiter: elbv2_waiters.LoadBalancerAvailableWaiter = client.get_waiter("load_balancer_available")
load_balancer_exists_waiter: elbv2_waiters.LoadBalancerExistsWaiter = client.get_waiter("load_balancer_exists")
load_balancers_deleted_waiter: elbv2_waiters.LoadBalancersDeletedWaiter = client.get_waiter("load_balancers_deleted")
target_deregistered_waiter: elbv2_waiters.TargetDeregisteredWaiter = client.get_waiter("target_deregistered")
target_in_service_waiter: elbv2_waiters.TargetInServiceWaiter = client.get_waiter("target_in_service")
# Annotated paginators are included as well
import mypy_boto3_elbv2.paginator as elbv2_paginators
describe_account_limits_paginator: elbv2_paginators.DescribeAccountLimitsPaginator = client.get_paginator("describe_account_limits")
describe_listener_certificates_paginator: elbv2_paginators.DescribeListenerCertificatesPaginator = client.get_paginator("describe_listener_certificates")
describe_listeners_paginator: elbv2_paginators.DescribeListenersPaginator = client.get_paginator("describe_listeners")
describe_load_balancers_paginator: elbv2_paginators.DescribeLoadBalancersPaginator = client.get_paginator("describe_load_balancers")
describe_rules_paginator: elbv2_paginators.DescribeRulesPaginator = client.get_paginator("describe_rules")
describe_ssl_policies_paginator: elbv2_paginators.DescribeSSLPoliciesPaginator = client.get_paginator("describe_ssl_policies")
describe_target_groups_paginator: elbv2_paginators.DescribeTargetGroupsPaginator = client.get_paginator("describe_target_groups")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_elbv2
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_elbv2 as elbv2
from mypy_boto3_elbv2 import ElasticLoadBalancingv2Client
# with these
from mypy_boto3 import elbv2
from mypy_boto3.elbv2 import ElasticLoadBalancingv2Client
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 mypy-boto3-elbv2-1.13.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d713d41dc5ad2a89b5f677213f78320ff79c223d0249bee64cd567117b11d8c |
|
MD5 | 0aa536fde0ba74cc4926dd38c2e95063 |
|
BLAKE2b-256 | 67735493784747e1539e27e35f00c84924ef899115144b1b38081e77f5eccdc8 |
Hashes for mypy_boto3_elbv2-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eab1a10d6eec2adea196ceb5780a75f75d797729b5a116ffd9772b27de28737e |
|
MD5 | 3808f17622361cd19e057d610e21fc48 |
|
BLAKE2b-256 | ceea96033d0daf4ce431b4b70eb3175899ed6187895adebfc2501fcb85bd99e0 |