Elastic Load Balancing v2¶
-
class
elbv2.
load_balancer
¶ Example:
resources = storage_connector.read_resources( service="elbv2", resource_type="load_balancer") for resource in resources: resource.load() print(resource.urn) print(resource.availability_zones) print(resource.canonical_hosted_zone_id) print(resource.created_time) print(resource.customer_owned_ipv4_pool) print(resource.dns_name) print(resource.ip_address_type) print(resource.load_balancer_arn) print(resource.load_balancer_name) print(resource.scheme) print(resource.security_groups) print(resource.state) print(resource.type) print(resource.vpc_id)
-
availability_zones
¶ The subnets for the load balancer.
-
canonical_hosted_zone_id
¶ The ID of the Amazon Route 53 hosted zone associated with the load balancer.
-
created_time
¶ The date and time the load balancer was created.
-
customer_owned_ipv4_pool
¶ [Application Load Balancers on Outposts] The ID of the customer-owned address pool.
-
dns_name
¶ The public DNS name of the load balancer.
-
ip_address_type
¶ The type of IP addresses used by the subnets for your load balancer. The possible values are
ipv4
(for IPv4 addresses) anddualstack
(for IPv4 and IPv6 addresses).
-
load_balancer_arn
¶ The Amazon Resource Name (ARN) of the load balancer.
-
load_balancer_name
¶ The name of the load balancer.
-
scheme
¶ 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.
-
security_groups
¶ The IDs of the security groups for the load balancer.
-
state
¶ The state of the load balancer.
-
type
¶ The type of load balancer.
-
vpc_id
¶ The ID of the VPC for the load balancer.
-
-
class
elbv2.
target_group
¶ Example:
resources = storage_connector.read_resources( service="elbv2", resource_type="target_group") for resource in resources: resource.load() print(resource.urn) print(resource.health_check_enabled) print(resource.health_check_interval_seconds) print(resource.health_check_path) print(resource.health_check_port) print(resource.health_check_protocol) print(resource.health_check_timeout_seconds) print(resource.healthy_threshold_count) print(resource.load_balancer_arns) print(resource.matcher) print(resource.port) print(resource.protocol) print(resource.protocol_version) print(resource.target_group_arn) print(resource.target_group_name) print(resource.target_type) print(resource.unhealthy_threshold_count) print(resource.vpc_id)
-
health_check_enabled
¶ Indicates whether health checks are enabled.
-
health_check_interval_seconds
¶ The approximate amount of time, in seconds, between health checks of an individual target.
-
health_check_path
¶ The destination for health checks on the targets.
-
health_check_port
¶ The port to use to connect with the target.
-
health_check_protocol
¶ The protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
-
health_check_timeout_seconds
¶ The amount of time, in seconds, during which no response means a failed health check.
-
healthy_threshold_count
¶ The number of consecutive health checks successes required before considering an unhealthy target healthy.
-
load_balancer_arns
¶ The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.
-
matcher
¶ The HTTP or gRPC codes to use when checking for a successful response from a target.
-
port
¶ The port on which the targets are listening. Not used if the target is a Lambda function.
-
protocol
¶ The protocol to use for routing traffic to the targets.
-
protocol_version
¶ [HTTP/HTTPS protocol] The protocol version. The possible values are
GRPC
,HTTP1
, andHTTP2
.
-
target_group_arn
¶ The Amazon Resource Name (ARN) of the target group.
-
target_group_name
¶ The name of the target group.
-
target_type
¶ The type of target that you must specify when registering targets with this target group. The possible values are
instance
(register targets by instance ID),ip
(register targets by IP address), orlambda
(register a single Lambda function as a target).
-
unhealthy_threshold_count
¶ The number of consecutive health check failures required before considering the target unhealthy.
-
vpc_id
¶ The ID of the VPC for the targets.
-