session.New is deprecated: Use NewSession functions to create sessions instead. NewSession has the same functionality as New except an error can be returned when the func is called instead of waiting to receive an error until a request is made.
40
41func invokerFactory(o *Options) Invoker {
42 if o.Config == nil {
43 return lambda.New(session.New()) 44 }
45 return lambda.New(session.Must(session.NewSession(o.Config)))
46}
Description
Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.