Get the associated function to execute for a cognito trigger
(self, trigger)
| 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 | """ |