@aws-sdk/client-lex-models-v2 3.154.0 → 3.155.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 +11 -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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.155.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.154.0...v3.155.0) (2022-08-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.154.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.153.0...v3.154.0) (2022-08-19)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-lex-models-v2
|
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
|
|
@@ -61,6 +61,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
|
|
|
61
61
|
import { SearchAssociatedTranscriptsCommandInput, SearchAssociatedTranscriptsCommandOutput } from "./commands/SearchAssociatedTranscriptsCommand";
|
|
62
62
|
import { StartBotRecommendationCommandInput, StartBotRecommendationCommandOutput } from "./commands/StartBotRecommendationCommand";
|
|
63
63
|
import { StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
|
|
64
|
+
import { StopBotRecommendationCommandInput, StopBotRecommendationCommandOutput } from "./commands/StopBotRecommendationCommand";
|
|
64
65
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
65
66
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
66
67
|
import { UpdateBotAliasCommandInput, UpdateBotAliasCommandOutput } from "./commands/UpdateBotAliasCommand";
|
|
@@ -72,8 +73,8 @@ import { UpdateIntentCommandInput, UpdateIntentCommandOutput } from "./commands/
|
|
|
72
73
|
import { UpdateResourcePolicyCommandInput, UpdateResourcePolicyCommandOutput } from "./commands/UpdateResourcePolicyCommand";
|
|
73
74
|
import { UpdateSlotCommandInput, UpdateSlotCommandOutput } from "./commands/UpdateSlotCommand";
|
|
74
75
|
import { UpdateSlotTypeCommandInput, UpdateSlotTypeCommandOutput } from "./commands/UpdateSlotTypeCommand";
|
|
75
|
-
export declare type ServiceInputTypes = BuildBotLocaleCommandInput | CreateBotAliasCommandInput | CreateBotCommandInput | CreateBotLocaleCommandInput | CreateBotVersionCommandInput | CreateExportCommandInput | CreateIntentCommandInput | CreateResourcePolicyCommandInput | CreateResourcePolicyStatementCommandInput | CreateSlotCommandInput | CreateSlotTypeCommandInput | CreateUploadUrlCommandInput | DeleteBotAliasCommandInput | DeleteBotCommandInput | DeleteBotLocaleCommandInput | DeleteBotVersionCommandInput | DeleteCustomVocabularyCommandInput | DeleteExportCommandInput | DeleteImportCommandInput | DeleteIntentCommandInput | DeleteResourcePolicyCommandInput | DeleteResourcePolicyStatementCommandInput | DeleteSlotCommandInput | DeleteSlotTypeCommandInput | DeleteUtterancesCommandInput | DescribeBotAliasCommandInput | DescribeBotCommandInput | DescribeBotLocaleCommandInput | DescribeBotRecommendationCommandInput | DescribeBotVersionCommandInput | DescribeCustomVocabularyMetadataCommandInput | DescribeExportCommandInput | DescribeImportCommandInput | DescribeIntentCommandInput | DescribeResourcePolicyCommandInput | DescribeSlotCommandInput | DescribeSlotTypeCommandInput | ListAggregatedUtterancesCommandInput | ListBotAliasesCommandInput | ListBotLocalesCommandInput | ListBotRecommendationsCommandInput | ListBotVersionsCommandInput | ListBotsCommandInput | ListBuiltInIntentsCommandInput | ListBuiltInSlotTypesCommandInput | ListExportsCommandInput | ListImportsCommandInput | ListIntentsCommandInput | ListRecommendedIntentsCommandInput | ListSlotTypesCommandInput | ListSlotsCommandInput | ListTagsForResourceCommandInput | SearchAssociatedTranscriptsCommandInput | StartBotRecommendationCommandInput | StartImportCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBotAliasCommandInput | UpdateBotCommandInput | UpdateBotLocaleCommandInput | UpdateBotRecommendationCommandInput | UpdateExportCommandInput | UpdateIntentCommandInput | UpdateResourcePolicyCommandInput | UpdateSlotCommandInput | UpdateSlotTypeCommandInput;
|
|
76
|
-
export declare type ServiceOutputTypes = BuildBotLocaleCommandOutput | CreateBotAliasCommandOutput | CreateBotCommandOutput | CreateBotLocaleCommandOutput | CreateBotVersionCommandOutput | CreateExportCommandOutput | CreateIntentCommandOutput | CreateResourcePolicyCommandOutput | CreateResourcePolicyStatementCommandOutput | CreateSlotCommandOutput | CreateSlotTypeCommandOutput | CreateUploadUrlCommandOutput | DeleteBotAliasCommandOutput | DeleteBotCommandOutput | DeleteBotLocaleCommandOutput | DeleteBotVersionCommandOutput | DeleteCustomVocabularyCommandOutput | DeleteExportCommandOutput | DeleteImportCommandOutput | DeleteIntentCommandOutput | DeleteResourcePolicyCommandOutput | DeleteResourcePolicyStatementCommandOutput | DeleteSlotCommandOutput | DeleteSlotTypeCommandOutput | DeleteUtterancesCommandOutput | DescribeBotAliasCommandOutput | DescribeBotCommandOutput | DescribeBotLocaleCommandOutput | DescribeBotRecommendationCommandOutput | DescribeBotVersionCommandOutput | DescribeCustomVocabularyMetadataCommandOutput | DescribeExportCommandOutput | DescribeImportCommandOutput | DescribeIntentCommandOutput | DescribeResourcePolicyCommandOutput | DescribeSlotCommandOutput | DescribeSlotTypeCommandOutput | ListAggregatedUtterancesCommandOutput | ListBotAliasesCommandOutput | ListBotLocalesCommandOutput | ListBotRecommendationsCommandOutput | ListBotVersionsCommandOutput | ListBotsCommandOutput | ListBuiltInIntentsCommandOutput | ListBuiltInSlotTypesCommandOutput | ListExportsCommandOutput | ListImportsCommandOutput | ListIntentsCommandOutput | ListRecommendedIntentsCommandOutput | ListSlotTypesCommandOutput | ListSlotsCommandOutput | ListTagsForResourceCommandOutput | SearchAssociatedTranscriptsCommandOutput | StartBotRecommendationCommandOutput | StartImportCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBotAliasCommandOutput | UpdateBotCommandOutput | UpdateBotLocaleCommandOutput | UpdateBotRecommendationCommandOutput | UpdateExportCommandOutput | UpdateIntentCommandOutput | UpdateResourcePolicyCommandOutput | UpdateSlotCommandOutput | UpdateSlotTypeCommandOutput;
|
|
76
|
+
export declare type ServiceInputTypes = BuildBotLocaleCommandInput | CreateBotAliasCommandInput | CreateBotCommandInput | CreateBotLocaleCommandInput | CreateBotVersionCommandInput | CreateExportCommandInput | CreateIntentCommandInput | CreateResourcePolicyCommandInput | CreateResourcePolicyStatementCommandInput | CreateSlotCommandInput | CreateSlotTypeCommandInput | CreateUploadUrlCommandInput | DeleteBotAliasCommandInput | DeleteBotCommandInput | DeleteBotLocaleCommandInput | DeleteBotVersionCommandInput | DeleteCustomVocabularyCommandInput | DeleteExportCommandInput | DeleteImportCommandInput | DeleteIntentCommandInput | DeleteResourcePolicyCommandInput | DeleteResourcePolicyStatementCommandInput | DeleteSlotCommandInput | DeleteSlotTypeCommandInput | DeleteUtterancesCommandInput | DescribeBotAliasCommandInput | DescribeBotCommandInput | DescribeBotLocaleCommandInput | DescribeBotRecommendationCommandInput | DescribeBotVersionCommandInput | DescribeCustomVocabularyMetadataCommandInput | DescribeExportCommandInput | DescribeImportCommandInput | DescribeIntentCommandInput | DescribeResourcePolicyCommandInput | DescribeSlotCommandInput | DescribeSlotTypeCommandInput | ListAggregatedUtterancesCommandInput | ListBotAliasesCommandInput | ListBotLocalesCommandInput | ListBotRecommendationsCommandInput | ListBotVersionsCommandInput | ListBotsCommandInput | ListBuiltInIntentsCommandInput | ListBuiltInSlotTypesCommandInput | ListExportsCommandInput | ListImportsCommandInput | ListIntentsCommandInput | ListRecommendedIntentsCommandInput | ListSlotTypesCommandInput | ListSlotsCommandInput | ListTagsForResourceCommandInput | SearchAssociatedTranscriptsCommandInput | StartBotRecommendationCommandInput | StartImportCommandInput | StopBotRecommendationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBotAliasCommandInput | UpdateBotCommandInput | UpdateBotLocaleCommandInput | UpdateBotRecommendationCommandInput | UpdateExportCommandInput | UpdateIntentCommandInput | UpdateResourcePolicyCommandInput | UpdateSlotCommandInput | UpdateSlotTypeCommandInput;
|
|
77
|
+
export declare type ServiceOutputTypes = BuildBotLocaleCommandOutput | CreateBotAliasCommandOutput | CreateBotCommandOutput | CreateBotLocaleCommandOutput | CreateBotVersionCommandOutput | CreateExportCommandOutput | CreateIntentCommandOutput | CreateResourcePolicyCommandOutput | CreateResourcePolicyStatementCommandOutput | CreateSlotCommandOutput | CreateSlotTypeCommandOutput | CreateUploadUrlCommandOutput | DeleteBotAliasCommandOutput | DeleteBotCommandOutput | DeleteBotLocaleCommandOutput | DeleteBotVersionCommandOutput | DeleteCustomVocabularyCommandOutput | DeleteExportCommandOutput | DeleteImportCommandOutput | DeleteIntentCommandOutput | DeleteResourcePolicyCommandOutput | DeleteResourcePolicyStatementCommandOutput | DeleteSlotCommandOutput | DeleteSlotTypeCommandOutput | DeleteUtterancesCommandOutput | DescribeBotAliasCommandOutput | DescribeBotCommandOutput | DescribeBotLocaleCommandOutput | DescribeBotRecommendationCommandOutput | DescribeBotVersionCommandOutput | DescribeCustomVocabularyMetadataCommandOutput | DescribeExportCommandOutput | DescribeImportCommandOutput | DescribeIntentCommandOutput | DescribeResourcePolicyCommandOutput | DescribeSlotCommandOutput | DescribeSlotTypeCommandOutput | ListAggregatedUtterancesCommandOutput | ListBotAliasesCommandOutput | ListBotLocalesCommandOutput | ListBotRecommendationsCommandOutput | ListBotVersionsCommandOutput | ListBotsCommandOutput | ListBuiltInIntentsCommandOutput | ListBuiltInSlotTypesCommandOutput | ListExportsCommandOutput | ListImportsCommandOutput | ListIntentsCommandOutput | ListRecommendedIntentsCommandOutput | ListSlotTypesCommandOutput | ListSlotsCommandOutput | ListTagsForResourceCommandOutput | SearchAssociatedTranscriptsCommandOutput | StartBotRecommendationCommandOutput | StartImportCommandOutput | StopBotRecommendationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBotAliasCommandOutput | UpdateBotCommandOutput | UpdateBotLocaleCommandOutput | UpdateBotRecommendationCommandOutput | UpdateExportCommandOutput | UpdateIntentCommandOutput | UpdateResourcePolicyCommandOutput | UpdateSlotCommandOutput | UpdateSlotTypeCommandOutput;
|
|
77
78
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
78
79
|
/**
|
|
79
80
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
+
import { StopBotRecommendationRequest, StopBotRecommendationResponse } from "../models/models_0";
|
|
5
|
+
export interface StopBotRecommendationCommandInput extends StopBotRecommendationRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface StopBotRecommendationCommandOutput extends StopBotRecommendationResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Stop an already running Bot Recommendation request.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { LexModelsV2Client, StopBotRecommendationCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
15
|
+
* // const { LexModelsV2Client, StopBotRecommendationCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
16
|
+
* const client = new LexModelsV2Client(config);
|
|
17
|
+
* const command = new StopBotRecommendationCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link StopBotRecommendationCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link StopBotRecommendationCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link LexModelsV2ClientResolvedConfig | config} for LexModelsV2Client's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class StopBotRecommendationCommand extends $Command<StopBotRecommendationCommandInput, StopBotRecommendationCommandOutput, LexModelsV2ClientResolvedConfig> {
|
|
27
|
+
readonly input: StopBotRecommendationCommandInput;
|
|
28
|
+
constructor(input: StopBotRecommendationCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexModelsV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StopBotRecommendationCommandInput, StopBotRecommendationCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -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";
|
|
@@ -685,6 +685,8 @@ export declare enum BotRecommendationStatus {
|
|
|
685
685
|
Downloading = "Downloading",
|
|
686
686
|
Failed = "Failed",
|
|
687
687
|
Processing = "Processing",
|
|
688
|
+
Stopped = "Stopped",
|
|
689
|
+
Stopping = "Stopping",
|
|
688
690
|
Updating = "Updating"
|
|
689
691
|
}
|
|
690
692
|
/**
|
|
@@ -5305,6 +5307,58 @@ export interface StartImportResponse {
|
|
|
5305
5307
|
*/
|
|
5306
5308
|
creationDateTime?: Date;
|
|
5307
5309
|
}
|
|
5310
|
+
export interface StopBotRecommendationRequest {
|
|
5311
|
+
/**
|
|
5312
|
+
* <p>The unique identifier of the bot containing the bot
|
|
5313
|
+
* recommendation to be stopped.</p>
|
|
5314
|
+
*/
|
|
5315
|
+
botId: string | undefined;
|
|
5316
|
+
/**
|
|
5317
|
+
* <p>The version of the bot containing the bot recommendation.</p>
|
|
5318
|
+
*/
|
|
5319
|
+
botVersion: string | undefined;
|
|
5320
|
+
/**
|
|
5321
|
+
* <p>The identifier of the language and locale of the bot recommendation
|
|
5322
|
+
* to stop. The string must match one of the supported locales. For more
|
|
5323
|
+
* information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported languages</a>
|
|
5324
|
+
* </p>
|
|
5325
|
+
*/
|
|
5326
|
+
localeId: string | undefined;
|
|
5327
|
+
/**
|
|
5328
|
+
* <p>The unique identifier of the bot recommendation to be
|
|
5329
|
+
* stopped.</p>
|
|
5330
|
+
*/
|
|
5331
|
+
botRecommendationId: string | undefined;
|
|
5332
|
+
}
|
|
5333
|
+
export interface StopBotRecommendationResponse {
|
|
5334
|
+
/**
|
|
5335
|
+
* <p>The unique identifier of the bot containing the bot recommendation that
|
|
5336
|
+
* is being stopped.</p>
|
|
5337
|
+
*/
|
|
5338
|
+
botId?: string;
|
|
5339
|
+
/**
|
|
5340
|
+
* <p>The version of the bot containing the recommendation that is being
|
|
5341
|
+
* stopped.</p>
|
|
5342
|
+
*/
|
|
5343
|
+
botVersion?: string;
|
|
5344
|
+
/**
|
|
5345
|
+
* <p>The identifier of the language and locale of the bot response
|
|
5346
|
+
* to stop. The string must match one of the supported locales. For more
|
|
5347
|
+
* information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported languages</a>
|
|
5348
|
+
* </p>
|
|
5349
|
+
*/
|
|
5350
|
+
localeId?: string;
|
|
5351
|
+
/**
|
|
5352
|
+
* <p>The status of the bot recommendation. If the status is Failed,
|
|
5353
|
+
* then the reasons for the failure are listed in the failureReasons field.</p>
|
|
5354
|
+
*/
|
|
5355
|
+
botRecommendationStatus?: BotRecommendationStatus | string;
|
|
5356
|
+
/**
|
|
5357
|
+
* <p>The unique identifier of the bot recommendation that is being
|
|
5358
|
+
* stopped.</p>
|
|
5359
|
+
*/
|
|
5360
|
+
botRecommendationId?: string;
|
|
5361
|
+
}
|
|
5308
5362
|
export interface TagResourceRequest {
|
|
5309
5363
|
/**
|
|
5310
5364
|
* <p>The Amazon Resource Name (ARN) of the bot, bot alias, or bot channel
|
|
@@ -6173,80 +6227,6 @@ export interface FulfillmentCodeHookSettings {
|
|
|
6173
6227
|
*/
|
|
6174
6228
|
active?: boolean;
|
|
6175
6229
|
}
|
|
6176
|
-
/**
|
|
6177
|
-
* <p>Configuration setting for a response sent to the user before Amazon Lex starts eliciting slots.</p>
|
|
6178
|
-
*/
|
|
6179
|
-
export interface InitialResponseSetting {
|
|
6180
|
-
/**
|
|
6181
|
-
* <p>Specifies a list of message groups that Amazon Lex uses to respond the
|
|
6182
|
-
* user input.</p>
|
|
6183
|
-
*/
|
|
6184
|
-
initialResponse?: ResponseSpecification;
|
|
6185
|
-
/**
|
|
6186
|
-
* <p>The next step in the conversation.</p>
|
|
6187
|
-
*/
|
|
6188
|
-
nextStep?: DialogState;
|
|
6189
|
-
/**
|
|
6190
|
-
* <p>Provides a list of conditional branches. Branches are evaluated in
|
|
6191
|
-
* the order that they are entered in the list. The first branch with a
|
|
6192
|
-
* condition that evaluates to true is executed. The last branch in the
|
|
6193
|
-
* list is the default branch. The default branch should not have any condition
|
|
6194
|
-
* expression. The default branch is executed if no other branch has a
|
|
6195
|
-
* matching condition.</p>
|
|
6196
|
-
*/
|
|
6197
|
-
conditional?: ConditionalSpecification;
|
|
6198
|
-
/**
|
|
6199
|
-
* <p> Settings that specify the dialog code hook that is
|
|
6200
|
-
* called by Amazon Lex at a step of the conversation. </p>
|
|
6201
|
-
*/
|
|
6202
|
-
codeHook?: DialogCodeHookInvocationSetting;
|
|
6203
|
-
}
|
|
6204
|
-
/**
|
|
6205
|
-
* <p>Settings used when Amazon Lex successfully captures a slot
|
|
6206
|
-
* value from a user.</p>
|
|
6207
|
-
*/
|
|
6208
|
-
export interface SlotCaptureSetting {
|
|
6209
|
-
/**
|
|
6210
|
-
* <p>Specifies a list of message groups that Amazon Lex uses to respond the
|
|
6211
|
-
* user input.</p>
|
|
6212
|
-
*/
|
|
6213
|
-
captureResponse?: ResponseSpecification;
|
|
6214
|
-
/**
|
|
6215
|
-
* <p>Specifies the next step that the bot runs when the slot value is
|
|
6216
|
-
* captured before the code hook times out.</p>
|
|
6217
|
-
*/
|
|
6218
|
-
captureNextStep?: DialogState;
|
|
6219
|
-
/**
|
|
6220
|
-
* <p>A list of conditional branches to evaluate after the slot value is
|
|
6221
|
-
* captured.</p>
|
|
6222
|
-
*/
|
|
6223
|
-
captureConditional?: ConditionalSpecification;
|
|
6224
|
-
/**
|
|
6225
|
-
* <p>Specifies a list of message groups that Amazon Lex uses to respond the
|
|
6226
|
-
* user input.</p>
|
|
6227
|
-
*/
|
|
6228
|
-
failureResponse?: ResponseSpecification;
|
|
6229
|
-
/**
|
|
6230
|
-
* <p>Specifies the next step that the bot runs when the slot value code
|
|
6231
|
-
* is not recognized.</p>
|
|
6232
|
-
*/
|
|
6233
|
-
failureNextStep?: DialogState;
|
|
6234
|
-
/**
|
|
6235
|
-
* <p>A list of conditional branches to evaluate when the slot value isn't
|
|
6236
|
-
* captured.</p>
|
|
6237
|
-
*/
|
|
6238
|
-
failureConditional?: ConditionalSpecification;
|
|
6239
|
-
/**
|
|
6240
|
-
* <p>Code hook called after Amazon Lex successfully captures a
|
|
6241
|
-
* slot value.</p>
|
|
6242
|
-
*/
|
|
6243
|
-
codeHook?: DialogCodeHookInvocationSetting;
|
|
6244
|
-
/**
|
|
6245
|
-
* <p>Code hook called when Amazon Lex doesn't capture a slot
|
|
6246
|
-
* value.</p>
|
|
6247
|
-
*/
|
|
6248
|
-
elicitationCodeHook?: ElicitationCodeHookInvocationSetting;
|
|
6249
|
-
}
|
|
6250
6230
|
/**
|
|
6251
6231
|
* @internal
|
|
6252
6232
|
*/
|
|
@@ -7087,6 +7067,14 @@ export declare const StartImportRequestFilterSensitiveLog: (obj: StartImportRequ
|
|
|
7087
7067
|
* @internal
|
|
7088
7068
|
*/
|
|
7089
7069
|
export declare const StartImportResponseFilterSensitiveLog: (obj: StartImportResponse) => any;
|
|
7070
|
+
/**
|
|
7071
|
+
* @internal
|
|
7072
|
+
*/
|
|
7073
|
+
export declare const StopBotRecommendationRequestFilterSensitiveLog: (obj: StopBotRecommendationRequest) => any;
|
|
7074
|
+
/**
|
|
7075
|
+
* @internal
|
|
7076
|
+
*/
|
|
7077
|
+
export declare const StopBotRecommendationResponseFilterSensitiveLog: (obj: StopBotRecommendationResponse) => any;
|
|
7090
7078
|
/**
|
|
7091
7079
|
* @internal
|
|
7092
7080
|
*/
|
|
@@ -7203,11 +7191,3 @@ export declare const DialogCodeHookInvocationSettingFilterSensitiveLog: (obj: Di
|
|
|
7203
7191
|
* @internal
|
|
7204
7192
|
*/
|
|
7205
7193
|
export declare const FulfillmentCodeHookSettingsFilterSensitiveLog: (obj: FulfillmentCodeHookSettings) => any;
|
|
7206
|
-
/**
|
|
7207
|
-
* @internal
|
|
7208
|
-
*/
|
|
7209
|
-
export declare const InitialResponseSettingFilterSensitiveLog: (obj: InitialResponseSetting) => any;
|
|
7210
|
-
/**
|
|
7211
|
-
* @internal
|
|
7212
|
-
*/
|
|
7213
|
-
export declare const SlotCaptureSettingFilterSensitiveLog: (obj: SlotCaptureSetting) => any;
|
|
@@ -1,4 +1,78 @@
|
|
|
1
|
-
import { ConditionalSpecification, DialogCodeHookInvocationSetting, DialogCodeHookSettings, DialogState, ElicitationCodeHookInvocationSetting, FulfillmentCodeHookSettings,
|
|
1
|
+
import { ConditionalSpecification, DialogCodeHookInvocationSetting, DialogCodeHookSettings, DialogState, ElicitationCodeHookInvocationSetting, FulfillmentCodeHookSettings, InputContext, IntentClosingSetting, KendraConfiguration, MultipleValuesSetting, ObfuscationSetting, OutputContext, PromptSpecification, ResponseSpecification, SampleUtterance, SlotConstraint, SlotDefaultValueSpecification, SlotPriority, WaitAndContinueSpecification } from "./models_0";
|
|
2
|
+
/**
|
|
3
|
+
* <p>Configuration setting for a response sent to the user before Amazon Lex starts eliciting slots.</p>
|
|
4
|
+
*/
|
|
5
|
+
export interface InitialResponseSetting {
|
|
6
|
+
/**
|
|
7
|
+
* <p>Specifies a list of message groups that Amazon Lex uses to respond the
|
|
8
|
+
* user input.</p>
|
|
9
|
+
*/
|
|
10
|
+
initialResponse?: ResponseSpecification;
|
|
11
|
+
/**
|
|
12
|
+
* <p>The next step in the conversation.</p>
|
|
13
|
+
*/
|
|
14
|
+
nextStep?: DialogState;
|
|
15
|
+
/**
|
|
16
|
+
* <p>Provides a list of conditional branches. Branches are evaluated in
|
|
17
|
+
* the order that they are entered in the list. The first branch with a
|
|
18
|
+
* condition that evaluates to true is executed. The last branch in the
|
|
19
|
+
* list is the default branch. The default branch should not have any condition
|
|
20
|
+
* expression. The default branch is executed if no other branch has a
|
|
21
|
+
* matching condition.</p>
|
|
22
|
+
*/
|
|
23
|
+
conditional?: ConditionalSpecification;
|
|
24
|
+
/**
|
|
25
|
+
* <p> Settings that specify the dialog code hook that is
|
|
26
|
+
* called by Amazon Lex at a step of the conversation. </p>
|
|
27
|
+
*/
|
|
28
|
+
codeHook?: DialogCodeHookInvocationSetting;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* <p>Settings used when Amazon Lex successfully captures a slot
|
|
32
|
+
* value from a user.</p>
|
|
33
|
+
*/
|
|
34
|
+
export interface SlotCaptureSetting {
|
|
35
|
+
/**
|
|
36
|
+
* <p>Specifies a list of message groups that Amazon Lex uses to respond the
|
|
37
|
+
* user input.</p>
|
|
38
|
+
*/
|
|
39
|
+
captureResponse?: ResponseSpecification;
|
|
40
|
+
/**
|
|
41
|
+
* <p>Specifies the next step that the bot runs when the slot value is
|
|
42
|
+
* captured before the code hook times out.</p>
|
|
43
|
+
*/
|
|
44
|
+
captureNextStep?: DialogState;
|
|
45
|
+
/**
|
|
46
|
+
* <p>A list of conditional branches to evaluate after the slot value is
|
|
47
|
+
* captured.</p>
|
|
48
|
+
*/
|
|
49
|
+
captureConditional?: ConditionalSpecification;
|
|
50
|
+
/**
|
|
51
|
+
* <p>Specifies a list of message groups that Amazon Lex uses to respond the
|
|
52
|
+
* user input.</p>
|
|
53
|
+
*/
|
|
54
|
+
failureResponse?: ResponseSpecification;
|
|
55
|
+
/**
|
|
56
|
+
* <p>Specifies the next step that the bot runs when the slot value code
|
|
57
|
+
* is not recognized.</p>
|
|
58
|
+
*/
|
|
59
|
+
failureNextStep?: DialogState;
|
|
60
|
+
/**
|
|
61
|
+
* <p>A list of conditional branches to evaluate when the slot value isn't
|
|
62
|
+
* captured.</p>
|
|
63
|
+
*/
|
|
64
|
+
failureConditional?: ConditionalSpecification;
|
|
65
|
+
/**
|
|
66
|
+
* <p>Code hook called after Amazon Lex successfully captures a
|
|
67
|
+
* slot value.</p>
|
|
68
|
+
*/
|
|
69
|
+
codeHook?: DialogCodeHookInvocationSetting;
|
|
70
|
+
/**
|
|
71
|
+
* <p>Code hook called when Amazon Lex doesn't capture a slot
|
|
72
|
+
* value.</p>
|
|
73
|
+
*/
|
|
74
|
+
elicitationCodeHook?: ElicitationCodeHookInvocationSetting;
|
|
75
|
+
}
|
|
2
76
|
/**
|
|
3
77
|
* <p>Settings that you can use for eliciting a slot value.</p>
|
|
4
78
|
*/
|
|
@@ -862,6 +936,14 @@ export interface UpdateIntentResponse {
|
|
|
862
936
|
*/
|
|
863
937
|
initialResponseSetting?: InitialResponseSetting;
|
|
864
938
|
}
|
|
939
|
+
/**
|
|
940
|
+
* @internal
|
|
941
|
+
*/
|
|
942
|
+
export declare const InitialResponseSettingFilterSensitiveLog: (obj: InitialResponseSetting) => any;
|
|
943
|
+
/**
|
|
944
|
+
* @internal
|
|
945
|
+
*/
|
|
946
|
+
export declare const SlotCaptureSettingFilterSensitiveLog: (obj: SlotCaptureSetting) => any;
|
|
865
947
|
/**
|
|
866
948
|
* @internal
|
|
867
949
|
*/
|
|
@@ -55,6 +55,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
|
|
|
55
55
|
import { SearchAssociatedTranscriptsCommandInput, SearchAssociatedTranscriptsCommandOutput } from "../commands/SearchAssociatedTranscriptsCommand";
|
|
56
56
|
import { StartBotRecommendationCommandInput, StartBotRecommendationCommandOutput } from "../commands/StartBotRecommendationCommand";
|
|
57
57
|
import { StartImportCommandInput, StartImportCommandOutput } from "../commands/StartImportCommand";
|
|
58
|
+
import { StopBotRecommendationCommandInput, StopBotRecommendationCommandOutput } from "../commands/StopBotRecommendationCommand";
|
|
58
59
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
59
60
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
60
61
|
import { UpdateBotAliasCommandInput, UpdateBotAliasCommandOutput } from "../commands/UpdateBotAliasCommand";
|
|
@@ -121,6 +122,7 @@ export declare const serializeAws_restJson1ListTagsForResourceCommand: (input: L
|
|
|
121
122
|
export declare const serializeAws_restJson1SearchAssociatedTranscriptsCommand: (input: SearchAssociatedTranscriptsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
122
123
|
export declare const serializeAws_restJson1StartBotRecommendationCommand: (input: StartBotRecommendationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
123
124
|
export declare const serializeAws_restJson1StartImportCommand: (input: StartImportCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
125
|
+
export declare const serializeAws_restJson1StopBotRecommendationCommand: (input: StopBotRecommendationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
124
126
|
export declare const serializeAws_restJson1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
125
127
|
export declare const serializeAws_restJson1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
126
128
|
export declare const serializeAws_restJson1UpdateBotCommand: (input: UpdateBotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -187,6 +189,7 @@ export declare const deserializeAws_restJson1ListTagsForResourceCommand: (output
|
|
|
187
189
|
export declare const deserializeAws_restJson1SearchAssociatedTranscriptsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchAssociatedTranscriptsCommandOutput>;
|
|
188
190
|
export declare const deserializeAws_restJson1StartBotRecommendationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartBotRecommendationCommandOutput>;
|
|
189
191
|
export declare const deserializeAws_restJson1StartImportCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartImportCommandOutput>;
|
|
192
|
+
export declare const deserializeAws_restJson1StopBotRecommendationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopBotRecommendationCommandOutput>;
|
|
190
193
|
export declare const deserializeAws_restJson1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
191
194
|
export declare const deserializeAws_restJson1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
192
195
|
export declare const deserializeAws_restJson1UpdateBotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateBotCommandOutput>;
|
|
@@ -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";
|
|
@@ -289,6 +290,10 @@ export declare class LexModelsV2 extends LexModelsV2Client {
|
|
|
289
290
|
startImport(args: StartImportCommandInput, cb: (err: any, data?: StartImportCommandOutput) => void): void;
|
|
290
291
|
startImport(args: StartImportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartImportCommandOutput) => void): void;
|
|
291
292
|
|
|
293
|
+
stopBotRecommendation(args: StopBotRecommendationCommandInput, options?: __HttpHandlerOptions): Promise<StopBotRecommendationCommandOutput>;
|
|
294
|
+
stopBotRecommendation(args: StopBotRecommendationCommandInput, cb: (err: any, data?: StopBotRecommendationCommandOutput) => void): void;
|
|
295
|
+
stopBotRecommendation(args: StopBotRecommendationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopBotRecommendationCommandOutput) => void): void;
|
|
296
|
+
|
|
292
297
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
293
298
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
294
299
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
@@ -61,6 +61,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
|
|
|
61
61
|
import { SearchAssociatedTranscriptsCommandInput, SearchAssociatedTranscriptsCommandOutput } from "./commands/SearchAssociatedTranscriptsCommand";
|
|
62
62
|
import { StartBotRecommendationCommandInput, StartBotRecommendationCommandOutput } from "./commands/StartBotRecommendationCommand";
|
|
63
63
|
import { StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
|
|
64
|
+
import { StopBotRecommendationCommandInput, StopBotRecommendationCommandOutput } from "./commands/StopBotRecommendationCommand";
|
|
64
65
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
65
66
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
66
67
|
import { UpdateBotAliasCommandInput, UpdateBotAliasCommandOutput } from "./commands/UpdateBotAliasCommand";
|
|
@@ -72,8 +73,8 @@ import { UpdateIntentCommandInput, UpdateIntentCommandOutput } from "./commands/
|
|
|
72
73
|
import { UpdateResourcePolicyCommandInput, UpdateResourcePolicyCommandOutput } from "./commands/UpdateResourcePolicyCommand";
|
|
73
74
|
import { UpdateSlotCommandInput, UpdateSlotCommandOutput } from "./commands/UpdateSlotCommand";
|
|
74
75
|
import { UpdateSlotTypeCommandInput, UpdateSlotTypeCommandOutput } from "./commands/UpdateSlotTypeCommand";
|
|
75
|
-
export declare type ServiceInputTypes = BuildBotLocaleCommandInput | CreateBotAliasCommandInput | CreateBotCommandInput | CreateBotLocaleCommandInput | CreateBotVersionCommandInput | CreateExportCommandInput | CreateIntentCommandInput | CreateResourcePolicyCommandInput | CreateResourcePolicyStatementCommandInput | CreateSlotCommandInput | CreateSlotTypeCommandInput | CreateUploadUrlCommandInput | DeleteBotAliasCommandInput | DeleteBotCommandInput | DeleteBotLocaleCommandInput | DeleteBotVersionCommandInput | DeleteCustomVocabularyCommandInput | DeleteExportCommandInput | DeleteImportCommandInput | DeleteIntentCommandInput | DeleteResourcePolicyCommandInput | DeleteResourcePolicyStatementCommandInput | DeleteSlotCommandInput | DeleteSlotTypeCommandInput | DeleteUtterancesCommandInput | DescribeBotAliasCommandInput | DescribeBotCommandInput | DescribeBotLocaleCommandInput | DescribeBotRecommendationCommandInput | DescribeBotVersionCommandInput | DescribeCustomVocabularyMetadataCommandInput | DescribeExportCommandInput | DescribeImportCommandInput | DescribeIntentCommandInput | DescribeResourcePolicyCommandInput | DescribeSlotCommandInput | DescribeSlotTypeCommandInput | ListAggregatedUtterancesCommandInput | ListBotAliasesCommandInput | ListBotLocalesCommandInput | ListBotRecommendationsCommandInput | ListBotVersionsCommandInput | ListBotsCommandInput | ListBuiltInIntentsCommandInput | ListBuiltInSlotTypesCommandInput | ListExportsCommandInput | ListImportsCommandInput | ListIntentsCommandInput | ListRecommendedIntentsCommandInput | ListSlotTypesCommandInput | ListSlotsCommandInput | ListTagsForResourceCommandInput | SearchAssociatedTranscriptsCommandInput | StartBotRecommendationCommandInput | StartImportCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBotAliasCommandInput | UpdateBotCommandInput | UpdateBotLocaleCommandInput | UpdateBotRecommendationCommandInput | UpdateExportCommandInput | UpdateIntentCommandInput | UpdateResourcePolicyCommandInput | UpdateSlotCommandInput | UpdateSlotTypeCommandInput;
|
|
76
|
-
export declare type ServiceOutputTypes = BuildBotLocaleCommandOutput | CreateBotAliasCommandOutput | CreateBotCommandOutput | CreateBotLocaleCommandOutput | CreateBotVersionCommandOutput | CreateExportCommandOutput | CreateIntentCommandOutput | CreateResourcePolicyCommandOutput | CreateResourcePolicyStatementCommandOutput | CreateSlotCommandOutput | CreateSlotTypeCommandOutput | CreateUploadUrlCommandOutput | DeleteBotAliasCommandOutput | DeleteBotCommandOutput | DeleteBotLocaleCommandOutput | DeleteBotVersionCommandOutput | DeleteCustomVocabularyCommandOutput | DeleteExportCommandOutput | DeleteImportCommandOutput | DeleteIntentCommandOutput | DeleteResourcePolicyCommandOutput | DeleteResourcePolicyStatementCommandOutput | DeleteSlotCommandOutput | DeleteSlotTypeCommandOutput | DeleteUtterancesCommandOutput | DescribeBotAliasCommandOutput | DescribeBotCommandOutput | DescribeBotLocaleCommandOutput | DescribeBotRecommendationCommandOutput | DescribeBotVersionCommandOutput | DescribeCustomVocabularyMetadataCommandOutput | DescribeExportCommandOutput | DescribeImportCommandOutput | DescribeIntentCommandOutput | DescribeResourcePolicyCommandOutput | DescribeSlotCommandOutput | DescribeSlotTypeCommandOutput | ListAggregatedUtterancesCommandOutput | ListBotAliasesCommandOutput | ListBotLocalesCommandOutput | ListBotRecommendationsCommandOutput | ListBotVersionsCommandOutput | ListBotsCommandOutput | ListBuiltInIntentsCommandOutput | ListBuiltInSlotTypesCommandOutput | ListExportsCommandOutput | ListImportsCommandOutput | ListIntentsCommandOutput | ListRecommendedIntentsCommandOutput | ListSlotTypesCommandOutput | ListSlotsCommandOutput | ListTagsForResourceCommandOutput | SearchAssociatedTranscriptsCommandOutput | StartBotRecommendationCommandOutput | StartImportCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBotAliasCommandOutput | UpdateBotCommandOutput | UpdateBotLocaleCommandOutput | UpdateBotRecommendationCommandOutput | UpdateExportCommandOutput | UpdateIntentCommandOutput | UpdateResourcePolicyCommandOutput | UpdateSlotCommandOutput | UpdateSlotTypeCommandOutput;
|
|
76
|
+
export declare type ServiceInputTypes = BuildBotLocaleCommandInput | CreateBotAliasCommandInput | CreateBotCommandInput | CreateBotLocaleCommandInput | CreateBotVersionCommandInput | CreateExportCommandInput | CreateIntentCommandInput | CreateResourcePolicyCommandInput | CreateResourcePolicyStatementCommandInput | CreateSlotCommandInput | CreateSlotTypeCommandInput | CreateUploadUrlCommandInput | DeleteBotAliasCommandInput | DeleteBotCommandInput | DeleteBotLocaleCommandInput | DeleteBotVersionCommandInput | DeleteCustomVocabularyCommandInput | DeleteExportCommandInput | DeleteImportCommandInput | DeleteIntentCommandInput | DeleteResourcePolicyCommandInput | DeleteResourcePolicyStatementCommandInput | DeleteSlotCommandInput | DeleteSlotTypeCommandInput | DeleteUtterancesCommandInput | DescribeBotAliasCommandInput | DescribeBotCommandInput | DescribeBotLocaleCommandInput | DescribeBotRecommendationCommandInput | DescribeBotVersionCommandInput | DescribeCustomVocabularyMetadataCommandInput | DescribeExportCommandInput | DescribeImportCommandInput | DescribeIntentCommandInput | DescribeResourcePolicyCommandInput | DescribeSlotCommandInput | DescribeSlotTypeCommandInput | ListAggregatedUtterancesCommandInput | ListBotAliasesCommandInput | ListBotLocalesCommandInput | ListBotRecommendationsCommandInput | ListBotVersionsCommandInput | ListBotsCommandInput | ListBuiltInIntentsCommandInput | ListBuiltInSlotTypesCommandInput | ListExportsCommandInput | ListImportsCommandInput | ListIntentsCommandInput | ListRecommendedIntentsCommandInput | ListSlotTypesCommandInput | ListSlotsCommandInput | ListTagsForResourceCommandInput | SearchAssociatedTranscriptsCommandInput | StartBotRecommendationCommandInput | StartImportCommandInput | StopBotRecommendationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBotAliasCommandInput | UpdateBotCommandInput | UpdateBotLocaleCommandInput | UpdateBotRecommendationCommandInput | UpdateExportCommandInput | UpdateIntentCommandInput | UpdateResourcePolicyCommandInput | UpdateSlotCommandInput | UpdateSlotTypeCommandInput;
|
|
77
|
+
export declare type ServiceOutputTypes = BuildBotLocaleCommandOutput | CreateBotAliasCommandOutput | CreateBotCommandOutput | CreateBotLocaleCommandOutput | CreateBotVersionCommandOutput | CreateExportCommandOutput | CreateIntentCommandOutput | CreateResourcePolicyCommandOutput | CreateResourcePolicyStatementCommandOutput | CreateSlotCommandOutput | CreateSlotTypeCommandOutput | CreateUploadUrlCommandOutput | DeleteBotAliasCommandOutput | DeleteBotCommandOutput | DeleteBotLocaleCommandOutput | DeleteBotVersionCommandOutput | DeleteCustomVocabularyCommandOutput | DeleteExportCommandOutput | DeleteImportCommandOutput | DeleteIntentCommandOutput | DeleteResourcePolicyCommandOutput | DeleteResourcePolicyStatementCommandOutput | DeleteSlotCommandOutput | DeleteSlotTypeCommandOutput | DeleteUtterancesCommandOutput | DescribeBotAliasCommandOutput | DescribeBotCommandOutput | DescribeBotLocaleCommandOutput | DescribeBotRecommendationCommandOutput | DescribeBotVersionCommandOutput | DescribeCustomVocabularyMetadataCommandOutput | DescribeExportCommandOutput | DescribeImportCommandOutput | DescribeIntentCommandOutput | DescribeResourcePolicyCommandOutput | DescribeSlotCommandOutput | DescribeSlotTypeCommandOutput | ListAggregatedUtterancesCommandOutput | ListBotAliasesCommandOutput | ListBotLocalesCommandOutput | ListBotRecommendationsCommandOutput | ListBotVersionsCommandOutput | ListBotsCommandOutput | ListBuiltInIntentsCommandOutput | ListBuiltInSlotTypesCommandOutput | ListExportsCommandOutput | ListImportsCommandOutput | ListIntentsCommandOutput | ListRecommendedIntentsCommandOutput | ListSlotTypesCommandOutput | ListSlotsCommandOutput | ListTagsForResourceCommandOutput | SearchAssociatedTranscriptsCommandOutput | StartBotRecommendationCommandOutput | StartImportCommandOutput | StopBotRecommendationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBotAliasCommandOutput | UpdateBotCommandOutput | UpdateBotLocaleCommandOutput | UpdateBotRecommendationCommandOutput | UpdateExportCommandOutput | UpdateIntentCommandOutput | UpdateResourcePolicyCommandOutput | UpdateSlotCommandOutput | UpdateSlotTypeCommandOutput;
|
|
77
78
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
78
79
|
|
|
79
80
|
requestHandler?: __HttpHandler;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { LexModelsV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LexModelsV2Client";
|
|
4
|
+
import { StopBotRecommendationRequest, StopBotRecommendationResponse } from "../models/models_0";
|
|
5
|
+
export interface StopBotRecommendationCommandInput extends StopBotRecommendationRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface StopBotRecommendationCommandOutput extends StopBotRecommendationResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class StopBotRecommendationCommand extends $Command<StopBotRecommendationCommandInput, StopBotRecommendationCommandOutput, LexModelsV2ClientResolvedConfig> {
|
|
11
|
+
readonly input: StopBotRecommendationCommandInput;
|
|
12
|
+
constructor(input: StopBotRecommendationCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexModelsV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StopBotRecommendationCommandInput, StopBotRecommendationCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -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";
|
|
@@ -310,6 +310,8 @@ export declare enum BotRecommendationStatus {
|
|
|
310
310
|
Downloading = "Downloading",
|
|
311
311
|
Failed = "Failed",
|
|
312
312
|
Processing = "Processing",
|
|
313
|
+
Stopped = "Stopped",
|
|
314
|
+
Stopping = "Stopping",
|
|
313
315
|
Updating = "Updating"
|
|
314
316
|
}
|
|
315
317
|
|
|
@@ -2338,6 +2340,28 @@ export interface StartImportResponse {
|
|
|
2338
2340
|
|
|
2339
2341
|
creationDateTime?: Date;
|
|
2340
2342
|
}
|
|
2343
|
+
export interface StopBotRecommendationRequest {
|
|
2344
|
+
|
|
2345
|
+
botId: string | undefined;
|
|
2346
|
+
|
|
2347
|
+
botVersion: string | undefined;
|
|
2348
|
+
|
|
2349
|
+
localeId: string | undefined;
|
|
2350
|
+
|
|
2351
|
+
botRecommendationId: string | undefined;
|
|
2352
|
+
}
|
|
2353
|
+
export interface StopBotRecommendationResponse {
|
|
2354
|
+
|
|
2355
|
+
botId?: string;
|
|
2356
|
+
|
|
2357
|
+
botVersion?: string;
|
|
2358
|
+
|
|
2359
|
+
localeId?: string;
|
|
2360
|
+
|
|
2361
|
+
botRecommendationStatus?: BotRecommendationStatus | string;
|
|
2362
|
+
|
|
2363
|
+
botRecommendationId?: string;
|
|
2364
|
+
}
|
|
2341
2365
|
export interface TagResourceRequest {
|
|
2342
2366
|
|
|
2343
2367
|
resourceARN: string | undefined;
|
|
@@ -2712,36 +2736,6 @@ export interface FulfillmentCodeHookSettings {
|
|
|
2712
2736
|
active?: boolean;
|
|
2713
2737
|
}
|
|
2714
2738
|
|
|
2715
|
-
export interface InitialResponseSetting {
|
|
2716
|
-
|
|
2717
|
-
initialResponse?: ResponseSpecification;
|
|
2718
|
-
|
|
2719
|
-
nextStep?: DialogState;
|
|
2720
|
-
|
|
2721
|
-
conditional?: ConditionalSpecification;
|
|
2722
|
-
|
|
2723
|
-
codeHook?: DialogCodeHookInvocationSetting;
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
export interface SlotCaptureSetting {
|
|
2727
|
-
|
|
2728
|
-
captureResponse?: ResponseSpecification;
|
|
2729
|
-
|
|
2730
|
-
captureNextStep?: DialogState;
|
|
2731
|
-
|
|
2732
|
-
captureConditional?: ConditionalSpecification;
|
|
2733
|
-
|
|
2734
|
-
failureResponse?: ResponseSpecification;
|
|
2735
|
-
|
|
2736
|
-
failureNextStep?: DialogState;
|
|
2737
|
-
|
|
2738
|
-
failureConditional?: ConditionalSpecification;
|
|
2739
|
-
|
|
2740
|
-
codeHook?: DialogCodeHookInvocationSetting;
|
|
2741
|
-
|
|
2742
|
-
elicitationCodeHook?: ElicitationCodeHookInvocationSetting;
|
|
2743
|
-
}
|
|
2744
|
-
|
|
2745
2739
|
export declare const AdvancedRecognitionSettingFilterSensitiveLog: (obj: AdvancedRecognitionSetting) => any;
|
|
2746
2740
|
|
|
2747
2741
|
export declare const AggregatedUtterancesFilterFilterSensitiveLog: (obj: AggregatedUtterancesFilter) => any;
|
|
@@ -3162,6 +3156,10 @@ export declare const StartImportRequestFilterSensitiveLog: (obj: StartImportRequ
|
|
|
3162
3156
|
|
|
3163
3157
|
export declare const StartImportResponseFilterSensitiveLog: (obj: StartImportResponse) => any;
|
|
3164
3158
|
|
|
3159
|
+
export declare const StopBotRecommendationRequestFilterSensitiveLog: (obj: StopBotRecommendationRequest) => any;
|
|
3160
|
+
|
|
3161
|
+
export declare const StopBotRecommendationResponseFilterSensitiveLog: (obj: StopBotRecommendationResponse) => any;
|
|
3162
|
+
|
|
3165
3163
|
export declare const TagResourceRequestFilterSensitiveLog: (obj: TagResourceRequest) => any;
|
|
3166
3164
|
|
|
3167
3165
|
export declare const TagResourceResponseFilterSensitiveLog: (obj: TagResourceResponse) => any;
|
|
@@ -3219,7 +3217,3 @@ export declare const PostFulfillmentStatusSpecificationFilterSensitiveLog: (obj:
|
|
|
3219
3217
|
export declare const DialogCodeHookInvocationSettingFilterSensitiveLog: (obj: DialogCodeHookInvocationSetting) => any;
|
|
3220
3218
|
|
|
3221
3219
|
export declare const FulfillmentCodeHookSettingsFilterSensitiveLog: (obj: FulfillmentCodeHookSettings) => any;
|
|
3222
|
-
|
|
3223
|
-
export declare const InitialResponseSettingFilterSensitiveLog: (obj: InitialResponseSetting) => any;
|
|
3224
|
-
|
|
3225
|
-
export declare const SlotCaptureSettingFilterSensitiveLog: (obj: SlotCaptureSetting) => any;
|
|
@@ -1,4 +1,34 @@
|
|
|
1
|
-
import { ConditionalSpecification, DialogCodeHookInvocationSetting, DialogCodeHookSettings, DialogState, ElicitationCodeHookInvocationSetting, FulfillmentCodeHookSettings,
|
|
1
|
+
import { ConditionalSpecification, DialogCodeHookInvocationSetting, DialogCodeHookSettings, DialogState, ElicitationCodeHookInvocationSetting, FulfillmentCodeHookSettings, InputContext, IntentClosingSetting, KendraConfiguration, MultipleValuesSetting, ObfuscationSetting, OutputContext, PromptSpecification, ResponseSpecification, SampleUtterance, SlotConstraint, SlotDefaultValueSpecification, SlotPriority, WaitAndContinueSpecification } from "./models_0";
|
|
2
|
+
|
|
3
|
+
export interface InitialResponseSetting {
|
|
4
|
+
|
|
5
|
+
initialResponse?: ResponseSpecification;
|
|
6
|
+
|
|
7
|
+
nextStep?: DialogState;
|
|
8
|
+
|
|
9
|
+
conditional?: ConditionalSpecification;
|
|
10
|
+
|
|
11
|
+
codeHook?: DialogCodeHookInvocationSetting;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface SlotCaptureSetting {
|
|
15
|
+
|
|
16
|
+
captureResponse?: ResponseSpecification;
|
|
17
|
+
|
|
18
|
+
captureNextStep?: DialogState;
|
|
19
|
+
|
|
20
|
+
captureConditional?: ConditionalSpecification;
|
|
21
|
+
|
|
22
|
+
failureResponse?: ResponseSpecification;
|
|
23
|
+
|
|
24
|
+
failureNextStep?: DialogState;
|
|
25
|
+
|
|
26
|
+
failureConditional?: ConditionalSpecification;
|
|
27
|
+
|
|
28
|
+
codeHook?: DialogCodeHookInvocationSetting;
|
|
29
|
+
|
|
30
|
+
elicitationCodeHook?: ElicitationCodeHookInvocationSetting;
|
|
31
|
+
}
|
|
2
32
|
|
|
3
33
|
export interface SlotValueElicitationSetting {
|
|
4
34
|
|
|
@@ -356,6 +386,10 @@ export interface UpdateIntentResponse {
|
|
|
356
386
|
initialResponseSetting?: InitialResponseSetting;
|
|
357
387
|
}
|
|
358
388
|
|
|
389
|
+
export declare const InitialResponseSettingFilterSensitiveLog: (obj: InitialResponseSetting) => any;
|
|
390
|
+
|
|
391
|
+
export declare const SlotCaptureSettingFilterSensitiveLog: (obj: SlotCaptureSetting) => any;
|
|
392
|
+
|
|
359
393
|
export declare const SlotValueElicitationSettingFilterSensitiveLog: (obj: SlotValueElicitationSetting) => any;
|
|
360
394
|
|
|
361
395
|
export declare const IntentConfirmationSettingFilterSensitiveLog: (obj: IntentConfirmationSetting) => any;
|
|
@@ -55,6 +55,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
|
|
|
55
55
|
import { SearchAssociatedTranscriptsCommandInput, SearchAssociatedTranscriptsCommandOutput } from "../commands/SearchAssociatedTranscriptsCommand";
|
|
56
56
|
import { StartBotRecommendationCommandInput, StartBotRecommendationCommandOutput } from "../commands/StartBotRecommendationCommand";
|
|
57
57
|
import { StartImportCommandInput, StartImportCommandOutput } from "../commands/StartImportCommand";
|
|
58
|
+
import { StopBotRecommendationCommandInput, StopBotRecommendationCommandOutput } from "../commands/StopBotRecommendationCommand";
|
|
58
59
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
59
60
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
60
61
|
import { UpdateBotAliasCommandInput, UpdateBotAliasCommandOutput } from "../commands/UpdateBotAliasCommand";
|
|
@@ -121,6 +122,7 @@ export declare const serializeAws_restJson1ListTagsForResourceCommand: (input: L
|
|
|
121
122
|
export declare const serializeAws_restJson1SearchAssociatedTranscriptsCommand: (input: SearchAssociatedTranscriptsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
122
123
|
export declare const serializeAws_restJson1StartBotRecommendationCommand: (input: StartBotRecommendationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
123
124
|
export declare const serializeAws_restJson1StartImportCommand: (input: StartImportCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
125
|
+
export declare const serializeAws_restJson1StopBotRecommendationCommand: (input: StopBotRecommendationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
124
126
|
export declare const serializeAws_restJson1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
125
127
|
export declare const serializeAws_restJson1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
126
128
|
export declare const serializeAws_restJson1UpdateBotCommand: (input: UpdateBotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -187,6 +189,7 @@ export declare const deserializeAws_restJson1ListTagsForResourceCommand: (output
|
|
|
187
189
|
export declare const deserializeAws_restJson1SearchAssociatedTranscriptsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchAssociatedTranscriptsCommandOutput>;
|
|
188
190
|
export declare const deserializeAws_restJson1StartBotRecommendationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartBotRecommendationCommandOutput>;
|
|
189
191
|
export declare const deserializeAws_restJson1StartImportCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartImportCommandOutput>;
|
|
192
|
+
export declare const deserializeAws_restJson1StopBotRecommendationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopBotRecommendationCommandOutput>;
|
|
190
193
|
export declare const deserializeAws_restJson1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
191
194
|
export declare const deserializeAws_restJson1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
192
195
|
export declare const deserializeAws_restJson1UpdateBotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateBotCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-models-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Models V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.155.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|