ó ¡ô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|d 6i|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 d dd d edgddƒeddd>ddddƒeddddd?ddƒeddddddd d dgddƒ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|jds