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

Method get_function_for_cognito_trigger

zappa/handler.py:675–685  ·  view source on GitHub ↗

Get the associated function to execute for a cognito trigger

(self, trigger)

Source from the content-addressed store, hash-verified

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 """
677 Get the associated function to execute for a cognito trigger
678 """
679 logger.debug(
680 "get_function_for_cognito_trigger mapping=%s trigger=%s result=%s",
681 self.settings.COGNITO_TRIGGER_MAPPING,
682 trigger,
683 self.settings.COGNITO_TRIGGER_MAPPING.get(trigger),
684 )
685 return self.settings.COGNITO_TRIGGER_MAPPING.get(trigger)
686
687 def handler(self, event, context):
688 """

Callers 1

handlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected