o ckF[Æã@sdGdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZGdd „d eƒZGd d „d eƒZd S) c@s eZdZdZdd„Zdd„ZdS)ÚDetailsz– A dict object that contains name/value pairs which provide more detailed information about the status of the system or the instance. cCódS©N©©ÚselfÚnameÚattrsÚ connectionrrú9/usr/lib/python3/dist-packages/boto/ec2/instancestatus.pyÚ startElement ózDetails.startElementcCs8|dkr ||_dS|dkr|||j<dSt|||ƒdS)NrÚstatus)Ú_nameÚsetattr©rrÚvaluer rrr Ú endElement#s  zDetails.endElementN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrrrr rs rc@ó6eZdZdZ  d dd„Zdd„Zdd„Zd d „ZdS) ÚEventaN A status event for an instance. :ivar code: A string indicating the event type. :ivar description: A string describing the reason for the event. :ivar not_before: A datestring describing the earliest time for the event. :ivar not_after: A datestring describing the latest time for the event. NcCs||_||_||_||_dSr)ÚcodeÚ descriptionÚ not_beforeÚ not_after)rrrrrrrr Ú__init__8s zEvent.__init__cCó d|jS)NzEvent:%s)r©rrrr Ú__repr__?ó zEvent.__repr__cCrrrrrrr r Br zEvent.startElementcCsX|dkr ||_dS|dkr||_dS|dkr||_dS|dkr$||_dSt|||ƒdS)NrrÚ notBeforeÚnotAfter)rrrrrrrrr rEs    zEvent.endElement)NNNN©rrrrrr r rrrrr r,s  ÿ rc@s2eZdZdZd dd„Zdd„Zdd„Zd d „ZdS) ÚStatusz÷ A generic Status object used for system status and instance status. :ivar status: A string indicating overall status. :ivar details: A dict containing name-value pairs which provide more details about the current status. NcCs||_|stƒ}||_dSr)r rÚdetails)rr r&rrr r[s zStatus.__init__cCr)Nz Status:%s)r rrrr r ar!zStatus.__repr__cCs|dkr|jSdS)Nr&)r&rrrr r dszStatus.startElementcCs"|dkr ||_dSt|||ƒdS)Nr )r rrrrr ris zStatus.endElement)NNr$rrrr r%Rs   r%c@seZdZdd„Zdd„ZdS)ÚEventSetcCó |dkrtƒ}| |¡|SdS©NÚitem)rÚappend)rrrr Úeventrrr r ró  zEventSet.startElementcCst|||ƒdSr)rrrrr rzszEventSet.endElementN)rrrr rrrrr r'ps r'c@r) ÚInstanceStatusa% Represents an EC2 Instance status as reported by DescribeInstanceStatus request. :ivar id: The instance identifier. :ivar zone: The availability zone of the instance. :ivar events: A list of events relevant to the instance. :ivar state_code: An integer representing the current state of the instance. :ivar state_name: A string describing the current state of the instance. :ivar system_status: A Status object that reports impaired functionality that stems from issues related to the systems that support an instance, such as such as hardware failures and network connectivity problems. :ivar instance_status: A Status object that reports impaired functionality that arises from problems internal to the instance. NcCs2||_||_||_||_||_tƒ|_tƒ|_dSr)ÚidÚzoneÚeventsÚ state_codeÚ state_namer%Ú system_statusÚinstance_status)rr/r0r1r2r3rrr r’s zInstanceStatus.__init__cCr)NzInstanceStatus:%s)r/rrrr r œr!zInstanceStatus.__repr__cCs6|dkr tƒ|_|jS|dkr|jS|dkr|jSdS)NÚ eventsSetÚ systemStatusÚinstanceStatus)r'r1r4r5rrrr r ŸszInstanceStatus.startElementcCs\|dkr ||_dS|dkr||_dS|dkrt|ƒ|_dS|dkr&||_dSt|||ƒdS)NÚ instanceIdÚavailabilityZonerr)r/r0Úintr2r3rrrrr rªs   zInstanceStatus.endElement)NNNNNr$rrrr r.~s ÿ  r.c@s*eZdZdZd dd„Zdd„Zdd„ZdS) ÚInstanceStatusSetaž A list object that contains the results of a call to DescribeInstanceStatus request. Each element of the list will be an InstanceStatus object. :ivar next_token: If the response was truncated by the EC2 service, the next_token attribute of the object will contain the string that needs to be passed in to the next request to retrieve the next set of results. NcCst |¡||_d|_dSr)Úlistrr Ú next_token)rr rrr rÄs  zInstanceStatusSet.__init__cCr(r))r.r+)rrrr r rrr r Ér-zInstanceStatusSet.startElementcCs|dkr||_t|||ƒdS)NÚ nextToken)r>rrrrr rÑszInstanceStatusSet.endElementr)rrrrrr rrrrr r<·s   r<N) ÚdictrÚobjectrr%r=r'r.r<rrrr Ús &9