Sha256: 0b55437d657e437926202f36d4f6da3c5ad8cd37a38f6c05a44f3f30563a5ad3

Contents?: true

Size: 859 Bytes

Versions: 46

Compression:

Stored size: 859 Bytes

Contents

# frozen_string_literal: true

module Aws
  module S3Control
    module Plugins
      # Deprecated in favor of new endpoint generation.
      # @api private
      class Dualstack < Seahorse::Client::Plugin
        def add_handlers(handlers, _config)
          handlers.add(OptionHandler, step: :initialize)
        end

        # @api private
        class OptionHandler < Seahorse::Client::Handler
          def call(context)
            # Support client configuration and per-operation configuration
            if context.params.is_a?(Hash)
              dualstack = context.params.delete(:use_dualstack_endpoint)
            end
            dualstack = context.config.use_dualstack_endpoint if dualstack.nil?
            context[:use_dualstack_endpoint] = dualstack
            @handler.call(context)
          end
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
aws-sdk-s3control-1.100.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.99.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.98.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.97.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.96.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.95.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.94.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.93.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.92.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.91.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.90.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.89.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.88.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.87.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.86.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.85.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.84.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.83.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.81.0 lib/aws-sdk-s3control/plugins/dualstack.rb
aws-sdk-s3control-1.80.0 lib/aws-sdk-s3control/plugins/dualstack.rb