class Fog::AWS::Compute::Images

Public Class Methods

new(attributes) click to toggle source
Creates a new Amazon machine image

AWS.images.new

==== Returns

Returns the details of the new image

>> AWS.images.new

<Fog::AWS::Compute::Image
  id=nil,
  architecture=nil,
  block_device_mapping=nil,
  location=nil,
  owner_id=nil,
  state=nil,
  type=nil,
  is_public=nil,
  kernel_id=nil,
  platform=nil,
  product_codes=nil,
  ramdisk_id=nil,
  root_device_type=nil,
  root_device_name=nil,
  tags=nil,
  creation_date=nil,
  ena_support=nil
>
Calls superclass method
# File lib/fog/aws/models/compute/images.rb, line 41
def initialize(attributes)
  self.filters ||= {}
  super
end

Public Instance Methods

all(filters_arg = filters) click to toggle source
# File lib/fog/aws/models/compute/images.rb, line 46
def all(filters_arg = filters)
  filters = filters_arg
  data = service.describe_images(filters).body
  load(data['imagesSet'])
end
get(image_id) click to toggle source
# File lib/fog/aws/models/compute/images.rb, line 52
def get(image_id)
  if image_id
    self.class.new(:service => service).all('image-id' => image_id).first
  end
end