File: //usr/lib/python3/dist-packages/boto/ec2/__pycache__/networkinterface.cpython-310.pyc
o
ckF[5 � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ G dd� de �Z
G dd � d e�ZG d
d� de �ZG dd
� d
e
�ZG dd� de �ZdS )z-
Represents an EC2 Elastic Network Interface
� )�BotoClientError)�TaggedEC2Object)� ResultSet)�Groupc @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�
Attachmenta`
:ivar id: The ID of the attachment.
:ivar instance_id: The ID of the instance.
:ivar device_index: The index of this device.
:ivar status: The status of the device.
:ivar attach_time: The time the device was attached.
:ivar delete_on_termination: Whether the device will be deleted
when the instance is terminated.
c C s. d | _ d | _d | _d| _d | _d | _d| _d S )Nr F)�id�instance_id�instance_owner_id�device_index�status�attach_time�delete_on_termination��self� r �;/usr/lib/python3/dist-packages/boto/ec2/networkinterface.py�__init__+ s
zAttachment.__init__c C �
d| j S )Nz
Attachment:%s�r r r r r �__repr__4 �
zAttachment.__repr__c C � d S �Nr �r �name�attrs�
connectionr r r �startElement7 � zAttachment.startElementc C s� |dkr || _ d S |dkr|| _d S |dkrt|�| _d S |dkr&|| _d S |dkr/|| _d S |dkr8|| _d S |dkrL|�� dkrGd | _d S d
| _d S t | ||� d S )N�attachmentId�
instanceId�deviceIndex�instanceOwnerIdr �
attachTime�deleteOnTermination�trueTF)
r r �intr
r r r �lowerr
�setattr�r r �valuer r r r �
endElement: s"