Elastic Load Balancing
elb.load_balancer
- class elb.load_balancer
-
Discovery Example:
>>> from cloudwanderer import CloudWanderer, ServiceResourceType >>> from cloudwanderer.storage_connectors import GremlinStorageConnector >>> cloud_wanderer = CloudWanderer(storage_connectors=[ ... GremlinStorageConnector( ... endpoint_url="ws://localhost:8182", ... ) ... ]) >>> cloud_wanderer.write_resources( ... service_resource_types=[ServiceResourceType("elb","load_balancer")] ... )
OpenCypher Example:
How to query resources of this type using OpenCypher in Neptune.
MATCH (load_balancer:aws_elb_load_balancer) RETURN *
Gremlin Example:
How to query resources of this type using Gremlin in Neptune/local Gremlin.
g.V().hasLabel('aws_elb_load_balancer').out().path().by(valueMap(true))
- 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
isinternet-facing
, the load balancer has a public DNS name that resolves to a public IP address. IfScheme
isinternal
, 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.