Current File : //lib/python2.7/site-packages/euca2ools/commands/autoscaling/createlaunchconfiguration.pyo
�
��Xc@s�ddlZddlZddlmZmZddlmZddlm	Z	m
Z
mZddlm
Z
de
fd��YZdS(i����N(tArgtMutuallyExclusiveArgList(t
ArgumentError(tdelimited_listtec2_block_device_mappingt
flexible_bool(tAutoScalingRequesttCreateLaunchConfigurationcBs6eZdZeddddd�edddd	dd
dedd�ed
ddddddedd�eddddedddd�eddddddedde�dd�eddddd d!d"dd#�ed$dd%dd&ded�dd'�ed(dd)dd*dd+�ed,dd-dd.dd/�ed0dd1dd2dd3�ed4dd5dd d!d"dd6�ed7dd5dd d!d8dd9�ed:dd;dd<dd=�ed>dd?dd@ddA�eedBdCddDdEdNddF�edGddDdEdNddH�edIdJddKdEdNddL��gZ
dM�ZRS(Os7Create a new auto-scaling instance launch configurationtLaunchConfigurationNametmetavartLAUNCHCONFIGthelps/name of the new launch configuration (required)s-is
--image-idtdesttImageIdtIMAGEtrequireds-machine image to use for instances (required)s-ts--instance-typetInstanceTypetTYPEs.instance type for use for instances (required)s--associate-public-ip-addresstAssociatePublicIpAddressttypes{true,false}sJ[VPC only] whether to
                assign instances public IP addressess--block-device-mappingsBlockDeviceMappings.members#DEVICE1=MAPPED1,DEVICE2=MAPPED2,...t,t	item_types�a comma-separated list of block device mappings for the
                image, in the form DEVICE=MAPPED, where "MAPPED" is "none",
                "ephemeral(0-3)", or "[SNAP-ID]:[GiB]:[true|false]s--ebs-optimizedtEbsOptimizedtactiontstore_consttconstttrues-whether the instance is optimized for EBS I/Os--groupsSecurityGroups.membersGROUP1,GROUP2,...s�a comma-separated list of security groups with which
                to associate instances.  Either all group names or all group
                IDs are allowed, but not both.s--iam-instance-profiletIamInstanceProfiletPROFILEsPARN of the instance profile
                associated with instances' IAM roless--kerneltKernelIdtKERNELs!kernel image to use for instancess--keytKeyNametKEYPAIRs)name of the key pair to use for instancess--monitoring-enabledsInstanceMonitoring.Enableds/enable detailed monitoring (enabled by default)s--monitoring-disabledtfalses0disable detailed monitoring (enabled by default)s	--ramdiskt	RamdiskIdtRAMDISKs"ramdisk image to use for instancess--spot-pricet	SpotPricetPRICEs4maximum hourly price for any spot instances launcheds-ds--user-datatDATAtroute_tos(user data to make available to instancess--user-data-forcesdsame as -d/--user-data, but without checking if a
                    file by that name exists firsts-fs--user-data-filetFILEsLfile containing user data to make available to
                    instancescCs�tj|�|jjd�rgtjj|jd�rGtd��q�tj	|jd�|j
d<n|jjd�r�tj	|jd�|j
d<nM|jjd�r�t|jd��#}tj	|j��|j
d<WdQXndS(Nt	user_datas�argument -d/--user-data: to pass the contents of a file as user data, use -f/--user-data-file.  To pass the literal value '{0}' as user data even though it matches the name of a file, use --user-data-force.tUserDatatuser_data_forcetuser_data_file(
Rt	configuretargstgettostpathtisfileRtbase64t	b64encodetparamstopentread(tselfR,((s\/usr/lib/python2.7/site-packages/euca2ools/commands/autoscaling/createlaunchconfiguration.pyR-^s
N(t__name__t
__module__tDESCRIPTIONRtTrueRRRRtNonetARGSR-(((s\/usr/lib/python2.7/site-packages/euca2ools/commands/autoscaling/createlaunchconfiguration.pyR&s`	(R3tos.pathR0trequestbuilderRRtrequestbuilder.exceptionsRteuca2ools.commands.argtypesRRRteuca2ools.commands.autoscalingRR(((s\/usr/lib/python2.7/site-packages/euca2ools/commands/autoscaling/createlaunchconfiguration.pyt<module>s