module Aws::ClientStubs

def apply_stubs(operation_name, stubs)

def apply_stubs(operation_name, stubs)
  @stub_mutex.synchronize do
    @stubs[operation_name.to_sym] = stubs.map do |stub|
      case stub
      when Exception then stub
      when String then service_error_class(stub)
      when Hash then new_stub(operation_name, stub)
      else stub
      end
    end
  end
end