lib/ec2/right_ec2_spot_instances.rb
# Create the data feed for Spot Instances
# (Enables to view Spot Instance usage logs)
#
#  ec2.create_spot_datafeed_subscription('bucket-for-konstantin-eu', 'splogs/') #=>
#    { :owner_id=>"826693181925",
#      :bucket=>"bucket-for-konstantin-eu",
#      :prefix=>"splogs/",
#      :state=>"Active"}
#
Create the data feed for Spot Instances
(Enables to view Spot Instance usage logs)


Create the data feed for Spot Instances ( Enables to view Spot Instance usage logs )
def create_spot_datafeed_subscription(bucket, prefix=nil)
      request_hash = { 'Bucket' => bucket }
      request_hash['Prefix'] = prefix unless prefix.right_blank?
      link = generate_request("CreateSpotDatafeedSubscription", request_hash)
      request_info(link, QEc2DescribeSpotDatafeedSubscriptionParser.new(:logger => @logger))
    end
def create_spot_datafeed_subscription ( bucket , prefix = nil ) request_hash = { 'Bucket' => bucket } request_hash [ 'Prefix' ] = prefix unless prefix . right_blank? link = generate_request ( "CreateSpotDatafeedSubscription" , request_hash ) request_info ( link , QEc2DescribeSpotDatafeedSubscriptionParser . new ( :logger => @logger ) ) end
Create the data feed for Spot Instances
(Enables to view Spot Instance usage logs)
Create the data feed for Spot Instances ( Enables to view Spot Instance usage logs )
bucket
<not_specific>
prefix
<not_specific>