https://t.me/RX1948
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/autoscale/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/ec2/autoscale/__pycache__/launchconfig.cpython-310.pyc
o

ckF[7*�@sxddlmZddlmZddlmZddlZddl	Z	Gdd�de
�ZGdd�de
�ZGd	d
�d
e
�ZGdd�de
�Z
dS)
�)�ListElement)�BlockDeviceMapping)�	ResultSetNc@s.eZdZd
dd�Zdd�Zdd�Zdd	�ZdS)�EbsNcCs||_||_||_dS�N)�
connection�snapshot_id�volume_size)�selfrrr	�r�A/usr/lib/python3/dist-packages/boto/ec2/autoscale/launchconfig.py�__init__"s
zEbs.__init__cC�d|j|jfS)NzEbs(%s, %s)�rr	�r
rrr�__repr__'szEbs.__repr__cC�dSrr�r
�name�attrsrrrr�startElement*�zEbs.startElementcCs(|dkr	||_dS|dkr||_dSdS)N�
SnapshotId�
VolumeSizer�r
r�valuerrrr�
endElement-s


�zEbs.endElement)NNN��__name__�
__module__�__qualname__r
rrrrrrrr!s

rc@s.eZdZddd�Zdd�Zdd�Zd	d
�ZdS)�InstanceMonitoringN�falsecCs||_||_dSr)r�enabled)r
rr#rrrr
5s
zInstanceMonitoring.__init__cC�
d|jS)NzInstanceMonitoring(%s)�r#rrrrr9�
zInstanceMonitoring.__repr__cCrrrrrrrr<rzInstanceMonitoring.startElementcCs|dkr	||_dSdS)N�Enabledr%rrrrr?s
�zInstanceMonitoring.endElement)Nr"rrrrrr!4s

r!c@s2eZdZ		d
dd�Zdd�Zdd�Zdd	�ZdS)rNcCs"||_||_||_||_||_dSr)r�device_name�virtual_name�ebs�	no_device)r
rr(r)r*r+rrrr
Hs

zBlockDeviceMapping.__init__cCr)NzBlockDeviceMapping(%s, %s))r(r)rrrrrPs�zBlockDeviceMapping.__repr__cCs|dkrt|�|_|jSdS)Nr)rr*rrrrrTs
�zBlockDeviceMapping.startElementcCs>|dkr	||_dS|dkr||_dS|dkrt|�|_dSdS)N�
DeviceName�VirtualName�NoDevice)r(r)�boolr+rrrrrYs

�zBlockDeviceMapping.endElement)NNNNNrrrrrrGs
�rc@sJeZdZ										ddd�Zdd�Zd	d
�Zdd�Zd
d�ZdS)�LaunchConfigurationN�m1.smallFTcCs�||_||_||_|
|_||_|pg}t|�|_||_|	|_d|_	||_
||_d|_	||_||_
|
|_d|_||_||_||_||_||_||_||_|pNg}t|�|_|dur^|j|_dSdS)al	
        A launch configuration.

        :type name: str
        :param name: Name of the launch configuration to create.

        :type image_id: str
        :param image_id: Unique ID of the Amazon Machine Image (AMI) which was
            assigned during registration.

        :type key_name: str
        :param key_name: The name of the EC2 key pair.

        :type security_groups: list
        :param security_groups: Names or security group id's of the security
            groups with which to associate the EC2 instances or VPC instances,
            respectively.

        :type user_data: str
        :param user_data: The user data available to launched EC2 instances.

        :type instance_type: str
        :param instance_type: The instance type

        :type kernel_id: str
        :param kernel_id: Kernel id for instance

        :type ramdisk_id: str
        :param ramdisk_id: RAM disk id for instance

        :type block_device_mappings: list
        :param block_device_mappings: Specifies how block devices are exposed
            for instances

        :type instance_monitoring: bool
        :param instance_monitoring: Whether instances in group are launched
            with detailed monitoring.

        :type spot_price: float
        :param spot_price: The spot price you are bidding.  Only applies
            if you are building an autoscaling group with spot instances.

        :type instance_profile_name: string
        :param instance_profile_name: The name or the Amazon Resource
            Name (ARN) of the instance profile associated with the IAM
            role for the instance.

        :type ebs_optimized: bool
        :param ebs_optimized: Specifies whether the instance is optimized
            for EBS I/O (true) or not (false).


        :type associate_public_ip_address: bool
        :param associate_public_ip_address: Used for Auto Scaling groups that launch instances into an Amazon Virtual Private Cloud.
            Specifies whether to assign a public IP address to each instance launched in a Amazon VPC.

        :type classic_link_vpc_id: str
        :param classic_link_vpc_id: ID of ClassicLink enabled VPC.

        :type classic_link_vpc_security_groups: list
        :param classic_link_vpc_security_groups: Security group
            id's of the security groups with which to associate the
            ClassicLink VPC instances.
        N)rr�
instance_type�block_device_mappings�key_namer�security_groups�image_id�
ramdisk_id�created_time�	kernel_id�	user_data�instance_monitoring�
spot_price�instance_profile_name�launch_configuration_arn�
ebs_optimized�associate_public_ip_address�volume_type�delete_on_termination�iops�use_block_device_types�classic_link_vpc_id� classic_link_vpc_security_groups)r
rrr6r4r5r:r2r9r7r3r;r<r=r?r@rArBrCrDrErF�
sec_groups�classic_link_vpc_sec_groupsrrrr
cs<J
��zLaunchConfiguration.__init__cCr$)NzLaunchConfiguration:%s)rrrrrr�r&zLaunchConfiguration.__repr__cCsj|dkr|jS|dkr|jS|dkr'|jrt�|_|jStdtfg�|_|jS|dkr3t|�|_|jSdS)N�SecurityGroups�ClassicLinkVPCSecurityGroups�BlockDeviceMappings�memberr!)	r5rFrD�BDMr3rrr!r;rrrrr�s�
�z LaunchConfiguration.startElementcCs�|dkr	||_dS|dkr||_dS|dkr||_dS|dkr$||_dS|dkr1tj�|�|_dS|dkr:||_dS|dkrC||_	dS|dkr^z	t
�|�|_WdSt
y]||_YdSw|d	krg||_dS|d
krp||_dS|dkr{t|�|_dS|dkr�||_dS|d
kr�|��dkr�d|_dSd|_dS|dkr�|��dkr�d|_dSd|_dS|dkr�||_dS|dkr�|��dkr�d|_dSd|_dS|dkr�t|�|_dS|dkr�||_dSt|||�dS)N�InstanceType�LaunchConfigurationName�KeyName�ImageId�CreatedTime�KernelId�	RamdiskId�UserData�LaunchConfigurationARNr!�	SpotPrice�IamInstanceProfile�EbsOptimized�trueTF�AssociatePublicIpAddress�
VolumeType�DeleteOnTermination�Iops�ClassicLinkVPCId)r2rr4r6�boto�utils�parse_tsr8r9r7�base64�	b64decoder:�	TypeErrorr>r;�floatr<r=�lowerr?r@rArB�intrCrE�setattrrrrrr�sV





�


  



zLaunchConfiguration.endElementcCs|j�|j�S)z# Delete this launch configuration. )r�delete_launch_configurationrrrrr�deleteszLaunchConfiguration.delete)NNNNNNr1NNNFNNFNNTNFNN)rrr r
rrrrkrrrrr0bs 
�i.r0)�boto.ec2.elb.listelementr�boto.ec2.blockdevicemappingrrM�boto.resultsetr�
boto.utilsr`rc�objectrr!r0rrrr�<module>s

https://t.me/RX1948 - 2025