Type annotations for boto3.ElasticLoadBalancingv2 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-elbv2
Type annotations for boto3.ElasticLoadBalancingv2 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
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]
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")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_elbv2
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
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 carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("elbv2")
session_client = boto3.Session().client("elbv2")
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.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17bea07461e20253fbc05cb6da079b47d3f44a2274c502ed423bcdcea7d1d541 |
|
MD5 | 17a33ee6552a8562f3581693f8fbb34f |
|
BLAKE2b-256 | cb388e7f2cac35ecd055419e661eebc948cc2439cf04ba06862fd00bc0d7b6cc |
Hashes for mypy_boto3_elbv2-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edb5afc9181f68113cb6d7b98bcf281bf2b88d1f3fd830dc73f8c6ad32660b3c |
|
MD5 | 5d81f1ec5b64a13a857fa074c157520f |
|
BLAKE2b-256 | 1e4bedb01d1f288b1ab4f1bd79e54c424ca30455c296229cd7dd62589b9b6486 |