class AWS::EC2::VolumeCollection

def create options = {}

Returns:
  • (Volume) -
  • (Volume) - An object representing the new volume.

Options Hash: (**options)
  • :availability_zone (String, AvailabilityZone) --
  • :snapshot_id (String) -- The ID of the snapshot
  • :snapshot (Snapshot) -- The snapshot from which to
  • :size (Integer) -- The size of the volume, in

Parameters:
  • options (Hash) -- Options for creating the volume.
def create options = {}
  if snapshot = options.delete(:snapshot)
    options[:snapshot_id] = snapshot.id
  end
  resp = client.create_volume(options)
  Volume.new_from(:create_volume, resp, resp.volume_id, :config => config)
end