Sha256: 9af8db6573d39ddd4c88d59396956d2f6078be2cf83c1dcbbd64f67281be8e38

Contents?: true

Size: 489 Bytes

Versions: 909

Compression:

Stored size: 489 Bytes

Contents

module Aws
  module Plugins
    # @api private
    class S3BucketNameRestrictions < Seahorse::Client::Plugin
      class Handler < Seahorse::Client::Handler

        def call(context)
          if context.params.key?(:bucket) && context.params[:bucket].include?('/')
            msg = ":bucket option must not contain a forward-slash (/)"
            raise ArgumentError, msg
          end
          @handler.call(context)
        end

      end

      handler(Handler)

    end
  end
end

Version data entries

909 entries across 909 versions & 2 rubygems

Version Path
aws-sdk-core-2.11.572 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.571 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.570 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.569 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.568 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.567 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.566 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.565 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.564 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.563 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.562 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.561 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.560 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.559 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.558 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.557 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.556 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.555 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.554 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.553 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb