class Cloudkeeper::Aws::FilterHelper

Class used for generating filter structures used by AWS .describe_tags

Constants

TAG_APPLIANCE_IDENTIFIER
TAG_APPLIANCE_IMAGE_LIST_IDENTIFIER
TAG_CLOUDKEEPER_IDENTIFIER

Public Class Methods

all_image_lists() click to toggle source
# File lib/cloudkeeper/aws/filter_helper.rb, line 9
def self.all_image_lists
  [{ name: 'tag-key', values: [TAG_APPLIANCE_IMAGE_LIST_IDENTIFIER] }] + cloudkeeper_instance
end
appliance(identifier) click to toggle source
# File lib/cloudkeeper/aws/filter_helper.rb, line 18
def self.appliance(identifier)
  [{ name: "tag:#{TAG_APPLIANCE_IDENTIFIER}",
     values: [identifier] }] + cloudkeeper_instance
end
cloudkeeper_instance() click to toggle source
# File lib/cloudkeeper/aws/filter_helper.rb, line 27
def self.cloudkeeper_instance
  [{ name: "tag:#{TAG_CLOUDKEEPER_IDENTIFIER}",
     values: [Cloudkeeper::Aws::Settings['identifier']] }]
end
image(image_id) click to toggle source
# File lib/cloudkeeper/aws/filter_helper.rb, line 23
def self.image(image_id)
  [{ name: 'image-id', values: [image_id] }] + cloudkeeper_instance
end
image_list(image_list_identifier) click to toggle source
# File lib/cloudkeeper/aws/filter_helper.rb, line 13
def self.image_list(image_list_identifier)
  [{ name: "tag:#{TAG_APPLIANCE_IMAGE_LIST_IDENTIFIER}",
     values: [image_list_identifier] }] + cloudkeeper_instance
end