Type annotations for boto3.ElasticLoadBalancingv2 1.13.24 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-elbv2
Type annotations for boto3.ElasticLoadBalancingv2 1.13.24 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.24.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2bd6e35de408d0f7763ccb940dcb35a9de215eaa1cb6a9593334796ec815ee0 |
|
MD5 | 196aac6d14bfea0d475bb3aa76a9fa0d |
|
BLAKE2b-256 | b081c440fa107e79604b8847b2c97595f5444154958f5845716373a3e4a72bfe |
Hashes for mypy_boto3_elbv2-1.13.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88a5570204deda3e8e05b29618db95abd53c9822eead8968152b37da7cfbc78a |
|
MD5 | a589b70b75358e8c89977e88390e1b8a |
|
BLAKE2b-256 | 1f2cb64bf44d21f7e894f8960ddfcfd89f1cf66a42e11b40e1f8a2002dc96a69 |