ó ¡ôXc@syddlmZmZddlmZddlmZmZddlm Z ddl m Z de efd„ƒYZ dS( iÿÿÿÿ(tArgtMutuallyExclusiveArgList(tTabifyingMixin(tbinary_tag_deftdelimited_list(t ELBRequest(tlistenertCreateLoadBalancercBs:eZdZedddddƒeeddddd d d ed ƒdd ƒeddddd dd ed ƒddƒƒjƒeddd dddddded eddƒeddd ddd,dddd ƒed!d"d d#dd$d ed ƒdd%ƒed&d'd d(dddd)d e dd*ƒgZ d+„Z RS(-slCreate a load balancer After the load balancer is created, instances must be registered with it separately.tLoadBalancerNametmetavartELBthelps(name of the new load balancer (required)s-ss --subnetssSUBNET1,SUBNET2,...tdestsSubnets.memberttypet,sQ[VPC only] subnets the load balancer should run in (required)s-zs--availability-zonessZONE1,ZONE2,...sAvailabilityZones.members`[Non-VPC only] availability zones the load balancer should run in (required)s-ls --listenersListeners.membertactiontappendsv"lb-port=PORT, protocol={HTTP,HTTPS,SSL,TCP}, instance-port=PORT, instance-protocol={HTTP,HTTPS,SSL,TCP}, cert-id=ARN"trequireds8port/protocol settings for the load balancer, where lb-port is the external port number, protocol is the external protocol, instance-port is the back end server port number, instance-protocol is the protocol to use for routing traffic to back end instances, and cert-id is the ARN of the server certificate to use for encrypted connections. lb-port, protocol, and instance-port are required. This option may be used multiple times. (at least 1 required)s-is--schemetSchemetchoicestinternalsT[VPC only] "internal" to make the new load balancer private to a VPCs-gs--security-groupssSecurityGroups.membersGROUP1,GROUP2,...sX[VPC only] IDs of the security groups to assign to the new load balancers-ts--tags Tags.members KEY=VALUEs6key and value of a tag to add to the new load balancercCs!|jd|jdƒfƒGHdS(NtDNS_NAMEtDNSName(ttabifytget(tselftresult((s^/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/createloadbalancer.pyt print_resultIs(R( t__name__t __module__t DESCRIPTIONRRRRtTrueRRtARGSR(((s^/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/createloadbalancer.pyR"s2  N( trequestbuilderRRtrequestbuilder.mixinsRteuca2ools.commands.argtypesRRt'euca2ools.commands.elasticloadbalancingRt0euca2ools.commands.elasticloadbalancing.argtypesRR(((s^/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/createloadbalancer.pyts