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.632 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.631 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.630 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.629 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.628 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.627 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.626 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.625 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.624 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.623 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.622 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.621 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.620 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.619 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.618 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.617 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.616 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.615 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.614 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb
aws-sdk-core-2.11.613 lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb