Elastic Load Balancing

class elb.load_balancer
../_images/elb_load_balancer.gv.png

Example:

resources = storage_connector.read_resources(
    service="elb",
    resource_type="load_balancer")
for resource in resources:
    resource.load()
    print(resource.urn)
    print(resource.availability_zones)
    print(resource.backend_server_descriptions)
    print(resource.canonical_hosted_zone_name)
    print(resource.canonical_hosted_zone_name_id)
    print(resource.created_time)
    print(resource.dns_name)
    print(resource.health_check)
    print(resource.instances)
    print(resource.listener_descriptions)
    print(resource.policies)
    print(resource.scheme)
    print(resource.security_groups)
    print(resource.source_security_group)
    print(resource.subnets)
    print(resource.vpc_id)
availability_zones

The Availability Zones for the load balancer.

backend_server_descriptions

Information about your EC2 instances.

canonical_hosted_zone_name

The DNS name of the load balancer. For more information, see Configure a Custom Domain Name in the Classic Load Balancers Guide .

canonical_hosted_zone_name_id

The ID of the Amazon Route 53 hosted zone for the load balancer.

created_time

The date and time the load balancer was created.

dns_name

The DNS name of the load balancer.

health_check

Information about the health checks conducted on the load balancer.

instances

The IDs of the instances for the load balancer.

listener_descriptions

The listeners for the load balancer.

policies

The policies defined for the load balancer.

scheme

The type of load balancer. Valid only for load balancers in a VPC. If Scheme is internet-facing , the load balancer has a public DNS name that resolves to a public IP address. If Scheme is internal , the load balancer has a public DNS name that resolves to a private IP address.

security_groups

The security groups for the load balancer. Valid only for load balancers in a VPC.

source_security_group

The security group for the load balancer, which you can use as part of your inbound rules for your registered instances. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.

subnets

The IDs of the subnets for the load balancer.

vpc_id

The ID of the VPC for the load balancer.