Sha256: ff707ef561f9530e321ea1622c37fea621aac25073297d895b1bf435195793e6

Contents?: true

Size: 1.21 KB

Versions: 50

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

50 entries across 50 versions & 5 rubygems

Version Path
fog-aws-1.2.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-1.1.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-1.0.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.13.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.12.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.11.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.10.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.9.4 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.9.3 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.9.2 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.9.1 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.9.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.8.1 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.8.0 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-aws-0.7.5/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.7.6 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.7.5 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.7.4 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.7.3 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb
fog-aws-0.7.2 lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb