ó FRTc@sldZddlmZddlmZdefd„ƒYZdefd„ƒYZdefd „ƒYZd S( s) Represents an EC2 Spot Instance Request iÿÿÿÿ(tTaggedEC2Object(tLaunchSpecificationtSpotInstanceStateFaultcBs8eZdZddd„Zd„Zd„Zd„ZRS(sÈ The fault codes for the Spot Instance request, if any. :ivar code: The reason code for the Spot Instance state change. :ivar message: The message for the Spot Instance state change. cCs||_||_dS(N(tcodetmessage(tselfRR((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyt__init__'s cCsd|j|jfS(Ns(%s, %s)(RR(R((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyt__repr__+scCsdS(N(tNone(Rtnametattrst connection((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyt startElement.scCsD|dkr||_n|dkr0||_nt|||ƒdS(NRR(RRtsetattr(RR tvalueR ((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyt endElement1s     N(t__name__t __module__t__doc__RRRR R(((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyRs   tSpotInstanceStatuscBs;eZdZdddd„Zd„Zd„Zd„ZRS(sæ Contains the status of a Spot Instance Request. :ivar code: Status code of the request. :ivar message: The description for the status code for the Spot request. :ivar update_time: Time the status was stated. cCs||_||_||_dS(N(Rt update_timeR(RRRR((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyRBs  cCs d|jS(Ns (R(R((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyRGscCsdS(N(R(RR R R ((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyR JscCsL|dkr||_n0|dkr0||_n|dkrH||_ndS(NRRt updateTime(RRR(RR RR ((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyRMs      N(RRRRRRR R(((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyR9s   tSpotInstanceRequestcBsAeZdZdd„Zd„Zd„Zd„Zed„Z RS(s :ivar id: The ID of the Spot Instance Request. :ivar price: The maximum hourly price for any Spot Instance launched to fulfill the request. :ivar type: The Spot Instance request type. :ivar state: The state of the Spot Instance request. :ivar fault: The fault codes for the Spot Instance request, if any. :ivar valid_from: The start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled. :ivar valid_until: The end date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached. :ivar launch_group: The instance launch group. Launch groups are Spot Instances that launch together and terminate together. :ivar launched_availability_zone: foo :ivar product_description: The Availability Zone in which the bid is launched. :ivar availability_zone_group: The Availability Zone group. If you specify the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone. :ivar create_time: The time stamp when the Spot Instance request was created. :ivar launch_specification: Additional information for launching instances. :ivar instance_id: The instance ID, if an instance has been launched to fulfill the Spot Instance request. :ivar status: The status code and status message describing the Spot Instance request. cCs¡tt|ƒj|ƒd|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_dS(N(tsuperRRRtidtpricettypetstatetfaultt valid_fromt valid_untilt launch_grouptlaunched_availability_zonetproduct_descriptiontavailability_zone_groupt create_timetlaunch_specificationt instance_idtstatus(RR ((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyRzs               cCs d|jS(NsSpotInstanceRequest:%s(R(R((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyRŒscCs–tt|ƒj|||ƒ}|dk r.|S|dkrPt|ƒ|_|jS|dkrotƒ|_|jS|dkrŽtƒ|_ |j SdSdS(NtlaunchSpecificationRR&( RRR RRR$RRRR&(RR R R tretval((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyR s       cCs:|dkr||_n|dkr6t|ƒ|_n|dkrN||_nè|dkrf||_nÐ|dkr~||_n¸|dkr–||_n |dkr®||_nˆ|dkrÆ||_np|d krÞ||_ nX|d krö||_ n@|d kr||_ n(|d kr&||_ nt |||ƒdS( NtspotInstanceRequestIdt spotPriceRRt validFromt validUntilt launchGrouptavailabilityZoneGrouptlaunchedAvailabilityZonet instanceIdt createTimetproductDescription(RtfloatRRRRRRR"R R%R#R!R (RR RR ((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyR s2                       cCs |jj|jgd|ƒdS(Ntdry_run(R tcancel_spot_instance_requestsR(RR4((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pytcancel¼s  N( RRRRRRR RtFalseR6(((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyRVs "    N( Rtboto.ec2.ec2objectRtboto.ec2.launchspecificationRtobjectRRR(((sI/opt/freeware/lib/python2.7/site-packages/boto/ec2/spotinstancerequest.pyts