Sha256: d1d93118375ba60fe378cc76a12548992344b4130c2e25bc3196bffe28e13b22

Contents?: true

Size: 1.21 KB

Versions: 103

Compression:

Stored size: 1.21 KB

Contents

module Fog
  module Compute
    class AWS
      class Real

        require 'fog/aws/parsers/compute/cancel_spot_instance_requests'

        # Terminate specified spot instance requests
        #
        # ==== Parameters
        # * spot_instance_request_id<~Array> - Ids of instances to terminates
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'requestId'<~String> id of request
        #     * 'spotInstanceRequestSet'<~Array>:
        #       * 'spotInstanceRequestId'<~String> - id of cancelled spot instance
        #       * 'state'<~String> - state of cancelled spot instance
        #
        # {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CancelSpotInstanceRequests.html]
        def cancel_spot_instance_requests(spot_instance_request_id)
          params = Fog::AWS.indexed_param('SpotInstanceRequestId', spot_instance_request_id)
          request({
            'Action'    => 'CancelSpotInstanceRequests',
            :idempotent => true,
            :parser     => Fog::Parsers::Compute::AWS::CancelSpotInstanceRequests.new
          }.merge!(params))
        end

      end
    end
  end
end

Version data entries

103 entries across 103 versions & 17 rubygems

Version Path
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-1.3.1 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-1.3.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-1.2.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
ktheory-fog-1.1.2 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-1.1.2 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog_tractical-1.1.4 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog_tractical-1.1.3 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-1.1.1 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-1.1.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
tag-fog-1.0.1 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb