FRTc@sdZddlmZddlmZddlmZmZddlm Z ddl m Z ddl m Z mZmZddlZdd lmZejd iZd Zd Zd efdYZdS(sg This module provides an interface to the Elastic Compute Cloud (EC2) load balancing service from AWS. i(tAWSQueryConnection(t InstanceInfo(t LoadBalancertLoadBalancerZones(t InstanceState(t HealthCheck(t RegionInfot get_regionst load_regionsN(tsixtelasticloadbalancingcCstddtS(s Get all available regions for the ELB service. :rtype: list :return: A list of :class:`boto.RegionInfo` instances R tconnection_cls(Rt ELBConnection(((sB/opt/freeware/lib/python2.7/site-packages/boto/ec2/elb/__init__.pytregions(scKs4x-tD]"}|j|kr |j|Sq WdS(s4 Given a valid region name, return a :class:`boto.ec2.elb.ELBConnection`. :param str region_name: The name of the region to connect to. :rtype: :class:`boto.ec2.ELBConnection` or ``None`` :return: A connection to the given region, or None if an invalid region name is given N(R tnametconnecttNone(t region_namet kw_paramstregion((sB/opt/freeware/lib/python2.7/site-packages/boto/ec2/elb/__init__.pytconnect_to_region2s R cBseZejjdddZejjdddZejjdddZd%d%e d%d%d%d%d%dd%d%dd%e d%d Z d Z d Z d%d%d Z d%d%d%d d%dZd%d%dZdZdZdZdZdZdZdZdZdZd%dZdZdZdZdZdZdZd Z d!Z!d"Z"d#Z#d$Z$RS(&tBotot elb_versions 2012-06-01telb_region_names us-east-1telb_region_endpoints,elasticloadbalancing.us-east-1.amazonaws.comit/cCsz| s!t||j|j} n| |_tt|j|||||||||jj| | | | d|d| dS(s Init method to create a new connection to EC2 Load Balancing Service. .. note:: The region argument is overridden by the region specified in the boto configuration file. tvalidate_certst profile_nameN(RtDefaultRegionNametDefaultRegionEndpointRtsuperR t__init__tendpoint(tselftaws_access_key_idtaws_secret_access_keyt is_securetporttproxyt proxy_portt proxy_usert proxy_passtdebugthttps_connection_factoryRtpathtsecurity_tokenRR((sB/opt/freeware/lib/python2.7/site-packages/boto/ec2/elb/__init__.pyRKs     cCsdgS(Ntec2((R!((sB/opt/freeware/lib/python2.7/site-packages/boto/ec2/elb/__init__.pyt_required_auth_capabilitydscCsQt|tjr|g}nx,t|D]\}}||||ds