<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_cognito_triggers(self):
 """ Update any cognito triggers """

        if self.cognito:
            user_pool = self.cognito.get('user_pool')
            triggers = self.cognito.get('triggers', [])
            lambda_configs = set()
            for trigger in triggers:
                lambda_configs.add(trigger['source'].split('_')[0])
            self.zappa.update_cognito(self.lambda_name, user_pool, lambda_configs, self.lambda_arn)