Current File : //lib/python2.7/site-packages/euca2ools/commands/ec2/modifyinstanceattribute.pyc
�
��Xc@skddlZddlmZmZmZddlmZddlmZd�Z	defd��YZ
dS(i����N(tArgtEMPTYtMutuallyExclusiveArgList(tb64encoded_file_contents(t
EC2RequestcCs�y|jd�\}}Wn)tk
rDtjdj|���nX|jd�}t|�dks�|ds�|ds�|ddkr�tjd
j||���ni|d6i|dd6d
6S(Nt=sIblock device mapping "{0}" must have form DEVICE=::true or DEVICE=::falset:iiiittruetfalsesCblock device mapping "{0}" must be either {1}=::true or {1}=::falset
DeviceNametDeleteOnTerminationtEbs(RR(tsplitt
ValueErrortargparsetArgumentTypeErrortformattlen(t
map_as_strtdevicetmappingtmapping_bits((sR/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifyinstanceattribute.pyt_min_ec2_block_device_mapping"s
&
tModifyInstanceAttributecBs�eZdZeddddd�eedddd	d
dddd
edgdd�eddd>dddd�eddddd?dd�eddddddd
ddgdd�eddddd@dd"�ed#d$dd%dd&dd'�ed(dd)dd*dd+�ed,dd-dd*dd.�ed/dd0ddAdd1�ed2dd3dd4ddBdd5�ed6dd7dd8dd9�ed:dd7dd;d
edd<��j�gZd=�Z	RS(Cs"Modify an attribute of an instancet
InstanceIdtmetavartINSTANCEthelps'ID of the instance to modify (required)s-bs--block-device-mappingtdesttBlockDeviceMappingtactiontappendsDEVICE=::(true|false)ttypetdefaultstchange whether a volume attached to the instance
                    will be deleted upon the instance's terminations--disable-api-terminationtchoicesRRsDisableApiTermination.ValuesHchange whether
                    or not the instance may be terminateds--ebs-optimizedsEbsOptimized.ValuesVchange whether or not
                    the instance should be optimized for EBS I/Os-gs
--group-idtGroupIdtGROUPsN[VPC only] Change the
                    security group(s) the instance is ins&--instance-initiated-shutdown-behaviors'InstanceInitiatedShutdownBehavior.Valuetstopt	terminates�whether to stop or
                    terminate the EBS instance when it shuts down
                    (instance-store instances are always terminated)s-ts--instance-typesInstanceType.ValuetINSTANCETYPEschange the instance's types--kernelsKernel.ValuetIMAGEs"change the instance's kernel images	--ramdisks
Ramdisk.Values#change the instance's ramdisk images--source-dest-checksSourceDestCheck.ValuesQchange whether
                    source/destination address checking is enableds--sriovsSriovNetSupport.ValuetsimplesSenable enhanced networking for
                    the instance and its descendantss--user-datasUserData.ValuetDATAsLchange the instance's user data (must be
                    base64-encoded)s--user-data-filetFILEsMchange the
                    instance's user data to the contents of a filecCs,|jjd�dkr(t|jd<ndS(NsUserData.Valuet(targstgetRtparams(tself((sR/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifyinstanceattribute.pyt
preprocess_s(struesfalse(struesfalse(sstopR&(struesfalse(R)(
t__name__t
__module__tDESCRIPTIONRRRRtrequiredtARGSR1(((sR/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifyinstanceattribute.pyR3sN	(RtrequestbuilderRRRteuca2ools.commands.argtypesRteuca2ools.commands.ec2RRR(((sR/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifyinstanceattribute.pyt<module>s