2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hello!
With the way that the CloudFormation workflow is set up, there is currently no mechanism of modifying the TestBotAlias within a CFN template. In the meantime a possible solution you can use is to create a new BotVersion when you are ready to test your bot and associate an AWS::Lex::BotAlias resource with templated bot version.
If there are any other questions please feel free to reach out again!
répondu il y a 2 ans
0
I was finally able to get this working (in AWS CDK)
While defining the lex bot:
test_bot_alias_settings = ( lex.CfnBot.TestBotAliasSettingsProperty( bot_alias_locale_settings=[ lex.CfnBot.BotAliasLocaleSettingsItemProperty( locale_id="en_US", bot_alias_locale_setting=lex.CfnBot.BotAliasLocaleSettingsProperty( enabled=True, code_hook_specification=lex.CfnBot.CodeHookSpecificationProperty( lambda_code_hook=lex.CfnBot.LambdaCodeHookProperty( code_hook_interface_version="1.0", lambda_arn=self.my_lex_lambda.function_arn, ) ), ), ) ], ), )
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a 6 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
This is really inconvenient.. Is there a way to modify the TestBotAlias after deployment?