options as passed to defineFunction
app root, event token keys and function defaults
options with functionName, eventType and endpointsRootAbs set and defaults applied
Error when eventType must be derived but the caller isn't under functions/<eventType>/ of a known event type (measured from appRootAbs, or from the caller's own path when the app config is bundled into the function); when a derived HTTP eventType's method or base path can't be derived; or when a name style needs segments the caller can't provide
Resolve options passed to
defineFunctioninto the stored config.Fields not derived or defaulted here are carried over unchanged, so a new DefineFunctionOptions field needs no change in this function.