Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/boto/ec2/__pycache__/ |
Upload File : |
o ckF[� � @ s0 d Z ddlmZ ddlmZ G dd� de�ZdS )z7 Represents an EC2 Spot Instance Datafeed Subscription � )� EC2Object)�SpotInstanceStateFaultc sD e Zd Z d � fdd� Zdd� Zdd� Zdd � Zddd�Z� ZS )�SpotDatafeedSubscriptionNc s2 t t| ��|� || _|| _|| _|| _|| _d S )N)�superr �__init__�owner_id�bucket�prefix�state�fault)�self� connectionr r r r r �� __class__� �C/usr/lib/python3/dist-packages/boto/ec2/spotdatafeedsubscription.pyr s z!SpotDatafeedSubscription.__init__c C s d| j S )NzSpotDatafeedSubscription:%s)r )r r r r �__repr__( s z!SpotDatafeedSubscription.__repr__c C s |dkrt � | _| jS d S )Nr )r r )r �name�attrsr r r r �startElement+ s z%SpotDatafeedSubscription.startElementc C sX |dkr || _ d S |dkr|| _d S |dkr|| _d S |dkr$|| _d S t| ||� d S )N�ownerIdr r r )r r r r �setattr)r r �valuer r r r � endElement2 s z#SpotDatafeedSubscription.endElementFc C s | j j|d�S )N)�dry_run)r �!delete_spot_datafeed_subscription)r r r r r �delete>