@aws-sdk/client-lex-models-v2 3.152.0 → 3.159.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/LexModelsV2.js +15 -0
- package/dist-cjs/commands/StopBotRecommendationCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +11 -9
- package/dist-cjs/models/models_1.js +9 -1
- package/dist-cjs/protocols/Aws_restJson1.js +87 -2
- package/dist-es/LexModelsV2.js +15 -0
- package/dist-es/commands/StopBotRecommendationCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +4 -2
- package/dist-es/models/models_1.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +118 -0
- package/dist-types/LexModelsV2.d.ts +7 -0
- package/dist-types/LexModelsV2Client.d.ts +3 -2
- package/dist-types/commands/StopBotRecommendationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +62 -82
- package/dist-types/models/models_1.d.ts +83 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/LexModelsV2.d.ts +5 -0
- package/dist-types/ts3.4/LexModelsV2Client.d.ts +3 -2
- package/dist-types/ts3.4/commands/StopBotRecommendationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +28 -34
- package/dist-types/ts3.4/models/models_1.d.ts +35 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.159.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.158.0...v3.159.0) (2022-08-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-models-v2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.155.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.154.0...v3.155.0) (2022-08-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-lex-models-v2:** This release introduces a new feature to stop a running BotRecommendation Job for Automated Chatbot Designer. ([48b347b](https://github.com/aws/aws-sdk-js-v3/commit/48b347b667b6b24c1e08d9e17d1b9ccdf378c353))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.154.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.153.0...v3.154.0) (2022-08-19)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-lex-models-v2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.152.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.151.0...v3.152.0) (2022-08-17)
|
|
7
34
|
|
|
8
35
|
|
package/dist-cjs/LexModelsV2.js
CHANGED
|
@@ -56,6 +56,7 @@ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceComm
|
|
|
56
56
|
const SearchAssociatedTranscriptsCommand_1 = require("./commands/SearchAssociatedTranscriptsCommand");
|
|
57
57
|
const StartBotRecommendationCommand_1 = require("./commands/StartBotRecommendationCommand");
|
|
58
58
|
const StartImportCommand_1 = require("./commands/StartImportCommand");
|
|
59
|
+
const StopBotRecommendationCommand_1 = require("./commands/StopBotRecommendationCommand");
|
|
59
60
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
60
61
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
61
62
|
const UpdateBotAliasCommand_1 = require("./commands/UpdateBotAliasCommand");
|
|
@@ -839,6 +840,20 @@ class LexModelsV2 extends LexModelsV2Client_1.LexModelsV2Client {
|
|
|
839
840
|
return this.send(command, optionsOrCb);
|
|
840
841
|
}
|
|
841
842
|
}
|
|
843
|
+
stopBotRecommendation(args, optionsOrCb, cb) {
|
|
844
|
+
const command = new StopBotRecommendationCommand_1.StopBotRecommendationCommand(args);
|
|
845
|
+
if (typeof optionsOrCb === "function") {
|
|
846
|
+
this.send(command, optionsOrCb);
|
|
847
|
+
}
|
|
848
|
+
else if (typeof cb === "function") {
|
|
849
|
+
if (typeof optionsOrCb !== "object")
|
|
850
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
851
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
852
|
+
}
|
|
853
|
+
else {
|
|
854
|
+
return this.send(command, optionsOrCb);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
842
857
|
tagResource(args, optionsOrCb, cb) {
|
|
843
858
|
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
844
859
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StopBotRecommendationCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class StopBotRecommendationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "LexModelsV2Client";
|
|
18
|
+
const commandName = "StopBotRecommendationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.StopBotRecommendationRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.StopBotRecommendationResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1StopBotRecommendationCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1StopBotRecommendationCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StopBotRecommendationCommand = StopBotRecommendationCommand;
|
|
@@ -56,6 +56,7 @@ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
|
56
56
|
tslib_1.__exportStar(require("./SearchAssociatedTranscriptsCommand"), exports);
|
|
57
57
|
tslib_1.__exportStar(require("./StartBotRecommendationCommand"), exports);
|
|
58
58
|
tslib_1.__exportStar(require("./StartImportCommand"), exports);
|
|
59
|
+
tslib_1.__exportStar(require("./StopBotRecommendationCommand"), exports);
|
|
59
60
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
60
61
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
61
62
|
tslib_1.__exportStar(require("./UpdateBotAliasCommand"), exports);
|
|
@@ -5,7 +5,7 @@ exports.BuiltInSlotTypeSummaryFilterSensitiveLog = exports.BuiltInSlotTypeSortBy
|
|
|
5
5
|
exports.GrammarSlotTypeSourceFilterSensitiveLog = exports.WaitAndContinueSpecificationFilterSensitiveLog = exports.StillWaitingResponseSpecificationFilterSensitiveLog = exports.SlotDefaultValueSpecificationFilterSensitiveLog = exports.SlotDefaultValueFilterSensitiveLog = exports.ObfuscationSettingFilterSensitiveLog = exports.MultipleValuesSettingFilterSensitiveLog = exports.CreateResourcePolicyStatementResponseFilterSensitiveLog = exports.CreateResourcePolicyStatementRequestFilterSensitiveLog = exports.PrincipalFilterSensitiveLog = exports.CreateResourcePolicyResponseFilterSensitiveLog = exports.CreateResourcePolicyRequestFilterSensitiveLog = exports.SampleUtteranceFilterSensitiveLog = exports.OutputContextFilterSensitiveLog = exports.KendraConfigurationFilterSensitiveLog = exports.PromptSpecificationFilterSensitiveLog = exports.ElicitationCodeHookInvocationSettingFilterSensitiveLog = exports.InputContextFilterSensitiveLog = exports.FulfillmentUpdatesSpecificationFilterSensitiveLog = exports.FulfillmentUpdateResponseSpecificationFilterSensitiveLog = exports.FulfillmentStartResponseSpecificationFilterSensitiveLog = exports.DialogCodeHookSettingsFilterSensitiveLog = exports.CreateExportResponseFilterSensitiveLog = exports.CreateExportRequestFilterSensitiveLog = exports.ExportResourceSpecificationFilterSensitiveLog = exports.CustomVocabularyExportSpecificationFilterSensitiveLog = exports.CreateBotVersionResponseFilterSensitiveLog = exports.CreateBotVersionRequestFilterSensitiveLog = exports.CreateBotLocaleResponseFilterSensitiveLog = exports.CreateBotLocaleRequestFilterSensitiveLog = exports.CreateBotAliasResponseFilterSensitiveLog = exports.CreateBotAliasRequestFilterSensitiveLog = exports.SentimentAnalysisSettingsFilterSensitiveLog = exports.CreateBotResponseFilterSensitiveLog = exports.CreateBotRequestFilterSensitiveLog = exports.ConversationLogSettingsFilterSensitiveLog = exports.TextLogSettingFilterSensitiveLog = exports.TextLogDestinationFilterSensitiveLog = exports.ResponseSpecificationFilterSensitiveLog = exports.MessageGroupFilterSensitiveLog = exports.MessageFilterSensitiveLog = exports.SSMLMessageFilterSensitiveLog = exports.PlainTextMessageFilterSensitiveLog = exports.ImageResponseCardFilterSensitiveLog = exports.CustomPayloadFilterSensitiveLog = exports.SlotValueFilterSensitiveLog = exports.DialogActionFilterSensitiveLog = exports.ConditionFilterSensitiveLog = exports.CloudWatchLogGroupLogDestinationFilterSensitiveLog = exports.ButtonFilterSensitiveLog = void 0;
|
|
6
6
|
exports.DescribeBotVersionRequestFilterSensitiveLog = exports.DescribeBotRecommendationResponseFilterSensitiveLog = exports.TranscriptSourceSettingFilterSensitiveLog = exports.S3BucketTranscriptSourceFilterSensitiveLog = exports.TranscriptFilterFilterSensitiveLog = exports.LexTranscriptFilterFilterSensitiveLog = exports.PathFormatFilterSensitiveLog = exports.EncryptionSettingFilterSensitiveLog = exports.DescribeBotRecommendationRequestFilterSensitiveLog = exports.DescribeBotLocaleResponseFilterSensitiveLog = exports.DescribeBotLocaleRequestFilterSensitiveLog = exports.DescribeBotAliasResponseFilterSensitiveLog = exports.DescribeBotAliasRequestFilterSensitiveLog = exports.DescribeBotResponseFilterSensitiveLog = exports.DescribeBotRequestFilterSensitiveLog = exports.DeleteUtterancesResponseFilterSensitiveLog = exports.DeleteUtterancesRequestFilterSensitiveLog = exports.DeleteSlotTypeRequestFilterSensitiveLog = exports.DeleteSlotRequestFilterSensitiveLog = exports.DeleteResourcePolicyStatementResponseFilterSensitiveLog = exports.DeleteResourcePolicyStatementRequestFilterSensitiveLog = exports.DeleteResourcePolicyResponseFilterSensitiveLog = exports.DeleteResourcePolicyRequestFilterSensitiveLog = exports.DeleteIntentRequestFilterSensitiveLog = exports.DeleteImportResponseFilterSensitiveLog = exports.DeleteImportRequestFilterSensitiveLog = exports.DeleteExportResponseFilterSensitiveLog = exports.DeleteExportRequestFilterSensitiveLog = exports.DeleteCustomVocabularyResponseFilterSensitiveLog = exports.DeleteCustomVocabularyRequestFilterSensitiveLog = exports.DeleteBotVersionResponseFilterSensitiveLog = exports.DeleteBotVersionRequestFilterSensitiveLog = exports.DeleteBotLocaleResponseFilterSensitiveLog = exports.DeleteBotLocaleRequestFilterSensitiveLog = exports.DeleteBotAliasResponseFilterSensitiveLog = exports.DeleteBotAliasRequestFilterSensitiveLog = exports.DeleteBotResponseFilterSensitiveLog = exports.DeleteBotRequestFilterSensitiveLog = exports.DateRangeFilterFilterSensitiveLog = exports.CustomVocabularyImportSpecificationFilterSensitiveLog = exports.CreateUploadUrlResponseFilterSensitiveLog = exports.CreateUploadUrlRequestFilterSensitiveLog = exports.CreateSlotTypeResponseFilterSensitiveLog = exports.CreateSlotTypeRequestFilterSensitiveLog = exports.SlotValueSelectionSettingFilterSensitiveLog = exports.SlotValueRegexFilterFilterSensitiveLog = exports.SlotTypeValueFilterSensitiveLog = exports.SampleValueFilterSensitiveLog = exports.ExternalSourceSettingFilterSensitiveLog = exports.GrammarSlotTypeSettingFilterSensitiveLog = void 0;
|
|
7
7
|
exports.RecommendedIntentSummaryFilterSensitiveLog = exports.ListRecommendedIntentsRequestFilterSensitiveLog = exports.ListIntentsResponseFilterSensitiveLog = exports.ListIntentsRequestFilterSensitiveLog = exports.ListImportsResponseFilterSensitiveLog = exports.ListImportsRequestFilterSensitiveLog = exports.ListExportsResponseFilterSensitiveLog = exports.ListExportsRequestFilterSensitiveLog = exports.ListBuiltInSlotTypesResponseFilterSensitiveLog = exports.ListBuiltInSlotTypesRequestFilterSensitiveLog = exports.ListBuiltInIntentsResponseFilterSensitiveLog = exports.ListBuiltInIntentsRequestFilterSensitiveLog = exports.ListBotVersionsResponseFilterSensitiveLog = exports.ListBotVersionsRequestFilterSensitiveLog = exports.ListBotsResponseFilterSensitiveLog = exports.ListBotsRequestFilterSensitiveLog = exports.ListBotRecommendationsResponseFilterSensitiveLog = exports.ListBotRecommendationsRequestFilterSensitiveLog = exports.ListBotLocalesResponseFilterSensitiveLog = exports.ListBotLocalesRequestFilterSensitiveLog = exports.ListBotAliasesResponseFilterSensitiveLog = exports.ListBotAliasesRequestFilterSensitiveLog = exports.ListAggregatedUtterancesResponseFilterSensitiveLog = exports.ListAggregatedUtterancesRequestFilterSensitiveLog = exports.UtteranceAggregationDurationFilterSensitiveLog = exports.RelativeAggregationDurationFilterSensitiveLog = exports.IntentSummaryFilterSensitiveLog = exports.IntentSortByFilterSensitiveLog = exports.IntentFilterFilterSensitiveLog = exports.ImportSummaryFilterSensitiveLog = exports.ImportSortByFilterSensitiveLog = exports.ImportFilterFilterSensitiveLog = exports.ExportSummaryFilterSensitiveLog = exports.ExportSortByFilterSensitiveLog = exports.ExportFilterFilterSensitiveLog = exports.DescribeSlotTypeResponseFilterSensitiveLog = exports.DescribeSlotTypeRequestFilterSensitiveLog = exports.DescribeSlotRequestFilterSensitiveLog = exports.DescribeResourcePolicyResponseFilterSensitiveLog = exports.DescribeResourcePolicyRequestFilterSensitiveLog = exports.SlotPriorityFilterSensitiveLog = exports.DescribeIntentRequestFilterSensitiveLog = exports.DescribeImportResponseFilterSensitiveLog = exports.ImportResourceSpecificationFilterSensitiveLog = exports.DescribeImportRequestFilterSensitiveLog = exports.DescribeExportResponseFilterSensitiveLog = exports.DescribeExportRequestFilterSensitiveLog = exports.DescribeCustomVocabularyMetadataResponseFilterSensitiveLog = exports.DescribeCustomVocabularyMetadataRequestFilterSensitiveLog = exports.DescribeBotVersionResponseFilterSensitiveLog = void 0;
|
|
8
|
-
exports.
|
|
8
|
+
exports.FulfillmentCodeHookSettingsFilterSensitiveLog = exports.DialogCodeHookInvocationSettingFilterSensitiveLog = exports.PostFulfillmentStatusSpecificationFilterSensitiveLog = exports.PostDialogCodeHookInvocationSpecificationFilterSensitiveLog = exports.IntentClosingSettingFilterSensitiveLog = exports.ConditionalSpecificationFilterSensitiveLog = exports.DefaultConditionalBranchFilterSensitiveLog = exports.ConditionalBranchFilterSensitiveLog = exports.DialogStateFilterSensitiveLog = exports.IntentOverrideFilterSensitiveLog = exports.SlotValueOverrideFilterSensitiveLog = exports.UpdateSlotTypeResponseFilterSensitiveLog = exports.UpdateSlotTypeRequestFilterSensitiveLog = exports.UpdateResourcePolicyResponseFilterSensitiveLog = exports.UpdateResourcePolicyRequestFilterSensitiveLog = exports.UpdateExportResponseFilterSensitiveLog = exports.UpdateExportRequestFilterSensitiveLog = exports.UpdateBotRecommendationResponseFilterSensitiveLog = exports.UpdateBotRecommendationRequestFilterSensitiveLog = exports.UpdateBotLocaleResponseFilterSensitiveLog = exports.UpdateBotLocaleRequestFilterSensitiveLog = exports.UpdateBotAliasResponseFilterSensitiveLog = exports.UpdateBotAliasRequestFilterSensitiveLog = exports.UpdateBotResponseFilterSensitiveLog = exports.UpdateBotRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StopBotRecommendationResponseFilterSensitiveLog = exports.StopBotRecommendationRequestFilterSensitiveLog = exports.StartImportResponseFilterSensitiveLog = exports.StartImportRequestFilterSensitiveLog = exports.StartBotRecommendationResponseFilterSensitiveLog = exports.StartBotRecommendationRequestFilterSensitiveLog = exports.SearchAssociatedTranscriptsResponseFilterSensitiveLog = exports.SearchAssociatedTranscriptsRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSlotTypesResponseFilterSensitiveLog = exports.SlotTypeSummaryFilterSensitiveLog = exports.ListSlotTypesRequestFilterSensitiveLog = exports.SlotTypeSortByFilterSensitiveLog = exports.SlotTypeFilterFilterSensitiveLog = exports.ListSlotsResponseFilterSensitiveLog = exports.SlotSummaryFilterSensitiveLog = exports.ListSlotsRequestFilterSensitiveLog = exports.SlotSortByFilterSensitiveLog = exports.SlotFilterFilterSensitiveLog = exports.ListRecommendedIntentsResponseFilterSensitiveLog = void 0;
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
10
|
const LexModelsV2ServiceException_1 = require("./LexModelsV2ServiceException");
|
|
11
11
|
var AudioRecognitionStrategy;
|
|
@@ -90,6 +90,8 @@ var BotRecommendationStatus;
|
|
|
90
90
|
BotRecommendationStatus["Downloading"] = "Downloading";
|
|
91
91
|
BotRecommendationStatus["Failed"] = "Failed";
|
|
92
92
|
BotRecommendationStatus["Processing"] = "Processing";
|
|
93
|
+
BotRecommendationStatus["Stopped"] = "Stopped";
|
|
94
|
+
BotRecommendationStatus["Stopping"] = "Stopping";
|
|
93
95
|
BotRecommendationStatus["Updating"] = "Updating";
|
|
94
96
|
})(BotRecommendationStatus = exports.BotRecommendationStatus || (exports.BotRecommendationStatus = {}));
|
|
95
97
|
var BotSortAttribute;
|
|
@@ -1228,6 +1230,14 @@ const StartImportResponseFilterSensitiveLog = (obj) => ({
|
|
|
1228
1230
|
...obj,
|
|
1229
1231
|
});
|
|
1230
1232
|
exports.StartImportResponseFilterSensitiveLog = StartImportResponseFilterSensitiveLog;
|
|
1233
|
+
const StopBotRecommendationRequestFilterSensitiveLog = (obj) => ({
|
|
1234
|
+
...obj,
|
|
1235
|
+
});
|
|
1236
|
+
exports.StopBotRecommendationRequestFilterSensitiveLog = StopBotRecommendationRequestFilterSensitiveLog;
|
|
1237
|
+
const StopBotRecommendationResponseFilterSensitiveLog = (obj) => ({
|
|
1238
|
+
...obj,
|
|
1239
|
+
});
|
|
1240
|
+
exports.StopBotRecommendationResponseFilterSensitiveLog = StopBotRecommendationResponseFilterSensitiveLog;
|
|
1231
1241
|
const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
1232
1242
|
...obj,
|
|
1233
1243
|
});
|
|
@@ -1347,11 +1357,3 @@ const FulfillmentCodeHookSettingsFilterSensitiveLog = (obj) => ({
|
|
|
1347
1357
|
...obj,
|
|
1348
1358
|
});
|
|
1349
1359
|
exports.FulfillmentCodeHookSettingsFilterSensitiveLog = FulfillmentCodeHookSettingsFilterSensitiveLog;
|
|
1350
|
-
const InitialResponseSettingFilterSensitiveLog = (obj) => ({
|
|
1351
|
-
...obj,
|
|
1352
|
-
});
|
|
1353
|
-
exports.InitialResponseSettingFilterSensitiveLog = InitialResponseSettingFilterSensitiveLog;
|
|
1354
|
-
const SlotCaptureSettingFilterSensitiveLog = (obj) => ({
|
|
1355
|
-
...obj,
|
|
1356
|
-
});
|
|
1357
|
-
exports.SlotCaptureSettingFilterSensitiveLog = SlotCaptureSettingFilterSensitiveLog;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateIntentResponseFilterSensitiveLog = exports.UpdateIntentRequestFilterSensitiveLog = exports.DescribeIntentResponseFilterSensitiveLog = exports.CreateIntentResponseFilterSensitiveLog = exports.CreateIntentRequestFilterSensitiveLog = exports.UpdateSlotResponseFilterSensitiveLog = exports.UpdateSlotRequestFilterSensitiveLog = exports.DescribeSlotResponseFilterSensitiveLog = exports.CreateSlotResponseFilterSensitiveLog = exports.CreateSlotRequestFilterSensitiveLog = exports.IntentConfirmationSettingFilterSensitiveLog = exports.SlotValueElicitationSettingFilterSensitiveLog = void 0;
|
|
3
|
+
exports.UpdateIntentResponseFilterSensitiveLog = exports.UpdateIntentRequestFilterSensitiveLog = exports.DescribeIntentResponseFilterSensitiveLog = exports.CreateIntentResponseFilterSensitiveLog = exports.CreateIntentRequestFilterSensitiveLog = exports.UpdateSlotResponseFilterSensitiveLog = exports.UpdateSlotRequestFilterSensitiveLog = exports.DescribeSlotResponseFilterSensitiveLog = exports.CreateSlotResponseFilterSensitiveLog = exports.CreateSlotRequestFilterSensitiveLog = exports.IntentConfirmationSettingFilterSensitiveLog = exports.SlotValueElicitationSettingFilterSensitiveLog = exports.SlotCaptureSettingFilterSensitiveLog = exports.InitialResponseSettingFilterSensitiveLog = void 0;
|
|
4
|
+
const InitialResponseSettingFilterSensitiveLog = (obj) => ({
|
|
5
|
+
...obj,
|
|
6
|
+
});
|
|
7
|
+
exports.InitialResponseSettingFilterSensitiveLog = InitialResponseSettingFilterSensitiveLog;
|
|
8
|
+
const SlotCaptureSettingFilterSensitiveLog = (obj) => ({
|
|
9
|
+
...obj,
|
|
10
|
+
});
|
|
11
|
+
exports.SlotCaptureSettingFilterSensitiveLog = SlotCaptureSettingFilterSensitiveLog;
|
|
4
12
|
const SlotValueElicitationSettingFilterSensitiveLog = (obj) => ({
|
|
5
13
|
...obj,
|
|
6
14
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serializeAws_restJson1ListSlotsCommand = exports.serializeAws_restJson1ListRecommendedIntentsCommand = exports.serializeAws_restJson1ListIntentsCommand = exports.serializeAws_restJson1ListImportsCommand = exports.serializeAws_restJson1ListExportsCommand = exports.serializeAws_restJson1ListBuiltInSlotTypesCommand = exports.serializeAws_restJson1ListBuiltInIntentsCommand = exports.serializeAws_restJson1ListBotVersionsCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListBotRecommendationsCommand = exports.serializeAws_restJson1ListBotLocalesCommand = exports.serializeAws_restJson1ListBotAliasesCommand = exports.serializeAws_restJson1ListAggregatedUtterancesCommand = exports.serializeAws_restJson1DescribeSlotTypeCommand = exports.serializeAws_restJson1DescribeSlotCommand = exports.serializeAws_restJson1DescribeResourcePolicyCommand = exports.serializeAws_restJson1DescribeIntentCommand = exports.serializeAws_restJson1DescribeImportCommand = exports.serializeAws_restJson1DescribeExportCommand = exports.serializeAws_restJson1DescribeCustomVocabularyMetadataCommand = exports.serializeAws_restJson1DescribeBotVersionCommand = exports.serializeAws_restJson1DescribeBotRecommendationCommand = exports.serializeAws_restJson1DescribeBotLocaleCommand = exports.serializeAws_restJson1DescribeBotAliasCommand = exports.serializeAws_restJson1DescribeBotCommand = exports.serializeAws_restJson1DeleteUtterancesCommand = exports.serializeAws_restJson1DeleteSlotTypeCommand = exports.serializeAws_restJson1DeleteSlotCommand = exports.serializeAws_restJson1DeleteResourcePolicyStatementCommand = exports.serializeAws_restJson1DeleteResourcePolicyCommand = exports.serializeAws_restJson1DeleteIntentCommand = exports.serializeAws_restJson1DeleteImportCommand = exports.serializeAws_restJson1DeleteExportCommand = exports.serializeAws_restJson1DeleteCustomVocabularyCommand = exports.serializeAws_restJson1DeleteBotVersionCommand = exports.serializeAws_restJson1DeleteBotLocaleCommand = exports.serializeAws_restJson1DeleteBotAliasCommand = exports.serializeAws_restJson1DeleteBotCommand = exports.serializeAws_restJson1CreateUploadUrlCommand = exports.serializeAws_restJson1CreateSlotTypeCommand = exports.serializeAws_restJson1CreateSlotCommand = exports.serializeAws_restJson1CreateResourcePolicyStatementCommand = exports.serializeAws_restJson1CreateResourcePolicyCommand = exports.serializeAws_restJson1CreateIntentCommand = exports.serializeAws_restJson1CreateExportCommand = exports.serializeAws_restJson1CreateBotVersionCommand = exports.serializeAws_restJson1CreateBotLocaleCommand = exports.serializeAws_restJson1CreateBotAliasCommand = exports.serializeAws_restJson1CreateBotCommand = exports.serializeAws_restJson1BuildBotLocaleCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restJson1UpdateSlotTypeCommand = exports.deserializeAws_restJson1UpdateSlotCommand = exports.deserializeAws_restJson1UpdateResourcePolicyCommand = exports.deserializeAws_restJson1UpdateIntentCommand = exports.deserializeAws_restJson1UpdateExportCommand = exports.deserializeAws_restJson1UpdateBotRecommendationCommand = exports.deserializeAws_restJson1UpdateBotLocaleCommand = exports.deserializeAws_restJson1UpdateBotAliasCommand = exports.deserializeAws_restJson1UpdateBotCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartImportCommand = exports.deserializeAws_restJson1StartBotRecommendationCommand = exports.deserializeAws_restJson1SearchAssociatedTranscriptsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSlotTypesCommand = exports.deserializeAws_restJson1ListSlotsCommand = exports.deserializeAws_restJson1ListRecommendedIntentsCommand = exports.deserializeAws_restJson1ListIntentsCommand = exports.deserializeAws_restJson1ListImportsCommand = exports.deserializeAws_restJson1ListExportsCommand = exports.deserializeAws_restJson1ListBuiltInSlotTypesCommand = exports.deserializeAws_restJson1ListBuiltInIntentsCommand = exports.deserializeAws_restJson1ListBotVersionsCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListBotRecommendationsCommand = exports.deserializeAws_restJson1ListBotLocalesCommand = exports.deserializeAws_restJson1ListBotAliasesCommand = exports.deserializeAws_restJson1ListAggregatedUtterancesCommand = exports.deserializeAws_restJson1DescribeSlotTypeCommand = exports.deserializeAws_restJson1DescribeSlotCommand = exports.deserializeAws_restJson1DescribeResourcePolicyCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1DescribeImportCommand = exports.deserializeAws_restJson1DescribeExportCommand = exports.deserializeAws_restJson1DescribeCustomVocabularyMetadataCommand = exports.deserializeAws_restJson1DescribeBotVersionCommand = exports.deserializeAws_restJson1DescribeBotRecommendationCommand = exports.deserializeAws_restJson1DescribeBotLocaleCommand = exports.deserializeAws_restJson1DescribeBotAliasCommand = exports.deserializeAws_restJson1DescribeBotCommand = exports.deserializeAws_restJson1DeleteUtterancesCommand = exports.deserializeAws_restJson1DeleteSlotTypeCommand = exports.deserializeAws_restJson1DeleteSlotCommand = exports.deserializeAws_restJson1DeleteResourcePolicyStatementCommand = exports.deserializeAws_restJson1DeleteResourcePolicyCommand = exports.deserializeAws_restJson1DeleteIntentCommand = exports.deserializeAws_restJson1DeleteImportCommand = exports.deserializeAws_restJson1DeleteExportCommand = exports.deserializeAws_restJson1DeleteCustomVocabularyCommand = exports.deserializeAws_restJson1DeleteBotVersionCommand = exports.deserializeAws_restJson1DeleteBotLocaleCommand = exports.deserializeAws_restJson1DeleteBotAliasCommand = exports.deserializeAws_restJson1DeleteBotCommand = exports.deserializeAws_restJson1CreateUploadUrlCommand = exports.deserializeAws_restJson1CreateSlotTypeCommand = exports.deserializeAws_restJson1CreateSlotCommand = exports.deserializeAws_restJson1CreateResourcePolicyStatementCommand = exports.deserializeAws_restJson1CreateResourcePolicyCommand = exports.deserializeAws_restJson1CreateIntentCommand = exports.deserializeAws_restJson1CreateExportCommand = exports.deserializeAws_restJson1CreateBotVersionCommand = exports.deserializeAws_restJson1CreateBotLocaleCommand = exports.deserializeAws_restJson1CreateBotAliasCommand = exports.deserializeAws_restJson1CreateBotCommand = exports.deserializeAws_restJson1BuildBotLocaleCommand = exports.serializeAws_restJson1UpdateSlotTypeCommand = exports.serializeAws_restJson1UpdateSlotCommand = exports.serializeAws_restJson1UpdateResourcePolicyCommand = exports.serializeAws_restJson1UpdateIntentCommand = exports.serializeAws_restJson1UpdateExportCommand = exports.serializeAws_restJson1UpdateBotRecommendationCommand = exports.serializeAws_restJson1UpdateBotLocaleCommand = exports.serializeAws_restJson1UpdateBotAliasCommand = exports.serializeAws_restJson1UpdateBotCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopBotRecommendationCommand = exports.serializeAws_restJson1StartImportCommand = exports.serializeAws_restJson1StartBotRecommendationCommand = exports.serializeAws_restJson1SearchAssociatedTranscriptsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSlotTypesCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateSlotTypeCommand = exports.deserializeAws_restJson1UpdateSlotCommand = exports.deserializeAws_restJson1UpdateResourcePolicyCommand = exports.deserializeAws_restJson1UpdateIntentCommand = exports.deserializeAws_restJson1UpdateExportCommand = exports.deserializeAws_restJson1UpdateBotRecommendationCommand = exports.deserializeAws_restJson1UpdateBotLocaleCommand = exports.deserializeAws_restJson1UpdateBotAliasCommand = exports.deserializeAws_restJson1UpdateBotCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopBotRecommendationCommand = exports.deserializeAws_restJson1StartImportCommand = exports.deserializeAws_restJson1StartBotRecommendationCommand = exports.deserializeAws_restJson1SearchAssociatedTranscriptsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSlotTypesCommand = exports.deserializeAws_restJson1ListSlotsCommand = exports.deserializeAws_restJson1ListRecommendedIntentsCommand = exports.deserializeAws_restJson1ListIntentsCommand = exports.deserializeAws_restJson1ListImportsCommand = exports.deserializeAws_restJson1ListExportsCommand = exports.deserializeAws_restJson1ListBuiltInSlotTypesCommand = exports.deserializeAws_restJson1ListBuiltInIntentsCommand = exports.deserializeAws_restJson1ListBotVersionsCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListBotRecommendationsCommand = exports.deserializeAws_restJson1ListBotLocalesCommand = exports.deserializeAws_restJson1ListBotAliasesCommand = exports.deserializeAws_restJson1ListAggregatedUtterancesCommand = exports.deserializeAws_restJson1DescribeSlotTypeCommand = exports.deserializeAws_restJson1DescribeSlotCommand = exports.deserializeAws_restJson1DescribeResourcePolicyCommand = exports.deserializeAws_restJson1DescribeIntentCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const LexModelsV2ServiceException_1 = require("../models/LexModelsV2ServiceException");
|
|
@@ -1358,6 +1358,27 @@ const serializeAws_restJson1StartImportCommand = async (input, context) => {
|
|
|
1358
1358
|
});
|
|
1359
1359
|
};
|
|
1360
1360
|
exports.serializeAws_restJson1StartImportCommand = serializeAws_restJson1StartImportCommand;
|
|
1361
|
+
const serializeAws_restJson1StopBotRecommendationCommand = async (input, context) => {
|
|
1362
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1363
|
+
const headers = {};
|
|
1364
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1365
|
+
"/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/stopbotrecommendation";
|
|
1366
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
|
|
1367
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
|
|
1368
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
|
|
1369
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botRecommendationId", () => input.botRecommendationId, "{botRecommendationId}", false);
|
|
1370
|
+
let body;
|
|
1371
|
+
return new protocol_http_1.HttpRequest({
|
|
1372
|
+
protocol,
|
|
1373
|
+
hostname,
|
|
1374
|
+
port,
|
|
1375
|
+
method: "PUT",
|
|
1376
|
+
headers,
|
|
1377
|
+
path: resolvedPath,
|
|
1378
|
+
body,
|
|
1379
|
+
});
|
|
1380
|
+
};
|
|
1381
|
+
exports.serializeAws_restJson1StopBotRecommendationCommand = serializeAws_restJson1StopBotRecommendationCommand;
|
|
1361
1382
|
const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
1362
1383
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1363
1384
|
const headers = {
|
|
@@ -5050,6 +5071,70 @@ const deserializeAws_restJson1StartImportCommandError = async (output, context)
|
|
|
5050
5071
|
});
|
|
5051
5072
|
}
|
|
5052
5073
|
};
|
|
5074
|
+
const deserializeAws_restJson1StopBotRecommendationCommand = async (output, context) => {
|
|
5075
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5076
|
+
return deserializeAws_restJson1StopBotRecommendationCommandError(output, context);
|
|
5077
|
+
}
|
|
5078
|
+
const contents = map({
|
|
5079
|
+
$metadata: deserializeMetadata(output),
|
|
5080
|
+
});
|
|
5081
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5082
|
+
if (data.botId != null) {
|
|
5083
|
+
contents.botId = (0, smithy_client_1.expectString)(data.botId);
|
|
5084
|
+
}
|
|
5085
|
+
if (data.botRecommendationId != null) {
|
|
5086
|
+
contents.botRecommendationId = (0, smithy_client_1.expectString)(data.botRecommendationId);
|
|
5087
|
+
}
|
|
5088
|
+
if (data.botRecommendationStatus != null) {
|
|
5089
|
+
contents.botRecommendationStatus = (0, smithy_client_1.expectString)(data.botRecommendationStatus);
|
|
5090
|
+
}
|
|
5091
|
+
if (data.botVersion != null) {
|
|
5092
|
+
contents.botVersion = (0, smithy_client_1.expectString)(data.botVersion);
|
|
5093
|
+
}
|
|
5094
|
+
if (data.localeId != null) {
|
|
5095
|
+
contents.localeId = (0, smithy_client_1.expectString)(data.localeId);
|
|
5096
|
+
}
|
|
5097
|
+
return contents;
|
|
5098
|
+
};
|
|
5099
|
+
exports.deserializeAws_restJson1StopBotRecommendationCommand = deserializeAws_restJson1StopBotRecommendationCommand;
|
|
5100
|
+
const deserializeAws_restJson1StopBotRecommendationCommandError = async (output, context) => {
|
|
5101
|
+
const parsedOutput = {
|
|
5102
|
+
...output,
|
|
5103
|
+
body: await parseBody(output.body, context),
|
|
5104
|
+
};
|
|
5105
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5106
|
+
switch (errorCode) {
|
|
5107
|
+
case "ConflictException":
|
|
5108
|
+
case "com.amazonaws.lexmodelsv2#ConflictException":
|
|
5109
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
5110
|
+
case "InternalServerException":
|
|
5111
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException":
|
|
5112
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5113
|
+
case "PreconditionFailedException":
|
|
5114
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
|
|
5115
|
+
throw await deserializeAws_restJson1PreconditionFailedExceptionResponse(parsedOutput, context);
|
|
5116
|
+
case "ResourceNotFoundException":
|
|
5117
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
|
|
5118
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5119
|
+
case "ServiceQuotaExceededException":
|
|
5120
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
|
|
5121
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
5122
|
+
case "ThrottlingException":
|
|
5123
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException":
|
|
5124
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5125
|
+
case "ValidationException":
|
|
5126
|
+
case "com.amazonaws.lexmodelsv2#ValidationException":
|
|
5127
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5128
|
+
default:
|
|
5129
|
+
const parsedBody = parsedOutput.body;
|
|
5130
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5131
|
+
output,
|
|
5132
|
+
parsedBody,
|
|
5133
|
+
exceptionCtor: LexModelsV2ServiceException_1.LexModelsV2ServiceException,
|
|
5134
|
+
errorCode,
|
|
5135
|
+
});
|
|
5136
|
+
}
|
|
5137
|
+
};
|
|
5053
5138
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
5054
5139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5055
5140
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
package/dist-es/LexModelsV2.js
CHANGED
|
@@ -54,6 +54,7 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
|
|
|
54
54
|
import { SearchAssociatedTranscriptsCommand, } from "./commands/SearchAssociatedTranscriptsCommand";
|
|
55
55
|
import { StartBotRecommendationCommand, } from "./commands/StartBotRecommendationCommand";
|
|
56
56
|
import { StartImportCommand } from "./commands/StartImportCommand";
|
|
57
|
+
import { StopBotRecommendationCommand, } from "./commands/StopBotRecommendationCommand";
|
|
57
58
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
58
59
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
59
60
|
import { UpdateBotAliasCommand, } from "./commands/UpdateBotAliasCommand";
|
|
@@ -841,6 +842,20 @@ var LexModelsV2 = (function (_super) {
|
|
|
841
842
|
return this.send(command, optionsOrCb);
|
|
842
843
|
}
|
|
843
844
|
};
|
|
845
|
+
LexModelsV2.prototype.stopBotRecommendation = function (args, optionsOrCb, cb) {
|
|
846
|
+
var command = new StopBotRecommendationCommand(args);
|
|
847
|
+
if (typeof optionsOrCb === "function") {
|
|
848
|
+
this.send(command, optionsOrCb);
|
|
849
|
+
}
|
|
850
|
+
else if (typeof cb === "function") {
|
|
851
|
+
if (typeof optionsOrCb !== "object")
|
|
852
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
853
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
854
|
+
}
|
|
855
|
+
else {
|
|
856
|
+
return this.send(command, optionsOrCb);
|
|
857
|
+
}
|
|
858
|
+
};
|
|
844
859
|
LexModelsV2.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
845
860
|
var command = new TagResourceCommand(args);
|
|
846
861
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { StopBotRecommendationRequestFilterSensitiveLog, StopBotRecommendationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1StopBotRecommendationCommand, serializeAws_restJson1StopBotRecommendationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var StopBotRecommendationCommand = (function (_super) {
|
|
7
|
+
__extends(StopBotRecommendationCommand, _super);
|
|
8
|
+
function StopBotRecommendationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
StopBotRecommendationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LexModelsV2Client";
|
|
18
|
+
var commandName = "StopBotRecommendationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: StopBotRecommendationRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: StopBotRecommendationResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
StopBotRecommendationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1StopBotRecommendationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
StopBotRecommendationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1StopBotRecommendationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return StopBotRecommendationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { StopBotRecommendationCommand };
|
|
@@ -53,6 +53,7 @@ export * from "./ListTagsForResourceCommand";
|
|
|
53
53
|
export * from "./SearchAssociatedTranscriptsCommand";
|
|
54
54
|
export * from "./StartBotRecommendationCommand";
|
|
55
55
|
export * from "./StartImportCommand";
|
|
56
|
+
export * from "./StopBotRecommendationCommand";
|
|
56
57
|
export * from "./TagResourceCommand";
|
|
57
58
|
export * from "./UntagResourceCommand";
|
|
58
59
|
export * from "./UpdateBotAliasCommand";
|
|
@@ -83,6 +83,8 @@ export var BotRecommendationStatus;
|
|
|
83
83
|
BotRecommendationStatus["Downloading"] = "Downloading";
|
|
84
84
|
BotRecommendationStatus["Failed"] = "Failed";
|
|
85
85
|
BotRecommendationStatus["Processing"] = "Processing";
|
|
86
|
+
BotRecommendationStatus["Stopped"] = "Stopped";
|
|
87
|
+
BotRecommendationStatus["Stopping"] = "Stopping";
|
|
86
88
|
BotRecommendationStatus["Updating"] = "Updating";
|
|
87
89
|
})(BotRecommendationStatus || (BotRecommendationStatus = {}));
|
|
88
90
|
export var BotSortAttribute;
|
|
@@ -577,6 +579,8 @@ export var StartBotRecommendationRequestFilterSensitiveLog = function (obj) { re
|
|
|
577
579
|
export var StartBotRecommendationResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.encryptionSetting && { encryptionSetting: EncryptionSettingFilterSensitiveLog(obj.encryptionSetting) }))); };
|
|
578
580
|
export var StartImportRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.filePassword && { filePassword: SENSITIVE_STRING }))); };
|
|
579
581
|
export var StartImportResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
582
|
+
export var StopBotRecommendationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
583
|
+
export var StopBotRecommendationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
580
584
|
export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
581
585
|
export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
582
586
|
export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -606,5 +610,3 @@ export var PostDialogCodeHookInvocationSpecificationFilterSensitiveLog = functio
|
|
|
606
610
|
export var PostFulfillmentStatusSpecificationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
607
611
|
export var DialogCodeHookInvocationSettingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
608
612
|
export var FulfillmentCodeHookSettingsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
609
|
-
export var InitialResponseSettingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
610
|
-
export var SlotCaptureSettingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
export var InitialResponseSettingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
3
|
+
export var SlotCaptureSettingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
2
4
|
export var SlotValueElicitationSettingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
3
5
|
export var IntentConfirmationSettingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
4
6
|
export var CreateSlotRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1482,6 +1482,32 @@ export var serializeAws_restJson1StartImportCommand = function (input, context)
|
|
|
1482
1482
|
}
|
|
1483
1483
|
});
|
|
1484
1484
|
}); };
|
|
1485
|
+
export var serializeAws_restJson1StopBotRecommendationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1486
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1487
|
+
return __generator(this, function (_c) {
|
|
1488
|
+
switch (_c.label) {
|
|
1489
|
+
case 0: return [4, context.endpoint()];
|
|
1490
|
+
case 1:
|
|
1491
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1492
|
+
headers = {};
|
|
1493
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1494
|
+
"/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/stopbotrecommendation";
|
|
1495
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "botId", function () { return input.botId; }, "{botId}", false);
|
|
1496
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "botVersion", function () { return input.botVersion; }, "{botVersion}", false);
|
|
1497
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "localeId", function () { return input.localeId; }, "{localeId}", false);
|
|
1498
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "botRecommendationId", function () { return input.botRecommendationId; }, "{botRecommendationId}", false);
|
|
1499
|
+
return [2, new __HttpRequest({
|
|
1500
|
+
protocol: protocol,
|
|
1501
|
+
hostname: hostname,
|
|
1502
|
+
port: port,
|
|
1503
|
+
method: "PUT",
|
|
1504
|
+
headers: headers,
|
|
1505
|
+
path: resolvedPath,
|
|
1506
|
+
body: body,
|
|
1507
|
+
})];
|
|
1508
|
+
}
|
|
1509
|
+
});
|
|
1510
|
+
}); };
|
|
1485
1511
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1486
1512
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1487
1513
|
return __generator(this, function (_c) {
|
|
@@ -6596,6 +6622,98 @@ var deserializeAws_restJson1StartImportCommandError = function (output, context)
|
|
|
6596
6622
|
}
|
|
6597
6623
|
});
|
|
6598
6624
|
}); };
|
|
6625
|
+
export var deserializeAws_restJson1StopBotRecommendationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6626
|
+
var contents, data, _a, _b;
|
|
6627
|
+
return __generator(this, function (_c) {
|
|
6628
|
+
switch (_c.label) {
|
|
6629
|
+
case 0:
|
|
6630
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
6631
|
+
return [2, deserializeAws_restJson1StopBotRecommendationCommandError(output, context)];
|
|
6632
|
+
}
|
|
6633
|
+
contents = map({
|
|
6634
|
+
$metadata: deserializeMetadata(output),
|
|
6635
|
+
});
|
|
6636
|
+
_a = __expectNonNull;
|
|
6637
|
+
_b = __expectObject;
|
|
6638
|
+
return [4, parseBody(output.body, context)];
|
|
6639
|
+
case 1:
|
|
6640
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6641
|
+
if (data.botId != null) {
|
|
6642
|
+
contents.botId = __expectString(data.botId);
|
|
6643
|
+
}
|
|
6644
|
+
if (data.botRecommendationId != null) {
|
|
6645
|
+
contents.botRecommendationId = __expectString(data.botRecommendationId);
|
|
6646
|
+
}
|
|
6647
|
+
if (data.botRecommendationStatus != null) {
|
|
6648
|
+
contents.botRecommendationStatus = __expectString(data.botRecommendationStatus);
|
|
6649
|
+
}
|
|
6650
|
+
if (data.botVersion != null) {
|
|
6651
|
+
contents.botVersion = __expectString(data.botVersion);
|
|
6652
|
+
}
|
|
6653
|
+
if (data.localeId != null) {
|
|
6654
|
+
contents.localeId = __expectString(data.localeId);
|
|
6655
|
+
}
|
|
6656
|
+
return [2, contents];
|
|
6657
|
+
}
|
|
6658
|
+
});
|
|
6659
|
+
}); };
|
|
6660
|
+
var deserializeAws_restJson1StopBotRecommendationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6661
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6662
|
+
var _c;
|
|
6663
|
+
return __generator(this, function (_d) {
|
|
6664
|
+
switch (_d.label) {
|
|
6665
|
+
case 0:
|
|
6666
|
+
_a = [__assign({}, output)];
|
|
6667
|
+
_c = {};
|
|
6668
|
+
return [4, parseBody(output.body, context)];
|
|
6669
|
+
case 1:
|
|
6670
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6671
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6672
|
+
_b = errorCode;
|
|
6673
|
+
switch (_b) {
|
|
6674
|
+
case "ConflictException": return [3, 2];
|
|
6675
|
+
case "com.amazonaws.lexmodelsv2#ConflictException": return [3, 2];
|
|
6676
|
+
case "InternalServerException": return [3, 4];
|
|
6677
|
+
case "com.amazonaws.lexmodelsv2#InternalServerException": return [3, 4];
|
|
6678
|
+
case "PreconditionFailedException": return [3, 6];
|
|
6679
|
+
case "com.amazonaws.lexmodelsv2#PreconditionFailedException": return [3, 6];
|
|
6680
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
6681
|
+
case "com.amazonaws.lexmodelsv2#ResourceNotFoundException": return [3, 8];
|
|
6682
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
6683
|
+
case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException": return [3, 10];
|
|
6684
|
+
case "ThrottlingException": return [3, 12];
|
|
6685
|
+
case "com.amazonaws.lexmodelsv2#ThrottlingException": return [3, 12];
|
|
6686
|
+
case "ValidationException": return [3, 14];
|
|
6687
|
+
case "com.amazonaws.lexmodelsv2#ValidationException": return [3, 14];
|
|
6688
|
+
}
|
|
6689
|
+
return [3, 16];
|
|
6690
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
6691
|
+
case 3: throw _d.sent();
|
|
6692
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
6693
|
+
case 5: throw _d.sent();
|
|
6694
|
+
case 6: return [4, deserializeAws_restJson1PreconditionFailedExceptionResponse(parsedOutput, context)];
|
|
6695
|
+
case 7: throw _d.sent();
|
|
6696
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
6697
|
+
case 9: throw _d.sent();
|
|
6698
|
+
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
6699
|
+
case 11: throw _d.sent();
|
|
6700
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6701
|
+
case 13: throw _d.sent();
|
|
6702
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
6703
|
+
case 15: throw _d.sent();
|
|
6704
|
+
case 16:
|
|
6705
|
+
parsedBody = parsedOutput.body;
|
|
6706
|
+
throwDefaultError({
|
|
6707
|
+
output: output,
|
|
6708
|
+
parsedBody: parsedBody,
|
|
6709
|
+
exceptionCtor: __BaseException,
|
|
6710
|
+
errorCode: errorCode,
|
|
6711
|
+
});
|
|
6712
|
+
_d.label = 17;
|
|
6713
|
+
case 17: return [2];
|
|
6714
|
+
}
|
|
6715
|
+
});
|
|
6716
|
+
}); };
|
|
6599
6717
|
export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6600
6718
|
var contents;
|
|
6601
6719
|
return __generator(this, function (_a) {
|
|
@@ -54,6 +54,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
|
|
|
54
54
|
import { SearchAssociatedTranscriptsCommandInput, SearchAssociatedTranscriptsCommandOutput } from "./commands/SearchAssociatedTranscriptsCommand";
|
|
55
55
|
import { StartBotRecommendationCommandInput, StartBotRecommendationCommandOutput } from "./commands/StartBotRecommendationCommand";
|
|
56
56
|
import { StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
|
|
57
|
+
import { StopBotRecommendationCommandInput, StopBotRecommendationCommandOutput } from "./commands/StopBotRecommendationCommand";
|
|
57
58
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
58
59
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
59
60
|
import { UpdateBotAliasCommandInput, UpdateBotAliasCommandOutput } from "./commands/UpdateBotAliasCommand";
|
|
@@ -560,6 +561,12 @@ export declare class LexModelsV2 extends LexModelsV2Client {
|
|
|
560
561
|
startImport(args: StartImportCommandInput, options?: __HttpHandlerOptions): Promise<StartImportCommandOutput>;
|
|
561
562
|
startImport(args: StartImportCommandInput, cb: (err: any, data?: StartImportCommandOutput) => void): void;
|
|
562
563
|
startImport(args: StartImportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartImportCommandOutput) => void): void;
|
|
564
|
+
/**
|
|
565
|
+
* <p>Stop an already running Bot Recommendation request.</p>
|
|
566
|
+
*/
|
|
567
|
+
stopBotRecommendation(args: StopBotRecommendationCommandInput, options?: __HttpHandlerOptions): Promise<StopBotRecommendationCommandOutput>;
|
|
568
|
+
stopBotRecommendation(args: StopBotRecommendationCommandInput, cb: (err: any, data?: StopBotRecommendationCommandOutput) => void): void;
|
|
569
|
+
stopBotRecommendation(args: StopBotRecommendationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopBotRecommendationCommandOutput) => void): void;
|
|
563
570
|
/**
|
|
564
571
|
* <p>Adds the specified tags to the specified resource. If a tag key
|
|
565
572
|
* already exists, the existing value is replaced with the new
|