def create_volume(self, size, zone, snapshot=None):
        if isinstance(zone, Zone):
            zone = zone.name
        params = {'AvailabilityZone' : zone}
        if size:
            params['Size'] = size
        if snapshot:
            if isinstance(snapshot, Snapshot):
                snapshot = snapshot.id
            params['SnapshotId'] = snapshot
        return self.get_object('CreateVolume', params, Volume, verb='POST')
Create a new EBS Volume.
dataset/ETHPy150Open darcyliu/storyboard/boto/ec2/connection.py/EC2Connection.create_volume