Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstanceattribute.pyo
�
��Xc@sLddlZddlmZmZddlmZdefd��YZdS(i����N(tArgtMutuallyExclusiveArgList(t
EC2RequesttDescribeInstanceAttributecBs�eZdZeddddd�eedddd	d
ddd
dd�eddd	d
ddddd�eddd	d
ddddd�edddd	d
ddddd�edddd	d
ddddd�eddd	d
ddddd�ed d!dd	d
ddd"dd#�ed$dd	d
ddd%dd&�ed'dd	d
ddd(dd)�ed*dd	d
ddd+dd,�ed-dd	d
ddd.dd/�ed0dd	d
ddd1dd2��j�gZd
ddgZd3�ZRS(4s^Show one of an instance's attributes.

Note that exactly one attribute may be shown at a time.t
InstanceIdtmetavartINSTANCEthelps.ID of the instance to show info for (required)s-bs--block-device-mappingtdestt	Attributetactiontstore_consttconsttblockDeviceMappingsshow block device mappingss--disable-api-terminationtdisableApiTerminations$show whether termination is disableds--ebs-optimizedtebsOptimizedsIshow whether the root volume
                    is optimized for EBS I/Os-gs
--group-idtgroupSets0show the security groups the instance belongs tos-ps--product-codetproductCodess!show any associated product codess&--instance-initiated-shutdown-behaviort!instanceInitiatedShutdownBehaviorsPshow whether the instance stops or terminates
                    when shut downs-ts--instance-typetinstanceTypesshow the instance's types--kerneltkernelsPshow the ID of the kernel image
                    associated with the instances	--ramdisktramdisksQshow the ID of the ramdisk image
                    associated with the instances--root-device-nametrootDeviceNamesRshow the name of the instance's root device
                    (e.g. '/dev/sda1')s--source-dest-checktsourceDestChecksc[VPC only] show whether source/destination checking
                    is enabled for the instances--user-datatuserDatasshow the instance's user-datacCs-|jddkr�x|jdg�D]Y}|jdi�}|jd|jd�|jd�|jd�|jd�f�GHq&Wn�|jdd	kr�d
�|jd	g�D�}|jd	|jd�dj|�f�GHnH|jdd
kr<d�|jd
g�D�}|jd
|jd�dj|�f�GHn�|jddkr�tj|jdi�jdd��}|r�|jd|jd�f�GH|GHq)|jd|jd�df�GHne|j|jd�}t|t�rd|kr|d}n|j|jd|jd�|f�GHdS(NR	R
tebstBLOCKDEVICEt
deviceNametvolumeIdt
attachTimetdeleteOnTerminationRcss-|]#}|jd�p$|jd�VqdS(tgroupIdt	groupNameN(tget(t.0tgroup((sT/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstanceattribute.pys	<genexpr>^st
instanceIds, Rcss|]}|jd�VqdS(tproductCodeN(R!(R"tcode((sT/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstanceattribute.pys	<genexpr>esRtvaluet(	targsR!ttabifytjointbase64t	b64decodetNonet
isinstancetdict(tselftresulttmappingRtgroupstcodestuserdatatattr((sT/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstanceattribute.pytprint_resultQs8#
(	t__name__t
__module__tDESCRIPTIONRRtrequiredtARGSt	LIST_TAGSR8(((sT/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstanceattribute.pyR!sT(R,trequestbuilderRRteuca2ools.commands.ec2RR(((sT/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describeinstanceattribute.pyt<module>s