ElasticLoadBalancingv2Client#
Index > ElasticLoadBalancingv2 > ElasticLoadBalancingv2Client
Auto-generated documentation for ElasticLoadBalancingv2 type annotations stubs module mypy-boto3-elbv2.
ElasticLoadBalancingv2Client#
Type annotations and code completion for boto3.client("elbv2")
.
boto3 documentation
# ElasticLoadBalancingv2Client usage example
from boto3.session import Session
from mypy_boto3_elbv2.client import ElasticLoadBalancingv2Client
def get_elbv2_client() -> ElasticLoadBalancingv2Client:
return Session().client("elbv2")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("elbv2").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("elbv2")
try:
do_something(client)
except (
client.exceptions.ALPNPolicyNotSupportedException,
client.exceptions.AllocationIdNotFoundException,
client.exceptions.AvailabilityZoneNotSupportedException,
client.exceptions.CaCertificatesBundleNotFoundException,
client.exceptions.CertificateNotFoundException,
client.exceptions.ClientError,
client.exceptions.DeleteAssociationSameAccountException,
client.exceptions.DuplicateListenerException,
client.exceptions.DuplicateLoadBalancerNameException,
client.exceptions.DuplicateTagKeysException,
client.exceptions.DuplicateTargetGroupNameException,
client.exceptions.DuplicateTrustStoreNameException,
client.exceptions.HealthUnavailableException,
client.exceptions.IncompatibleProtocolsException,
client.exceptions.InvalidCaCertificatesBundleException,
client.exceptions.InvalidConfigurationRequestException,
client.exceptions.InvalidLoadBalancerActionException,
client.exceptions.InvalidRevocationContentException,
client.exceptions.InvalidSchemeException,
client.exceptions.InvalidSecurityGroupException,
client.exceptions.InvalidSubnetException,
client.exceptions.InvalidTargetException,
client.exceptions.ListenerNotFoundException,
client.exceptions.LoadBalancerNotFoundException,
client.exceptions.OperationNotPermittedException,
client.exceptions.PriorityInUseException,
client.exceptions.ResourceInUseException,
client.exceptions.ResourceNotFoundException,
client.exceptions.RevocationContentNotFoundException,
client.exceptions.RevocationIdNotFoundException,
client.exceptions.RuleNotFoundException,
client.exceptions.SSLPolicyNotFoundException,
client.exceptions.SubnetNotFoundException,
client.exceptions.TargetGroupAssociationLimitException,
client.exceptions.TargetGroupNotFoundException,
client.exceptions.TooManyActionsException,
client.exceptions.TooManyCertificatesException,
client.exceptions.TooManyListenersException,
client.exceptions.TooManyLoadBalancersException,
client.exceptions.TooManyRegistrationsForTargetIdException,
client.exceptions.TooManyRulesException,
client.exceptions.TooManyTagsException,
client.exceptions.TooManyTargetGroupsException,
client.exceptions.TooManyTargetsException,
client.exceptions.TooManyTrustStoreRevocationEntriesException,
client.exceptions.TooManyTrustStoresException,
client.exceptions.TooManyUniqueTargetGroupsPerLoadBalancerException,
client.exceptions.TrustStoreAssociationNotFoundException,
client.exceptions.TrustStoreInUseException,
client.exceptions.TrustStoreNotFoundException,
client.exceptions.TrustStoreNotReadyException,
client.exceptions.UnsupportedProtocolException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_elbv2.client import Exceptions
def handle_error(exc: Exceptions.ALPNPolicyNotSupportedException) -> None:
...
Methods#
add_listener_certificates#
Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.
Type annotations and code completion for boto3.client("elbv2").add_listener_certificates
method.
boto3 documentation
# add_listener_certificates method definition
def add_listener_certificates(
self,
*,
ListenerArn: str,
Certificates: Sequence[CertificateTypeDef], # (1)
) -> AddListenerCertificatesOutputTypeDef: # (2)
...
# add_listener_certificates method usage example with argument unpacking
kwargs: AddListenerCertificatesInputRequestTypeDef = { # (1)
"ListenerArn": ...,
"Certificates": ...,
}
parent.add_listener_certificates(**kwargs)
add_tags#
Adds the specified tags to the specified Elastic Load Balancing resource.
Type annotations and code completion for boto3.client("elbv2").add_tags
method.
boto3 documentation
# add_tags method definition
def add_tags(
self,
*,
ResourceArns: Sequence[str],
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
# add_tags method usage example with argument unpacking
kwargs: AddTagsInputRequestTypeDef = { # (1)
"ResourceArns": ...,
"Tags": ...,
}
parent.add_tags(**kwargs)
add_trust_store_revocations#
Adds the specified revocation file to the specified trust store.
Type annotations and code completion for boto3.client("elbv2").add_trust_store_revocations
method.
boto3 documentation
# add_trust_store_revocations method definition
def add_trust_store_revocations(
self,
*,
TrustStoreArn: str,
RevocationContents: Sequence[RevocationContentTypeDef] = ..., # (1)
) -> AddTrustStoreRevocationsOutputTypeDef: # (2)
...
# add_trust_store_revocations method usage example with argument unpacking
kwargs: AddTrustStoreRevocationsInputRequestTypeDef = { # (1)
"TrustStoreArn": ...,
}
parent.add_trust_store_revocations(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("elbv2").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("elbv2").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_listener#
Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
Type annotations and code completion for boto3.client("elbv2").create_listener
method.