lib/ec2/right_ec2_images.rb
# Retrieve a list of images by image executable by.
# 
# Accepts a list of images and/or a set of filters as the last parameter.
# 
# Filters: architecture, block-device-mapping.delete-on-termination block-device-mapping.device-name,
# block-device-mapping.snapshot-id, block-device-mapping.volume-size, description, image-id, image-type,
# is-public, kernel-id, manifest-location, name, owner-alias, owner-id, platform, product-code,
# ramdisk-id, root-device-name, root-device-type, state, state-reason-code, state-reason-message,
# tag-key, tag-value, tag:key, virtualization-type
#
#   ec2.describe_images_by_executable_by('522821470517')
#   ec2.describe_images_by_executable_by('self')
#   ec2.describe_images_by_executable_by('all', :filters => { 'architecture' => 'i386' })
#
# P.S. filters: http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/index.html?ApiReference-query-DescribeImages.html
#
Retrieve a list of images by image executable by.
Accepts a list of images and/or a set of filters as the last parameter.






Retrieve a list of images by image executable by . Accepts a list of images and / or a set of filters as the last parameter .
def describe_images_by_executable_by(*list_and_options)
      list, options = AwsUtils::split_items_and_params(list_and_options)
      list          = ['self'] if list.right_blank?
      cache_for     = (list==['self'] && options[:filters].right_blank?) ? :describe_images_by_executable_by : nil
      ec2_describe_images( {'ExecutableBy'=>list}, options, cache_for)
    end
def describe_images_by_executable_by ( * list_and_options ) list , options = AwsUtils :: split_items_and_params ( list_and_options ) list = [ 'self' ] if list . right_blank? cache_for = ( list == [ 'self' ] && options [ :filters ] . right_blank? ) ? :describe_images_by_executable_by : nil ec2_describe_images ( { 'ExecutableBy' => list } , options , cache_for ) end
Retrieve a list of images by image executable by.
Retrieve a list of images by image executable by .
list_and_options
<not_specific>