MCPcopy Index your code
hub / github.com/zappa/Zappa / get_function_from_bot_intent_trigger

Method get_function_from_bot_intent_trigger

zappa/handler.py:665–673  ·  view source on GitHub ↗

For the given event build ARN and return the configured function

(self, event)

Source from the content-addressed store, hash-verified

663 return None
664
665 def get_function_from_bot_intent_trigger(self, event):
666 """
667 For the given event build ARN and return the configured function
668 """
669 intent = event.get("currentIntent")
670 if intent:
671 intent = intent.get("name")
672 if intent:
673 return self.settings.AWS_BOT_EVENT_MAPPING.get("{}:{}".format(intent, event.get("invocationSource")))
674
675 def get_function_for_cognito_trigger(self, trigger):
676 """

Callers 1

handlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected