def _transform_block_device_map(self):

        if self.block_device_map is None:
            return None
        bdm = boto.ec2.blockdevicemapping.BlockDeviceMapping()
        for (k,v) in self.block_device_map.iteritems():
            bdm[k] = boto.ec2.blockdevicemapping.EBSBlockDeviceType()
            bdm[k].size = v['size']
            for prop in [ 'ephemeral_name', 'no_device', 'volume_id',
                'snapshot_id', 'status', 'attach_time', 'delete_on_termination',
                'size', 'volume_type', 'iops', 'encrypted' ]:
                if prop in v:
                    self.log("EBS property: %s => %s" % (prop, v[prop]))
                    setattr(bdm[k], prop, v[prop])
        return bdm

    # --------------------------------------------------------------------------
Reformat the user-friendly device map from striderfile into something boto likes
dataset/ETHPy150Open mpdehaan/strider/lib/strider/virt/ec2.py/EC2._transform_block_device_map