Sha256: 93916c0c600b336817abf51de24d58cb9da5783009864cef869d13a6d8e99549

Contents?: true

Size: 484 Bytes

Versions: 34

Compression:

Stored size: 484 Bytes

Contents

module Aws
  module MachineLearning
    module Plugins
      # @api private
      class PredictEndpoint < Seahorse::Client::Plugin

        class Handler < Seahorse::Client::Handler

          def call(context)
            endpoint = context.params.delete(:predict_endpoint)
            context.http_request.endpoint = URI.parse(endpoint.to_s)
            @handler.call(context)
          end

        end

        handle(Handler, operations: [:predict])

      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
aws-sdk-machinelearning-1.21.1 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.20.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.19.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.18.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.17.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.16.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.15.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.14.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.13.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.12.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.11.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.10.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.9.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.8.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.7.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.6.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.5.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.4.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.3.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.2.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb