# Functions
New returns a new function resource.
# Structs
ErrBadFunctionSignature is returned when the supplied function does not match one of the following:
func () func () error func (TIn) error func () (TOut, error) func (TIn) (TOut, error) func (context.Context) error func (context.Context, TIn) error func (context.Context) (TOut, error) func (context.Context, TIn) (TOut, error)
Where "TIn" and "TOut" are types compatible with the "encoding/json" standard library.
Resource is an SFN resource that calls out to a function.
Result encodes whether the function call should result in calling SendTaskSuccess or SendTaskFailure.