in source/services/lex-bot/lambda_function.py [0:0]
def configure_lex_bot(bot_name, bot_role_arn, child_directed, bot_language):
# Creating a Lex bot
bot_response = create_lex_bot(bot_name, bot_role_arn, child_directed)
logger.info(bot_response)
bot_id = bot_response["botId"]
wait_for_bot(bot_id)
bot_alias_id = get_bot_alias_id(bot_id)
# Creating a locale for the Lex bot
locale_response = create_lex_bot_locale(bot_language, bot_id)
locale_id = locale_response["localeId"]
wait_for_locale(bot_id, locale_id)
logger.info(locale_response)
return bot_id, bot_alias_id, locale_id