Type annotations for boto3.ElasticLoadBalancingv2 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-elbv2
Type annotations for boto3.ElasticLoadBalancingv2 1.14.0 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.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b357ee0d0bbfac7a32fc22669b93ea4bca2e6c26106049c4785a68490d35a7eb |
|
MD5 | c782e9460a18a64e7be85b5b3dca93cb |
|
BLAKE2b-256 | c8187ed6900c569a66a6c8e98dc0ce28ac276affb6ea3a10af8c61227af27c00 |
Hashes for mypy_boto3_elbv2-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e061f1a92322e65297bdb5f7fe7dcda5716051ae5d82fc2b78e6be50fdef819 |
|
MD5 | a43a33e5525755a0dd4954f794802d8b |
|
BLAKE2b-256 | 14c789634eb965f4fc8b96ef0d5744d3d28efb0849ac255037e7cac301901f29 |