/usr/lib/python2.6/site-packages/boto/ec2/autoscale
NameSizeModeActions
activity.py30580644editdlrm
activity.pyc22110644editdlrm
activity.pyo22110644editdlrm
group.py136120644editdlrm
group.pyc150430644editdlrm
group.pyo150430644editdlrm
instance.py24280644editdlrm
instance.pyc18420644editdlrm
instance.pyo18420644editdlrm
launchconfig.py99450644editdlrm
launchconfig.pyc95610644editdlrm
launchconfig.pyo95610644editdlrm
limits.py19580644editdlrm
limits.pyc15060644editdlrm
limits.pyo15060644editdlrm
policy.py62300644editdlrm
policy.pyc85970644editdlrm
policy.pyo85970644editdlrm
request.py15490644editdlrm
request.pyc12550644editdlrm
request.pyo12550644editdlrm
scheduled.py30600644editdlrm
scheduled.pyc23310644editdlrm
scheduled.pyo23310644editdlrm
tag.py33790644editdlrm
tag.pyc28480644editdlrm
tag.pyo28480644editdlrm
__init__.py359290644editdlrm
__init__.pyc331440644editdlrm
__init__.pyo331440644editdlrm
Edit: /usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyc (15043B)
Ñò Å-õSc @sèddklZddklZddklZddklZddkl Z ddk l Z de fd„ƒYZ d e fd „ƒYZd e fd „ƒYZd efd„ƒYZde fd„ƒYZde fd„ƒYZdS(iÿÿÿÿ(t ListElement(t ResultSet(tLaunchConfiguration(tRequest(tInstance(tTagt ProcessTypecBs/eZdd„Zd„Zd„Zd„ZRS(cCs||_d|_dS(N(t connectiontNonet process_name(tselfR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyt__init__s cCs d|iS(NsProcessType(%s)(R (R ((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyt__repr__#scCsdS(N((R tnametattrsR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyt startElement&scCs|djo ||_ndS(Nt ProcessName(R (R R tvalueR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyt endElement)s N(t__name__t __module__RR R RR(((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRs   tSuspendedProcesscBs/eZdd„Zd„Zd„Zd„ZRS(cCs||_d|_d|_dS(N(RRR treason(R R((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR /s  cCsd|i|ifS(NsSuspendedProcess(%s, %s)(R R(R ((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR 4scCsdS(N((R R RR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR7scCs8|djo ||_n|djo ||_ndS(NRtSuspensionReason(R R(R R RR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR:s   N(RRRR R RR(((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR.s   t EnabledMetriccBs5eZdddd„Zd„Zd„Zd„ZRS(cCs||_||_||_dS(N(Rtmetrict granularity(R RRR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR Bs  cCsd|i|ifS(NsEnabledMetric(%s, %s)(RR(R ((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR GscCsdS(N((R R RR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRJscCs8|djo ||_n|djo ||_ndS(Nt GranularitytMetric(RR(R R RR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRMs   N(RRRR R RR(((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRAs  tTerminationPoliciescBseZd„Zd„ZRS(cCsdS(N((R R RR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRVscCs"|djo|i|ƒndS(Ntmember(tappend(R R RR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRYs (RRRR(((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRTs tAutoScalingGroupcBsÝeZddddddddddddddddd„Zd„Zd„ZeeeƒZd„Zd„Z d„Z d„Z d„Z d„Z ed „Zdd d „Zd „Zd „Zdd„Zdd„ZRS(cKs³|p |idƒ|_||_| dj o t| ƒnd|_| dj o t| ƒnd|_d|_|p |idƒ}|dj ot|ƒ}n||_||_ |o t |t ƒo|i|_ n| |_ |pg}t |ƒ|_|pg}t |ƒ|_||_||_| |_d|_t| ƒtjodi| ƒ} n| |_d|_|pd|_|pg}t |ƒ|_||_dS(s. Creates a new AutoScalingGroup with the specified name. You must not have already used up your entire quota of AutoScalingGroups in order for this call to be successful. Once the creation request is completed, the AutoScalingGroup is ready to be used in other calls. :type name: str :param name: Name of autoscaling group (required). :type availability_zones: list :param availability_zones: List of availability zones (required). :type default_cooldown: int :param default_cooldown: Number of seconds after a Scaling Activity completes before any further scaling activities can start. :type desired_capacity: int :param desired_capacity: The desired capacity for the group. :type health_check_period: str :param health_check_period: Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health. :type health_check_type: str :param health_check_type: The service you want the health status from, Amazon EC2 or Elastic Load Balancer. :type launch_config: str or LaunchConfiguration :param launch_config: Name of launch configuration (required). :type load_balancers: list :param load_balancers: List of load balancers. :type max_size: int :param max_size: Maximum size of group (required). :type min_size: int :param min_size: Minimum size of group (required). :type placement_group: str :param placement_group: Physical location of your cluster placement group created in Amazon EC2. :type vpc_zone_identifier: str or list :param vpc_zone_identifier: A comma-separated string or python list of the subnet identifiers of the Virtual Private Cloud. :type tags: list :param tags: List of :class:`boto.ec2.autoscale.tag.Tag`s :type termination_policies: list :param termination_policies: A list of termination policies. Valid values are: "OldestInstance", "NewestInstance", "OldestLaunchConfiguration", "ClosestToNextInstanceHour", "Default". If no value is specified, the "Default" value is used. :type instance_id: str :param instance_id: The ID of the Amazon EC2 instance you want to use to create the Auto Scaling group. :rtype: :class:`boto.ec2.autoscale.group.AutoScalingGroup` :return: An autoscale group. t group_nametcooldownt,N(tgetR RRtinttmin_sizetmax_sizet created_timetdefault_cooldowntlaunch_config_namet isinstanceRtdesired_capacityRtload_balancerstavailability_zonesthealth_check_periodthealth_check_typetplacement_grouptautoscaling_group_arnttypetlisttjointvpc_zone_identifiert instancesttagsttermination_policiest instance_id(R RR t launch_configR.R-R)R0R/R1R6R,R&R'R8R9R:tkwargstlbstzones((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR _s:J ##              cCs|iS(N(R)(R ((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyt _get_cooldownÉscCs ||_dS(N(R)(R tval((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyt _set_cooldownÌscCs d|iS(NsAutoScaleGroup<%s>(R (R ((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR ÑscCsû|djo tdtfgƒ|_|iS|djo|iS|djo|iS|djo tdtfgƒ|_|iS|djo tdtfgƒ|_|iS|djo tdt fgƒ|_ |i S|djo|i SdSdS( Nt InstancesRtLoadBalancerNamestAvailabilityZonestEnabledMetricstSuspendedProcessestTagsR( RRR7R-R.Rtenabled_metricsRtsuspended_processesRR8R9(R R RR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRÔs&       cCs§|djot|ƒ|_n„|djo ||_nj|djo ||_nP|djot|ƒ|_n0|djo ||_n|djot|ƒ|_nö|djot|ƒ|_nÖ|djo ||_n¼|d jo ||_ n¢|d jo6yt|ƒ|_ Wq£t j od|_ q£Xn_|d jo ||_ nE|d jo ||_n+|d jo ||_nt|||ƒdS(NtMinSizetAutoScalingGroupARNt CreatedTimetDefaultCooldowntLaunchConfigurationNametDesiredCapacitytMaxSizetAutoScalingGroupNametPlacementGrouptHealthCheckGracePeriodtHealthCheckTypetVPCZoneIdentifiert InstanceId(R%R&R2R(R)R*R,R'R R1R/t ValueErrorRR0R6R:tsetattr(R R RR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRês<                     cCs?h|id6|d6}|iid|tƒ}||i_|S(s9 Set the desired capacity for the group. RQROtSetDesiredCapacity(R Rt get_objectRt last_request(R tcapacitytparamstreq((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyt set_capacity s     cCs|iid|ƒS(s< Sync local changes with AutoScaling group. tUpdateAutoScalingGroup(Rt _update_group(R ((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pytupdatescCs)d|_d|_d|_|iƒdS(sg Convenience method which shuts down all instances associated with this group. iN(R&R'R,Rb(R ((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pytshutdown_instancess   cCs|ii|i|ƒS(sw Delete this auto-scaling group if no instances attached or no scaling activities in progress. (Rtdelete_auto_scaling_groupR (R t force_delete((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pytdelete&si2cCs|ii|||ƒS(s2 Get all activies for this group. (Rtget_all_activities(R t activity_idst max_records((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pytget_activities.scCs|ii|||ƒS(sv Configures an Auto Scaling group to send notifications when specified events take place. Valid notification types are: 'autoscaling:EC2_INSTANCE_LAUNCH', 'autoscaling:EC2_INSTANCE_LAUNCH_ERROR', 'autoscaling:EC2_INSTANCE_TERMINATE', 'autoscaling:EC2_INSTANCE_TERMINATE_ERROR', 'autoscaling:TEST_NOTIFICATION' (Rtput_notification_configuration(R ttopictnotification_types((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRk5s cCs|ii||ƒS(sR Deletes notifications created by put_notification_configuration. (Rt!delete_notification_configuration(R Rl((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRnCscCs|ii|i|ƒS(sL Suspends Auto Scaling processes for an Auto Scaling group. (Rtsuspend_processesR (R tscaling_processes((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRoIscCs|ii|i|ƒS(sK Resumes Auto Scaling processes for an Auto Scaling group. (Rtresume_processesR (R Rp((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRqOsN(RRRR R?RAtpropertyR"R RRR_RbRctFalseRfRjRkRnRoRq(((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR ^s, d     !     tAutoScalingGroupMetriccBs/eZdd„Zd„Zd„Zd„ZRS(cCs||_d|_d|_dS(N(RRRR(R R((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR Ws  cCs d|iS(NsAutoScalingGroupMetric:%s(R(R ((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR ]scCsdS(N((R R RR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyR`scCsH|djo ||_n+|djo ||_nt|||ƒdS(NRR(RRRX(R R RR((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRcs     N(RRRR R RR(((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyRtVs   N(tboto.ec2.elb.listelementRtboto.resultsetRtboto.ec2.autoscale.launchconfigRtboto.ec2.autoscale.requestRtboto.ec2.autoscale.instanceRtboto.ec2.autoscale.tagRtobjectRRRR4RR Rt(((s</usr/lib/python2.6/site-packages/boto/ec2/autoscale/group.pyts ø