ó FRTc@s’ddlmZddlmZdefd„ƒYZdefd„ƒYZdefd„ƒYZd efd „ƒYZd e fd „ƒYZ d S(iÿÿÿÿ(t ResultSet(t ListElementtAlarmcBs/eZdd„Zd„Zd„Zd„ZRS(cCs||_d|_d|_dS(N(t connectiontNonetnamet alarm_arn(tselfR((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyt__init__s  cCs d|jS(NsAlarm:%s(R(R((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyt__repr__!scCsdS(N(R(RRtattrsR((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyt startElement$scCsD|dkr||_n(|dkr0||_nt|||ƒdS(Nt AlarmNametAlarmARN(RRtsetattr(RRtvalueR((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyt endElement's     N(t__name__t __module__RRR R R(((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyRs   tAdjustmentTypecBs/eZdd„Zd„Zd„Zd„ZRS(cCs||_d|_dS(N(RRtadjustment_type(RR((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR1s cCs d|jS(NsAdjustmentType:%s(R(R((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR 5scCsdS(N((RRR R((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR 8scCs|dkr||_ndS(NR(R(RRRR((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR;s  N(RRRRR R R(((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR0s   tMetricCollectionTypescBsqeZdefd„ƒYZdefd„ƒYZdefd„ƒYZd d„Zd„Zd„Z d „Z RS( tBaseTypecBs2eZdZd„Zd„Zd„Zd„ZRS(tcCs||_d|_dS(N(RRtval(RR((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyREs cCsd|j|jfS(Ns%s:%s(targR(R((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR IscCsdS(N((RRR R((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR LscCs||jkr||_ndS(N(RR(RRRR((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyROs(RRRRR R R(((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyRBs    tMetriccBseZdZRS(R(RRR(((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyRSst GranularitycBseZdZRS(R(RRR(((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyRVscCs||_g|_g|_dS(N(Rtmetricst granularities(RR((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyRYs  cCsd|j|jfS(NsMetricCollectionTypes:<%s, %s>(RR(R((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR ^scCs`|dkr.td|jfgƒ|_|jS|dkr\td|jfgƒ|_|jSdS(Nt GranularitiestmembertMetrics(RRRRR(RRR R((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR as   cCsdS(N((RRRR((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyRisN( RRtobjectRRRRRR R R(((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyRAs   t ScalingPolicycBs8eZdd„Zd„Zd„Zd„Zd„ZRS(cKs‹|jddƒ|_|jddƒ|_|jddƒ|_|jddƒ|_|jddƒ|_||_|jddƒ|_dS(s Scaling Policy :type name: str :param name: Name of scaling policy. :type adjustment_type: str :param adjustment_type: Specifies the type of adjustment. Valid values are `ChangeInCapacity`, `ExactCapacity` and `PercentChangeInCapacity`. :type as_name: str or int :param as_name: Name or ARN of the Auto Scaling Group. :type scaling_adjustment: int :param scaling_adjustment: Value of adjustment (type specified in `adjustment_type`). :type min_adjustment_step: int :param min_adjustment_step: Value of min adjustment step required to apply the scaling policy (only make sense when use `PercentChangeInCapacity` as adjustment_type.). :type cooldown: int :param cooldown: Time (in seconds) before Alarm related Scaling Activities can start after the previous Scaling Activity ends. RRtas_nametscaling_adjustmenttcooldowntmin_adjustment_stepN( tgetRRRR#R$R%RR&(RRtkwargs((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyRns cCsd|j|j|jfS(Ns(ScalingPolicy(%s group:%s adjustment:%s)(RR#R(R((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR Žs cCs/|dkr+tdtfgƒ|_|jSdS(NtAlarmsR(RRtalarms(RRR R((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR “s cCs¾|dkr||_n¢|dkr0||_nŠ|dkrH||_nr|dkrft|ƒ|_nT|dkr„t|ƒ|_n6|dkrœ||_n|dkrºt|ƒ|_ndS(Nt PolicyNametAutoScalingGroupNamet PolicyARNtScalingAdjustmenttCooldownRtMinAdjustmentStep(RR#t policy_arntintR$R%RR&(RRRR((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR˜s           cCs|jj|j|jƒS(N(Rt delete_policyRR#(R((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pytdelete¨sN(RRRRR R RR4(((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR"ms    tTerminationPoliciescBs&eZdd„Zd„Zd„ZRS(cKsdS(N((RRR(((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR­scCsdS(N((RRR R((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR °scCs |dkr|j|ƒndS(NR(tappend(RRRR((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR³s N(RRRRR R(((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyR5¬s  N( tboto.resultsetRtboto.ec2.elb.listelementRR!RRRR"tlistR5(((sF/opt/freeware/lib/python2.7/site-packages/boto/ec2/autoscale/policy.pyts ,?