Class: Aws::S3::Plugins::BucketNameRestrictions::Handler Private

Inherits:
Seahorse::Client::Handler
  • Object
show all
Defined in:
lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#call(context) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
11
12
13
14
# File 'lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb', line 8

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