Skip to content

Commit 8a9b1fc

Browse files
author
awstools
committed
feat(client-lex-models-v2): Release feature of errorlogging for lex bot, customer can config this feature in bot version to generate log for error exception which helps debug
1 parent 2563366 commit 8a9b1fc

14 files changed

+430
-136
lines changed

clients/client-lex-models-v2/src/commands/CreateBotCommand.ts

+6
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ export interface CreateBotCommandOutput extends CreateBotResponse, __MetadataBea
5959
* botMemberVersion: "STRING_VALUE", // required
6060
* },
6161
* ],
62+
* errorLogSettings: { // ErrorLogSettings
63+
* enabled: true || false, // required
64+
* },
6265
* };
6366
* const command = new CreateBotCommand(input);
6467
* const response = await client.send(command);
@@ -89,6 +92,9 @@ export interface CreateBotCommandOutput extends CreateBotResponse, __MetadataBea
8992
* // botMemberVersion: "STRING_VALUE", // required
9093
* // },
9194
* // ],
95+
* // errorLogSettings: { // ErrorLogSettings
96+
* // enabled: true || false, // required
97+
* // },
9298
* // };
9399
*
94100
* ```

clients/client-lex-models-v2/src/commands/CreateIntentCommand.ts

+10
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,11 @@ export interface CreateIntentCommandOutput extends CreateIntentResponse, __Metad
539539
* customPrompt: "STRING_VALUE",
540540
* },
541541
* },
542+
* qInConnectIntentConfiguration: { // QInConnectIntentConfiguration
543+
* qInConnectAssistantConfiguration: { // QInConnectAssistantConfiguration
544+
* assistantArn: "STRING_VALUE", // required
545+
* },
546+
* },
542547
* };
543548
* const command = new CreateIntentCommand(input);
544549
* const response = await client.send(command);
@@ -1011,6 +1016,11 @@ export interface CreateIntentCommandOutput extends CreateIntentResponse, __Metad
10111016
* // customPrompt: "STRING_VALUE",
10121017
* // },
10131018
* // },
1019+
* // qInConnectIntentConfiguration: { // QInConnectIntentConfiguration
1020+
* // qInConnectAssistantConfiguration: { // QInConnectAssistantConfiguration
1021+
* // assistantArn: "STRING_VALUE", // required
1022+
* // },
1023+
* // },
10141024
* // };
10151025
*
10161026
* ```

clients/client-lex-models-v2/src/commands/DescribeBotAliasCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
9-
import { DescribeBotAliasRequest, DescribeBotAliasResponse } from "../models/models_0";
9+
import { DescribeBotAliasRequest } from "../models/models_0";
10+
import { DescribeBotAliasResponse } from "../models/models_1";
1011
import { de_DescribeBotAliasCommand, se_DescribeBotAliasCommand } from "../protocols/Aws_restJson1";
1112

1213
/**

clients/client-lex-models-v2/src/commands/DescribeBotCommand.ts

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ export interface DescribeBotCommandOutput extends DescribeBotResponse, __Metadat
6565
* // failureReasons: [ // FailureReasons
6666
* // "STRING_VALUE",
6767
* // ],
68+
* // errorLogSettings: { // ErrorLogSettings
69+
* // enabled: true || false, // required
70+
* // },
6871
* // };
6972
*
7073
* ```

clients/client-lex-models-v2/src/commands/DescribeBotLocaleCommand.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
9-
import { DescribeBotLocaleRequest } from "../models/models_0";
10-
import { DescribeBotLocaleResponse } from "../models/models_1";
9+
import { DescribeBotLocaleRequest, DescribeBotLocaleResponse } from "../models/models_1";
1110
import { de_DescribeBotLocaleCommand, se_DescribeBotLocaleCommand } from "../protocols/Aws_restJson1";
1211

1312
/**

clients/client-lex-models-v2/src/commands/DescribeImportCommand.ts

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ export interface DescribeImportCommandOutput extends DescribeImportResponse, __M
4949
* // dataPrivacy: { // DataPrivacy
5050
* // childDirected: true || false, // required
5151
* // },
52+
* // errorLogSettings: { // ErrorLogSettings
53+
* // enabled: true || false, // required
54+
* // },
5255
* // idleSessionTTLInSeconds: Number("int"),
5356
* // botTags: { // TagMap
5457
* // "<keys>": "STRING_VALUE",

clients/client-lex-models-v2/src/commands/DescribeIntentCommand.ts

+5
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,11 @@ export interface DescribeIntentCommandOutput extends DescribeIntentResponse, __M
519519
* // customPrompt: "STRING_VALUE",
520520
* // },
521521
* // },
522+
* // qInConnectIntentConfiguration: { // QInConnectIntentConfiguration
523+
* // qInConnectAssistantConfiguration: { // QInConnectAssistantConfiguration
524+
* // assistantArn: "STRING_VALUE", // required
525+
* // },
526+
* // },
522527
* // };
523528
*
524529
* ```

clients/client-lex-models-v2/src/commands/StartImportCommand.ts

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ export interface StartImportCommandOutput extends StartImportResponse, __Metadat
4545
* dataPrivacy: { // DataPrivacy
4646
* childDirected: true || false, // required
4747
* },
48+
* errorLogSettings: { // ErrorLogSettings
49+
* enabled: true || false, // required
50+
* },
4851
* idleSessionTTLInSeconds: Number("int"),
4952
* botTags: { // TagMap
5053
* "<keys>": "STRING_VALUE",
@@ -101,6 +104,9 @@ export interface StartImportCommandOutput extends StartImportResponse, __Metadat
101104
* // dataPrivacy: { // DataPrivacy
102105
* // childDirected: true || false, // required
103106
* // },
107+
* // errorLogSettings: { // ErrorLogSettings
108+
* // enabled: true || false, // required
109+
* // },
104110
* // idleSessionTTLInSeconds: Number("int"),
105111
* // botTags: { // TagMap
106112
* // "<keys>": "STRING_VALUE",

clients/client-lex-models-v2/src/commands/UpdateBotCommand.ts

+6
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export interface UpdateBotCommandOutput extends UpdateBotResponse, __MetadataBea
5454
* botMemberVersion: "STRING_VALUE", // required
5555
* },
5656
* ],
57+
* errorLogSettings: { // ErrorLogSettings
58+
* enabled: true || false, // required
59+
* },
5760
* };
5861
* const command = new UpdateBotCommand(input);
5962
* const response = await client.send(command);
@@ -79,6 +82,9 @@ export interface UpdateBotCommandOutput extends UpdateBotResponse, __MetadataBea
7982
* // botMemberVersion: "STRING_VALUE", // required
8083
* // },
8184
* // ],
85+
* // errorLogSettings: { // ErrorLogSettings
86+
* // enabled: true || false, // required
87+
* // },
8288
* // };
8389
*
8490
* ```

clients/client-lex-models-v2/src/commands/UpdateIntentCommand.ts

+10
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,11 @@ export interface UpdateIntentCommandOutput extends UpdateIntentResponse, __Metad
509509
* customPrompt: "STRING_VALUE",
510510
* },
511511
* },
512+
* qInConnectIntentConfiguration: { // QInConnectIntentConfiguration
513+
* qInConnectAssistantConfiguration: { // QInConnectAssistantConfiguration
514+
* assistantArn: "STRING_VALUE", // required
515+
* },
516+
* },
512517
* };
513518
* const command = new UpdateIntentCommand(input);
514519
* const response = await client.send(command);
@@ -988,6 +993,11 @@ export interface UpdateIntentCommandOutput extends UpdateIntentResponse, __Metad
988993
* // customPrompt: "STRING_VALUE",
989994
* // },
990995
* // },
996+
* // qInConnectIntentConfiguration: { // QInConnectIntentConfiguration
997+
* // qInConnectAssistantConfiguration: { // QInConnectAssistantConfiguration
998+
* // assistantArn: "STRING_VALUE", // required
999+
* // },
1000+
* // },
9911001
* // };
9921002
*
9931003
* ```

0 commit comments

Comments
 (0)