File: //usr/lib/python3/dist-packages/boto/ec2/__pycache__/instance.cpython-310.pyc
o
ckF[�[ � @ s� d Z ddlZddlmZmZ ddlmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ dd lmZ ddlZG d
d� de�ZG dd
� d
e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )z
Represents an EC2 Instance
� N)� EC2Object�TaggedEC2Object)� ResultSet)�Address)�BlockDeviceMapping)�ProductCodes)�NetworkInterface)�Groupc @ s2 e Zd ZdZddd�Zdd� Zdd � Zd
d� ZdS )
�
InstanceStatea
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"
r Nc C s || _ || _d S �N)�code�name)�selfr r
� r �3/usr/lib/python3/dist-packages/boto/ec2/instance.py�__init__= s
zInstanceState.__init__c C s d| j | jf S )Nz%s(%d))r
r �r r r r �__repr__A s zInstanceState.__repr__c C � d S r r �r r
�attrs�
connectionr r r �startElementD � zInstanceState.startElementc C s8 |dkrt |�| _d S |dkr|| _d S t| ||� d S )Nr r
)�intr r
�setattr�r r
�valuer r r r �
endElementG s
zInstanceState.endElement)r N��__name__�
__module__�__qualname__�__doc__r r r r r r r r r
&