Invalid parameter "codeHook" when calling UpdateIntent API of LexV2

0

Hello,

I need to enable CodeHooks for IntentConfirmation through a call to the UpdateIntent API for a LexV2 bot.

I see in the documentation it should be possible with the parameter "intentConfirmationSetting" with the "codeHook" field but when I try I have the following error:

["errorMessage": "Parameter validation failed:\nUnknown parameter in intentConfirmationSetting: "codeHook", must be one of: promptSpecification, declinationResponse, active"].

My bot seems misaligned with the doc: (https://docs.aws.amazon.com/lexv2/latest/dg/API_IntentConfirmationSetting.html) any idea to solve the issue ?

FYI my bot has been created on the 7th of September so with the last version of LexV2.

Thank You

已提问 2 年前320 查看次数
1 回答
0

Hello,

Generally, the Unknown parameter/Parameter validation failed can hint at issues with the version of SDK/CLI on the client's end. Updating/upgrading your SDK version or CLI version should be the first step to check if you are still receiving the error.

Similar error have also been reported for service like ECS etc where the Parameter validation failed due to usage of older SDK version.

However, if you receive errors when running AWS Command Line Interface (AWS CLI) commands, then please make sure that you're using the most recent AWS CLI version.

Installing or updating the latest version of the AWS CLI - https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

Additionally, you can check the version of your CLI using aws --version command.

If the suggestions above do not help resolve the issue, we might need to troubleshoot based on your configurations. Could you please create a support case instead so we may discuss details on your resource configurations?

Please do not post any sensitive information over re:Post since this is a public platform.

As always, feel free to reach back with any further questions or concerns in the meantime!

profile pictureAWS
支持工程师
Yash_C
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则