Join Slack
Powered by
if a function is defined within a queue/topic, how...
# help
j
José Ribeiro
06/09/2021, 7:43 PM
if a function is defined within a queue/topic, how can I recover the function reference from within the queue/topic to use it elsewhere (e.g. in a clouwatch alarm)?
f
Frank
06/09/2021, 7:45 PM
Queue has
consumerFunction
https://docs.serverless-stack.com/constructs/Queue#consumerfunction
Topic has `subscribers`
https://docs.serverless-stack.com/constructs/Topic#subscribers
Frank
06/09/2021, 7:45 PM
Every construct has something similar
j
José Ribeiro
06/09/2021, 7:46 PM
ah amazing, thanks! Sorry, should’ve read the docs first 🤦♂️
2
Views
Open in Slack
Previous
Next