Is the current fix to convert all uses of `Callbac...
# general
h
Is the current fix to convert all uses of
Callback
to
CallbackFunction
? Happy to open an issue to look at changing the default to a supported runtime … no idea where to start with fixing it though 🤷 😬
t
How do you currently use
Callback
without
CallbackFunction
?
h
For example, using the
aws.cloudwatch.EventRuleEventSubscription
you can specify a callback directly rather than creating a CallbackFunction Lambda.
or
onObjectCreated
for an S3 bucket
Callback
is defined as
type Callback<E, R> = (event: E, context: Context, callback: (error?: any, result?: R) => void) => Promise<R> | void
rather than CallbackFunction which extends
LambdaFunction
t
Thanks! I think you are right and you'd have to convert to
CallbackFunction
to change the runtime.