class Aws::Plugins::S3BucketNameRestrictions::Handler

Public Instance Methods

call(context) click to toggle source
# File lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb, line 7
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