ElasticLoadBalancingv2 / Paginator / DescribeLoadBalancers
DescribeLoadBalancers#
- class ElasticLoadBalancingv2.Paginator.DescribeLoadBalancers#
paginator = client.get_paginator('describe_load_balancers')
- paginate(**kwargs)#
Creates an iterator that will paginate through responses from
ElasticLoadBalancingv2.Client.describe_load_balancers()
.See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( LoadBalancerArns=[ 'string', ], Names=[ 'string', ], PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
LoadBalancerArns (list) –
The Amazon Resource Names (ARN) of the load balancers. You can specify up to 20 load balancers in a single call.
(string) –
Names (list) –
The names of the load balancers.
(string) –
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextToken
will be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextToken
from a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'LoadBalancers': [ { 'LoadBalancerArn': 'string', 'DNSName': 'string', 'CanonicalHostedZoneId': 'string', 'CreatedTime': datetime(2015, 1, 1), 'LoadBalancerName': 'string', 'Scheme': 'internet-facing'|'internal', 'VpcId': 'string', 'State': { 'Code': 'active'|'provisioning'|'active_impaired'|'failed', 'Reason': 'string' }, 'Type': 'application'|'network'|'gateway', 'AvailabilityZones': [ { 'ZoneName': 'string', 'SubnetId': 'string', 'OutpostId': 'string', 'LoadBalancerAddresses': [ { 'IpAddress': 'string', 'AllocationId': 'string', 'PrivateIPv4Address': 'string', 'IPv6Address': 'string' }, ], 'SourceNatIpv6Prefixes': [ 'string', ] }, ], 'SecurityGroups': [ 'string', ], 'IpAddressType': 'ipv4'|'dualstack'|'dualstack-without-public-ipv4', 'CustomerOwnedIpv4Pool': 'string', 'EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic': 'string', 'EnablePrefixForIpv6SourceNat': 'on'|'off' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
LoadBalancers (list) –
Information about the load balancers.
(dict) –
Information about a load balancer.
LoadBalancerArn (string) –
The Amazon Resource Name (ARN) of the load balancer.
DNSName (string) –
The public DNS name of the load balancer.
CanonicalHostedZoneId (string) –
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
CreatedTime (datetime) –
The date and time the load balancer was created.
LoadBalancerName (string) –
The name of the load balancer.
Scheme (string) –
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.
VpcId (string) –
The ID of the VPC for the load balancer.
State (dict) –
The state of the load balancer.
Code (string) –
The state code. The initial state of the load balancer is
provisioning
. After the load balancer is fully set up and ready to route traffic, its state isactive
. If load balancer is routing traffic but does not have the resources it needs to scale, its state isactive_impaired
. If the load balancer could not be set up, its state isfailed
.Reason (string) –
A description of the state.
Type (string) –
The type of load balancer.
AvailabilityZones (list) –
The subnets for the load balancer.
(dict) –
Information about an Availability Zone.
ZoneName (string) –
The name of the Availability Zone.
SubnetId (string) –
The ID of the subnet. You can specify one subnet per Availability Zone.
OutpostId (string) –
[Application Load Balancers on Outposts] The ID of the Outpost.
LoadBalancerAddresses (list) –
[Network Load Balancers] If you need static IP addresses for your load balancer, you can specify one Elastic IP address per Availability Zone when you create an internal-facing load balancer. For internal load balancers, you can specify a private IP address from the IPv4 range of the subnet.
(dict) –
Information about a static IP address for a load balancer.
IpAddress (string) –
The static IP address.
AllocationId (string) –
[Network Load Balancers] The allocation ID of the Elastic IP address for an internal-facing load balancer.
PrivateIPv4Address (string) –
[Network Load Balancers] The private IPv4 address for an internal load balancer.
IPv6Address (string) –
[Network Load Balancers] The IPv6 address.
SourceNatIpv6Prefixes (list) –
[Network Load Balancers with UDP listeners] The IPv6 prefixes to use for source NAT. For each subnet, specify an IPv6 prefix (/80 netmask) from the subnet CIDR block or
auto_assigned
to use an IPv6 prefix selected at random from the subnet CIDR block.(string) –
SecurityGroups (list) –
The IDs of the security groups for the load balancer.
(string) –
IpAddressType (string) –
The type of IP addresses used for public or private connections by the subnets attached to your load balancer.
[Application Load Balancers] The possible values are
ipv4
(IPv4 addresses),dualstack
(IPv4 and IPv6 addresses), anddualstack-without-public-ipv4
(public IPv6 addresses and private IPv4 and IPv6 addresses).[Network Load Balancers and Gateway Load Balancers] The possible values are
ipv4
(IPv4 addresses) anddualstack
(IPv4 and IPv6 addresses).CustomerOwnedIpv4Pool (string) –
[Application Load Balancers on Outposts] The ID of the customer-owned address pool.
EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic (string) –
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
EnablePrefixForIpv6SourceNat (string) –
[Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT. The IP address type must be
dualstack
. The default value isoff
.
NextToken (string) –
A token to resume pagination.