ElasticLoadBalancingv2#
Client#
- class ElasticLoadBalancingv2.Client#
A low-level client representing Elastic Load Balancing (Elastic Load Balancing v2)
A load balancer distributes incoming traffic across targets, such as your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered targets and ensures that it routes traffic only to healthy targets. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer. You configure a target group with a protocol and port number for connections from the load balancer to the targets, and with health check settings to be used when checking the health status of the targets.
Elastic Load Balancing supports the following types of load balancers: Application Load Balancers, Network Load Balancers, Gateway Load Balancers, and Classic Load Balancers. This reference covers the following load balancer types:
Application Load Balancer - Operates at the application layer (layer 7) and supports HTTP and HTTPS.
Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, TLS, and UDP.
Gateway Load Balancer - Operates at the network layer (layer 3).
For more information, see the Elastic Load Balancing User Guide.
All Elastic Load Balancing operations are idempotent, which means that they complete at most one time. If you repeat an operation, it succeeds.
import boto3 client = boto3.client('elbv2')
These are the available methods:
- add_listener_certificates
- add_tags
- add_trust_store_revocations
- can_paginate
- close
- create_listener
- create_load_balancer
- create_rule
- create_target_group
- create_trust_store
- delete_listener
- delete_load_balancer
- delete_rule
- delete_shared_trust_store_association
- delete_target_group
- delete_trust_store
- deregister_targets
- describe_account_limits
- describe_capacity_reservation
- describe_listener_attributes
- describe_listener_certificates
- describe_listeners
- describe_load_balancer_attributes
- describe_load_balancers
- describe_rules
- describe_ssl_policies
- describe_tags
- describe_target_group_attributes
- describe_target_groups
- describe_target_health
- describe_trust_store_associations
- describe_trust_store_revocations
- describe_trust_stores
- get_paginator
- get_resource_policy
- get_trust_store_ca_certificates_bundle
- get_trust_store_revocation_content
- get_waiter
- modify_capacity_reservation
- modify_listener
- modify_listener_attributes
- modify_load_balancer_attributes
- modify_rule
- modify_target_group
- modify_target_group_attributes
- modify_trust_store
- register_targets
- remove_listener_certificates
- remove_tags
- remove_trust_store_revocations
- set_ip_address_type
- set_rule_priorities
- set_security_groups
- set_subnets
Client Exceptions#
Client exceptions are available on a client instance via the exceptions
property. For more detailed instructions and examples on the exact usage of client exceptions, see the error handling user guide.
The available client exceptions are:
- ALPNPolicyNotSupportedException
- AllocationIdNotFoundException
- AvailabilityZoneNotSupportedException
- CaCertificatesBundleNotFoundException
- CapacityDecreaseRequestsLimitExceededException
- CapacityReservationPendingException
- CapacityUnitsLimitExceededException
- CertificateNotFoundException
- DeleteAssociationSameAccountException
- DuplicateListenerException
- DuplicateLoadBalancerNameException
- DuplicateTagKeysException
- DuplicateTargetGroupNameException
- DuplicateTrustStoreNameException
- HealthUnavailableException
- IncompatibleProtocolsException
- InsufficientCapacityException
- InvalidCaCertificatesBundleException
- InvalidConfigurationRequestException
- InvalidLoadBalancerActionException
- InvalidRevocationContentException
- InvalidSchemeException
- InvalidSecurityGroupException
- InvalidSubnetException
- InvalidTargetException
- ListenerNotFoundException
- LoadBalancerNotFoundException
- OperationNotPermittedException
- PriorRequestNotCompleteException
- PriorityInUseException
- ResourceInUseException
- ResourceNotFoundException
- RevocationContentNotFoundException
- RevocationIdNotFoundException
- RuleNotFoundException
- SSLPolicyNotFoundException
- SubnetNotFoundException
- TargetGroupAssociationLimitException
- TargetGroupNotFoundException
- TooManyActionsException
- TooManyCertificatesException
- TooManyListenersException
- TooManyLoadBalancersException
- TooManyRegistrationsForTargetIdException
- TooManyRulesException
- TooManyTagsException
- TooManyTargetGroupsException
- TooManyTargetsException
- TooManyTrustStoreRevocationEntriesException
- TooManyTrustStoresException
- TooManyUniqueTargetGroupsPerLoadBalancerException
- TrustStoreAssociationNotFoundException
- TrustStoreInUseException
- TrustStoreNotFoundException
- TrustStoreNotReadyException
- UnsupportedProtocolException
Paginators#
Paginators are available on a client instance via the get_paginator
method. For more detailed instructions and examples on the usage of paginators, see the paginators user guide.
The available paginators are:
Waiters#
Waiters are available on a client instance via the get_waiter
method. For more detailed instructions and examples on the usage or waiters, see the waiters user guide.
The available waiters are: