ó ¡ôXc@sZddlmZddlmZddlmZddlmZdefd„ƒYZdS(iÿÿÿÿ(tArg(t ArgumentError(tec2_block_device_mapping(t EC2Requestt RegisterImagecBsjeZdZedddddddƒedd d d d edd ƒeddd dddƒeddd ddd>ddƒedd dddddƒedd ddd dd!ƒed"d d#dd$dd%ƒed&d'd(d?dd)ƒed*d+dd,d d-d.d/d0ed1gdd2ƒed3d d4dd@dd7ƒed8d d9dd:ddAdd;ƒg Zd<„Zd=„Z RS(BsRegister a new imaget ImageLocationtmetavartMANIFESTtnargst?thelpsalocation of the image manifest in S3 storage (required for instance-store images)s-ns--nametdesttNametrequireds name of the new image (required)s-ds --descriptiont Descriptionsdescription of the new images-as--architecturet Architecturetchoicesti386tx86_64tarmhfs!CPU architecture of the new images--kerneltKernelIdtKERNELs0ID of the kernel to associate with the new images --ramdiskt RamdiskIdtRAMDISKs1ID of the ramdisk to associate with the new images--root-device-nametRootDeviceNametDEVICEs%root device name (default: /dev/sda1)s-ss --snapshottroute_tos#snapshot to use for the root devices-bs--block-device-mappings DEVICE=MAPPEDtBlockDeviceMappingtactiontappendttypetdefaultsßdefine a block device mapping for the image, in the form DEVICE=MAPPED, where "MAPPED" is "none", "ephemeral(0-3)", or "[SNAP-ID]:[GiB]:[true|false]:[standard|VOLTYPE[:IOPS]]"s--virtualization-typetVirtualizationTypet paravirtualthvms%virtualization type for the new images --platformtPlatformtwindowss/[Privileged] the new image's platform (windows)cCsO|jjdƒrW|jjdƒr3tdƒ‚n|jjdƒrKtdƒ‚qKnô|jjdƒsyd|jds