Sha256: d963959060044ecd87407e35984e183710cd6f02dfe6a943308acd81f29de856

Contents?: true

Size: 1.44 KB

Versions: 103

Compression:

Stored size: 1.44 KB

Contents

module Fog
  module Compute
    class AWS
      class Real

        require 'fog/aws/parsers/compute/spot_datafeed_subscription'

        # Create a spot datafeed subscription
        #
        # ==== Parameters
        # * bucket<~String> - bucket name to store datafeed in
        # * prefix<~String> - prefix to store data with
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'requestId'<~String> - Id of request
        #     * 'spotDatafeedSubscription'<~Hash>:
        #       * 'bucket'<~String> - S3 bucket where data is stored
        #       * 'fault'<~Hash>:
        #         * 'code'<~String> - fault code
        #         * 'reason'<~String> - fault reason
        #       * 'ownerId'<~String> - AWS id of account owner
        #       * 'prefix'<~String> - prefix for datafeed items
        #       * 'state'<~String> - state of datafeed subscription
        #
        # {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateSpotDatafeedSubscription.html]
        def create_spot_datafeed_subscription(bucket, prefix)
          request(
            'Action'    => 'CreateSpotDatafeedSubscription',
            'Bucket'    => bucket,
            'Prefix'    => prefix,
            :idempotent => true,
            :parser     => Fog::Parsers::Compute::AWS::SpotDatafeedSubscription.new
          )
        end

      end
    end
  end
end

Version data entries

103 entries across 103 versions & 17 rubygems

Version Path
fog-maestrodev-1.18.0.20131209090811 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131126122111 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
gapinc-fog-1.12.1.2.1 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-1.18.0 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-1.17.0 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb
fog-1.16.0 lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb