Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyc
�
��Xc@s]ddlmZddlmZddlmZddlmZdeefd��YZdS(i����(t
ELBRequest(tArg(t
ArgumentError(tTabifyingMixintConfigureHealthCheckcBseZdZeddddd�eddddd	d
ededd�ed
ddddd
ededd�edddddddedd�edddddd
ededd�eddddd	d
ededd�gZd�Zd�Zd�Z	RS(sEConfigure health checking for instance registerd with a load balancertLoadBalancerNametmetavartELBthelps.name of the load balancer to modify (required)s--healthy-thresholdtdestsHealthCheck.HealthyThresholdtCOUNTttypetrequiredsmnumber of consecutive successful health checks that
                will mark instances as Healthy (required)s
--intervalsHealthCheck.IntervaltSECONDSs5approximate interval between health checks (required)s-ts--targetsHealthCheck.TargetsPROTOCOL:PORT[/PATH]s.connection target for health checks (required)s	--timeoutsHealthCheck.Timeouts(maximum health check duration (required)s--unhealthy-thresholdsHealthCheck.UnhealthyThresholdsknumber of consecutive failed health checks that will
                mark instances as Unhealthy (required)cCs�tj|�|jd}|jd�\}}}|sGtd��n|j�dkr}d|kr}tdj|���ndS(	NsHealthCheck.Targett:s9argument -t/--target: must have form PROTOCOL:PORT[/PATH]thttpthttpst/s9argument -t/--target: path is required for protocol '{0}'(RR(Rt	configuretargst	partitionRtlowertformat(tselfttargettprotocolt_trest((s`/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyR8s

	cCs^|jd}|jdd�d}|j�d	krZ|j||j�d�|jd<ndS(
NsHealthCheck.TargetRiiRRtsslttcp(shttpshttpsRR(RtsplitRtreplacetuppertparams(RRR((s`/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyt
preprocessCs

cCsc|jdi�}|jd|jd�|jd�|jd�|jd�|jd�f�GHdS(NtHealthChecktHEALTH_CHECKtTargettIntervaltTimeouttHealthyThresholdtUnhealthyThreshold(tgetttabify(Rtresulttcheck((s`/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pytprint_resultKs
(
t__name__t
__module__tDESCRIPTIONRtinttTruetARGSRR"R.(((s`/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyR s*		N(	t'euca2ools.commands.elasticloadbalancingRtrequestbuilderRtrequestbuilder.exceptionsRtrequestbuilder.mixinsRR(((s`/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyt<module>s