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.1.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.1 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0.rc11 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0.rc10 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0.rc9 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0.rc8 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0.rc7 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0.rc6 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0.rc5 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0.rc4 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0.rc3 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0.rc2 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb
aws-sdk-machinelearning-1.0.0.rc1 lib/aws-sdk-machinelearning/plugins/predict_endpoint.rb