/usr/lib/python2.6/site-packages/boto/ec2
NameSizeModeActions
autoscale/-0755rm
cloudwatch/-0755rm
elb/-0755rm
address.py53480644editdlrm
address.pyc40100644editdlrm
address.pyo40100644editdlrm
attributes.py27100644editdlrm
attributes.pyc28280644editdlrm
attributes.pyo28280644editdlrm
blockdevicemapping.py63720644editdlrm
blockdevicemapping.pyc51510644editdlrm
blockdevicemapping.pyo51510644editdlrm
bundleinstance.py27540644editdlrm
bundleinstance.pyc21750644editdlrm
bundleinstance.pyo21750644editdlrm
buyreservation.py38380644editdlrm
buyreservation.pyc34050644editdlrm
buyreservation.pyo34050644editdlrm
connection.py1762210644editdlrm
connection.pyc1532690644editdlrm
connection.pyo1532690644editdlrm
ec2object.py55540644editdlrm
ec2object.pyc56830644editdlrm
ec2object.pyo56830644editdlrm
group.py15590644editdlrm
group.pyc10470644editdlrm
group.pyo10470644editdlrm
image.py162220644editdlrm
image.pyc150190644editdlrm
image.pyo150190644editdlrm
instance.py235100644editdlrm
instance.pyc256430644editdlrm
instance.pyo256430644editdlrm
instanceinfo.py18930644editdlrm
instanceinfo.pyc15510644editdlrm
instanceinfo.pyo15510644editdlrm
instancestatus.py68540644editdlrm
instancestatus.pyc82120644editdlrm
instancestatus.pyo82120644editdlrm
instancetype.py22730644editdlrm
instancetype.pyc16920644editdlrm
instancetype.pyo16920644editdlrm
keypair.py43510644editdlrm
keypair.pyc40990644editdlrm
keypair.pyo40990644editdlrm
launchspecification.py38290644editdlrm
launchspecification.pyc34690644editdlrm
launchspecification.pyo34690644editdlrm
networkinterface.py135970644editdlrm
networkinterface.pyc121110644editdlrm
networkinterface.pyo121110644editdlrm
placementgroup.py20020644editdlrm
placementgroup.pyc16600644editdlrm
placementgroup.pyo16600644editdlrm
regioninfo.py15680644editdlrm
regioninfo.pyc8450644editdlrm
regioninfo.pyo8450644editdlrm
reservedinstance.py129660644editdlrm
reservedinstance.pyc140560644editdlrm
reservedinstance.pyo140560644editdlrm
securitygroup.py146870644editdlrm
securitygroup.pyc120660644editdlrm
securitygroup.pyo120660644editdlrm
snapshot.py68520644editdlrm
snapshot.pyc63840644editdlrm
snapshot.pyo63840644editdlrm
spotdatafeedsubscription.py24340644editdlrm
spotdatafeedsubscription.pyc21420644editdlrm
spotdatafeedsubscription.pyo21420644editdlrm
spotinstancerequest.py72880644editdlrm
spotinstancerequest.pyc76480644editdlrm
spotinstancerequest.pyo76480644editdlrm
spotpricehistory.py20930644editdlrm
spotpricehistory.pyc15950644editdlrm
spotpricehistory.pyo15950644editdlrm
tag.py30760644editdlrm
tag.pyc28490644editdlrm
tag.pyo28490644editdlrm
volume.py104360644editdlrm
volume.pyc108590644editdlrm
volume.pyo108590644editdlrm
volumestatus.py63290644editdlrm
volumestatus.pyc77060644editdlrm
volumestatus.pyo77060644editdlrm
zone.py26010644editdlrm
zone.pyc25170644editdlrm
zone.pyo25170644editdlrm
__init__.py31000644editdlrm
__init__.pyc24320644editdlrm
__init__.pyo24320644editdlrm
Edit: /usr/lib/python2.6/site-packages/boto/ec2/instance.pyc (25643B)
-Sc @s2dZddkZddklZlZddklZddklZddk l Z ddk l Z ddk lZdd klZddkZd efd YZd efd YZdefdYZdefdYZdefdYZdefdYZdefdYZdS(s Represents an EC2 Instance iN(t EC2ObjecttTaggedEC2Object(t ResultSet(tAddress(tBlockDeviceMapping(t ProductCodes(tNetworkInterface(tGroupt InstanceStatecBs8eZdZdddZdZdZdZRS(s The state of the instance. :ivar code: The low byte represents the state. The high byte is an opaque internal value and should be ignored. Valid values: * 0 (pending) * 16 (running) * 32 (shutting-down) * 48 (terminated) * 64 (stopping) * 80 (stopped) :ivar name: The name of the state of the instance. Valid values: * "pending" * "running" * "shutting-down" * "terminated" * "stopping" * "stopped" icCs||_||_dS(N(tcodetname(tselfR R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyt__init__=s cCsd|i|ifS(Ns%s(%d)(R R (R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyt__repr__AscCsdS(N((R R tattrst connection((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyt startElementDscCsN|djot||_n+|djo ||_nt|||dS(NR R (tintR R tsetattr(R R tvalueR((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyt endElementGs    N(t__name__t __module__t__doc__tNoneR R RR(((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR&s   tInstancePlacementcBs;eZdZddddZdZdZdZRS(s The location where the instance launched. :ivar zone: The Availability Zone of the instance. :ivar group_name: The name of the placement group the instance is in (for cluster compute instances). :ivar tenancy: The tenancy of the instance (if the instance is running within a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. cCs||_||_||_dS(N(tzonet group_namettenancy(R RRR((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR [s  cCs|iS(N(R(R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR `scCsdS(N((R R RR((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRcscCsb|djo ||_nE|djo ||_n+|djo ||_nt|||dS(NtavailabilityZonet groupNameR(RRRR(R R RR((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRfs      N(RRRRR R RR(((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRPs    t ReservationcBsAeZdZddZdZdZdZedZ RS(s Represents a Reservation response object. :ivar id: The unique ID of the Reservation. :ivar owner_id: The unique ID of the owner of the Reservation. :ivar groups: A list of Group objects representing the security groups associated with launched instances. :ivar instances: A list of Instance objects launched in this Reservation. cCs>tt|i|d|_d|_g|_g|_dS(N(tsuperRR Rtidtowner_idtgroupst instances(R R((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR |s    cCs d|iS(NsReservation:%s(R!(R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR scCsb|djo tdtfg|_|iS|djo tdtfg|_|iSdSdS(Nt instancesSettitemtgroupSet(RtInstanceR$RR#R(R R RR((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRs  cCsH|djo ||_n+|djo ||_nt|||dS(Nt reservationIdtownerId(R!R"R(R R RR((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRs     cCs(x!|iD]}|id|q WdS(Ntdry_run(R$tstop(R R+tinstance((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytstop_alls N( RRRRR R RRtFalseR.(((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRqs     R(cBs[eZdZddZdZedZedZedZ edZ edZ edZ ed Z d Zd Zd Zeed ZedZeedZedZedZedZedZedZedZedZedZedZedZdeedZRS(s Represents an instance. :ivar id: The unique ID of the Instance. :ivar groups: A list of Group objects representing the security groups associated with the instance. :ivar public_dns_name: The public dns name of the instance. :ivar private_dns_name: The private dns name of the instance. :ivar state: The string representation of the instance's current state. :ivar state_code: An integer representation of the instance's current state. :ivar previous_state: The string representation of the instance's previous state. :ivar previous_state_code: An integer representation of the instance's current state. :ivar key_name: The name of the SSH key associated with the instance. :ivar instance_type: The type of instance (e.g. m1.small). :ivar launch_time: The time the instance was launched. :ivar image_id: The ID of the AMI used to launch this instance. :ivar placement: The availability zone in which the instance is running. :ivar placement_group: The name of the placement group the instance is in (for cluster compute instances). :ivar placement_tenancy: The tenancy of the instance, if the instance is running within a VPC. An instance with a tenancy of dedicated runs on a single-tenant hardware. :ivar kernel: The kernel associated with the instance. :ivar ramdisk: The ramdisk associated with the instance. :ivar architecture: The architecture of the image (i386|x86_64). :ivar hypervisor: The hypervisor used. :ivar virtualization_type: The type of virtualization used. :ivar product_codes: A list of product codes associated with this instance. :ivar ami_launch_index: This instances position within it's launch group. :ivar monitored: A boolean indicating whether monitoring is enabled or not. :ivar monitoring_state: A string value that contains the actual value of the monitoring element returned by EC2. :ivar spot_instance_request_id: The ID of the spot instance request if this is a spot instance. :ivar subnet_id: The VPC Subnet ID, if running in VPC. :ivar vpc_id: The VPC ID, if running in VPC. :ivar private_ip_address: The private IP address of the instance. :ivar ip_address: The public IP address of the instance. :ivar platform: Platform of the instance (e.g. Windows) :ivar root_device_name: The name of the root device. :ivar root_device_type: The root device type (ebs|instance-store). :ivar block_device_mapping: The Block Device Mapping for the instance. :ivar state_reason: The reason for the most recent state transition. :ivar groups: List of security Groups associated with the instance. :ivar interfaces: List of Elastic Network Interfaces associated with this instance. :ivar ebs_optimized: Whether instance is using optimized EBS volumes or not. :ivar instance_profile: A Python dict containing the instance profile id and arn associated with this instance. cCstt|i|d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ t|_d|_t|_d|_d|_d|_d|_d|_d|_d|_t|_t|_d|_d|_d|_d|_d|_ d|_!d|_"g|_#d|_$g|_%d|_&d|_'d|_(d|_)d|_*t+|_,t-|_.dS(N(/R R(R RR!tdns_nametpublic_dns_nametprivate_dns_nametkey_namet instance_typet launch_timetimage_idtkerneltramdiskRt product_codestami_launch_indexR/t monitoredtmonitoring_statetspot_instance_request_idt subnet_idtvpc_idtprivate_ip_addresst ip_addresst requester_idt_in_monitoring_elementt persistenttroot_device_nametroot_device_typetblock_device_mappingt state_reasonRt client_tokent eventsSetR#tplatformt interfacest hypervisortvirtualization_typet architecturetinstance_profilet_previous_stateRt_stateRt _placement(R R((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR sP                                      cCs d|iS(Ns Instance:%s(R!(R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR scCs |iiS(N(RRR (R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytstatescCs |iiS(N(RRR (R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyt state_codescCs|io |iiSdS(N(RQR R(R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytprevious_state s  cCs|io |iiSdS(Ni(RQR (R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytprevious_state_codes  cCs |iiS(N(RSR(R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyt placementscCs |iiS(N(RSR(R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytplacement_groupscCs |iiS(N(RSR(R ((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytplacement_tenancyscCstt|i|||}|dj o|S|djo t|_n]|djot|_|iS|djo|iS|djot d|_ |i S|djo t dt fg|_ |i S|djot d|_|iS|djo t dtfg|_|iS|d jot d |_|iS|d jo|iS|d jot|_|iS|d jo|iS|d jo|iSdS(Nt monitoringtblockDeviceMappingt productCodest stateReasonR'R&RJtnetworkInterfaceSettiamInstanceProfilet currentStatet previousStatet instanceStateRX(R R(RRtTrueRCRRGR9tSubParseRHRRR#RJRRLRPRRRRQRS(R R RRtretval((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR"sF                cCs{|djo ||_n^|djo ||_nD|djp |djo||_||_n|djo ||_n|djo ||_n|djo ||_n|djo ||_n|d jo ||_n|d jo ||_ nx|d jo ||_ n^|d jo ||_ nD|d jo ||_ n*|djo ||_ n|djo ||_n|djo>|io0||_|djo t|_nt|_qwn|djo ||_n|djo ||_nw|djo ||_n]|djo ||_nC|djo ||_n)|djo ||_n|djo'|djo t|_qwt|_n|djo|io ||_qwn|djo ||_n|djo ||_n|djo ||_ne|djo ||_nK|djo ||_ n1|d jo|dj|_!nt"|||dS(!Nt instanceIdtimageIdtdnsNamet publicDnsNametprivateDnsNametkeyNametamiLaunchIndexRbt instanceTypetrootDeviceNametrootDeviceTypet launchTimeRKtkernelIdt ramdiskIdRTtenabledtspotInstanceRequestIdtsubnetIdtvpcIdtprivateIpAddresst ipAddresst requesterIdRDttrueRt clientTokenRJRMtvirtualizationTypeROt ebsOptimized(#R!R6R0R1R2R3R:RVR4RERFR5RKR7R8RCR<RdR;R/R=R>R?R@RARBRDRRIteventsRMRNROt ebs_optimizedR(R R RR((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRGs                                                              cCs|ii|idS(N(t__dict__tupdate(R tupdated((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyt_updatescCs|ii|igd|}t|djoF|d}xW|iD]*}|i|ijo|i|qEqEWn|otd|in|iS(s Update the instance's state information by making a call to fetch the current instance attributes from the service. :type validate: bool :param validate: By default, if EC2 returns no data about the instance the update method returns quietly. If the validate param is True, however, it will raise a ValueError exception if no data is returned from EC2. R+is%s is not a valid Instance ID(Rtget_all_reservationsR!tlenR$Rt ValueErrorRT(R tvalidateR+trstrti((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRs   cCsJ|ii|igd|}t|djo|i|dndS(s( Terminate the instance R+iN(Rtterminate_instancesR!RR(R R+R((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyt terminatescCsM|ii|ig|d|}t|djo|i|dndS(s Stop the instance :type force: bool :param force: Forces the instance to stop :rtype: list :return: A list of the instances stopped R+iN(Rtstop_instancesR!RR(R tforceR+R((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR,s !cCsJ|ii|igd|}t|djo|i|dndS(s% Start the instance. R+iN(Rtstart_instancesR!RR(R R+R((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytstartscCs|ii|igd|S(NR+(Rtreboot_instancesR!(R R+((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytrebootscCs|ii|id|S(s Retrieves the console output for the instance. :rtype: :class:`boto.ec2.instance.ConsoleOutput` :return: The console output as a ConsoleOutput object R+(Rtget_console_outputR!(R R+((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRscCs|ii|i|d|S(NR+(Rtconfirm_product_instanceR!(R t product_codeR+((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytconfirm_products cCs9t|to |i}n|ii|i|d|S(s7 Associates an Elastic IP to the instance. :type ip_address: Either an instance of :class:`boto.ec2.address.Address` or a string. :param ip_address: The IP address to associate with the instance. :rtype: bool :return: True if successful R+(t isinstanceRt public_ipRtassociate_addressR!(R RAR+((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytuse_ips   cCs|ii|id|S(NR+(Rtmonitor_instanceR!(R R+((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytmonitorscCs|ii|id|S(NR+(Rtunmonitor_instanceR!(R R+((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyt unmonitorscCs|ii|i|d|S(s Gets an attribute from this instance. :type attribute: string :param attribute: The attribute you need information about Valid choices are: * instanceType * kernel * ramdisk * userData * disableApiTermination * instanceInitiatedShutdownBehavior * rootDeviceName * blockDeviceMapping * productCodes * sourceDestCheck * groupSet * ebsOptimized :rtype: :class:`boto.ec2.image.InstanceAttribute` :return: An InstanceAttribute object representing the value of the attribute requested R+(Rtget_instance_attributeR!(R t attributeR+((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyt get_attributes cCs|ii|i||d|S(s Changes an attribute of this instance :type attribute: string :param attribute: The attribute you wish to change. * instanceType - A valid instance type (m1.small) * kernel - Kernel ID (None) * ramdisk - Ramdisk ID (None) * userData - Base64 encoded String (None) * disableApiTermination - Boolean (true) * instanceInitiatedShutdownBehavior - stop|terminate * sourceDestCheck - Boolean (true) * groupSet - Set of Security Groups or IDs * ebsOptimized - Boolean (false) :type value: string :param value: The new value for the attribute :rtype: bool :return: Whether the operation succeeded or not R+(Rtmodify_instance_attributeR!(R RRR+((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytmodify_attributes  cCs|ii|i|d|S(s( Resets an attribute of this instance to its default value. :type attribute: string :param attribute: The attribute to reset. Valid values are: kernel|ramdisk :rtype: bool :return: Whether the operation succeeded or not R+(Rtreset_instance_attributeR!(R RR+((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pytreset_attribute0s cCs"|ii|i|||d|S(s Will create an AMI from the instance in the running or stopped state. :type name: string :param name: The name of the new image :type description: string :param description: An optional human-readable string describing the contents and purpose of the AMI. :type no_reboot: bool :param no_reboot: An optional flag indicating that the bundling process should not attempt to shutdown the instance before bundling. If this flag is True, the responsibility of maintaining file system integrity is left to the owner of the instance. :rtype: string :return: The new image id R+(Rt create_imageR!(R R t descriptiont no_rebootR+((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRAs  N( RRRRR R tpropertyRTRURVRWRXRYRZRRRR/RRR,RRRRRRRRRRR(((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR(s86 *  % G           t ConsoleOutputcBs&eZddZdZdZRS(cCs(||_d|_d|_d|_dS(N(tparentRt instance_idt timestamptoutput(R R((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR bs   cCsdS(N(R(R R RR((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRhscCsk|djo ||_nN|djo ||_n4|djoti||_nt|||dS(NRgRR(RRtbase64t b64decodeRR(R R RR((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRks     N(RRRR RR(((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRas  tInstanceAttributec BsJeZdddddddddd g Zd d Zd Zd ZRS(RnR7R8tuserDatatdisableApiTerminationt!instanceInitiatedShutdownBehaviorRoR\tsourceDestCheckR'cCs,ti|d|_d|_d|_dS(N(tdictR RRt request_idt_current_value(R R((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyR }s   cCsZ|djot||<||S|djo"tdtfg||<||SdSdS(NR\R'R&(RRRR(R R RR((s5/usr/lib/python2.6/site-packages/boto/ec2/instance.pyRs     cCs|djo ||_n|djo ||_nj|djo;|djo t}n|djo t}n||_n"||ijo|i||s"  *!,&