https://pulumi.com logo
#general
Title
# general
h

happy-parrot-60128

10/21/2019, 10:55 AM
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

tall-librarian-49374

10/21/2019, 11:29 AM
How do you currently use
Callback
without
CallbackFunction
?
h

happy-parrot-60128

10/21/2019, 1:27 PM
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

tall-librarian-49374

10/21/2019, 1:32 PM
Thanks! I think you are right and you'd have to convert to
CallbackFunction
to change the runtime.