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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南