@aws-sdk/client-lex-models-v2 3.47.2 → 3.51.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.
Files changed (31) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist-cjs/LexModelsV2.js +30 -0
  3. package/dist-cjs/commands/DeleteCustomVocabularyCommand.js +36 -0
  4. package/dist-cjs/commands/DescribeCustomVocabularyMetadataCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +67 -6
  7. package/dist-cjs/protocols/Aws_restJson1.js +368 -3
  8. package/dist-es/LexModelsV2.js +30 -0
  9. package/dist-es/commands/DeleteCustomVocabularyCommand.js +39 -0
  10. package/dist-es/commands/DescribeCustomVocabularyMetadataCommand.js +39 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/models/models_0.js +47 -0
  13. package/dist-es/protocols/Aws_restJson1.js +395 -7
  14. package/dist-types/LexModelsV2.d.ts +21 -6
  15. package/dist-types/LexModelsV2Client.d.ts +4 -2
  16. package/dist-types/commands/DeleteCustomVocabularyCommand.d.ts +36 -0
  17. package/dist-types/commands/DescribeCustomVocabularyMetadataCommand.d.ts +35 -0
  18. package/dist-types/commands/ListExportsCommand.d.ts +2 -2
  19. package/dist-types/commands/ListImportsCommand.d.ts +2 -2
  20. package/dist-types/commands/StartImportCommand.d.ts +2 -2
  21. package/dist-types/commands/index.d.ts +2 -0
  22. package/dist-types/models/models_0.d.ts +264 -24
  23. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  24. package/dist-types/ts3.4/LexModelsV2.d.ts +10 -0
  25. package/dist-types/ts3.4/LexModelsV2Client.d.ts +4 -2
  26. package/dist-types/ts3.4/commands/DeleteCustomVocabularyCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/DescribeCustomVocabularyMetadataCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +124 -1
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
  31. package/package.json +40 -34
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSlotTypesCommand = 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_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_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.deserializeAws_restJson1ListAggregatedUtterancesCommand = exports.deserializeAws_restJson1DescribeSlotTypeCommand = exports.deserializeAws_restJson1DescribeSlotCommand = exports.deserializeAws_restJson1DescribeResourcePolicyCommand = exports.deserializeAws_restJson1DescribeIntentCommand = exports.deserializeAws_restJson1DescribeImportCommand = exports.deserializeAws_restJson1DescribeExportCommand = 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_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_restJson1StartImportCommand = exports.serializeAws_restJson1StartBotRecommendationCommand = exports.serializeAws_restJson1SearchAssociatedTranscriptsCommand = 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_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 = void 0;
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.deserializeAws_restJson1DescribeIntentCommand = 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_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_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;
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 serializeAws_restJson1BuildBotLocaleCommand = async (input, context) => {
@@ -728,6 +728,53 @@ const serializeAws_restJson1DeleteBotVersionCommand = async (input, context) =>
728
728
  });
729
729
  };
730
730
  exports.serializeAws_restJson1DeleteBotVersionCommand = serializeAws_restJson1DeleteBotVersionCommand;
731
+ const serializeAws_restJson1DeleteCustomVocabularyCommand = async (input, context) => {
732
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
733
+ const headers = {};
734
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
735
+ "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary";
736
+ if (input.botId !== undefined) {
737
+ const labelValue = input.botId;
738
+ if (labelValue.length <= 0) {
739
+ throw new Error("Empty value provided for input HTTP label: botId.");
740
+ }
741
+ resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
742
+ }
743
+ else {
744
+ throw new Error("No value provided for input HTTP label: botId.");
745
+ }
746
+ if (input.botVersion !== undefined) {
747
+ const labelValue = input.botVersion;
748
+ if (labelValue.length <= 0) {
749
+ throw new Error("Empty value provided for input HTTP label: botVersion.");
750
+ }
751
+ resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
752
+ }
753
+ else {
754
+ throw new Error("No value provided for input HTTP label: botVersion.");
755
+ }
756
+ if (input.localeId !== undefined) {
757
+ const labelValue = input.localeId;
758
+ if (labelValue.length <= 0) {
759
+ throw new Error("Empty value provided for input HTTP label: localeId.");
760
+ }
761
+ resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
762
+ }
763
+ else {
764
+ throw new Error("No value provided for input HTTP label: localeId.");
765
+ }
766
+ let body;
767
+ return new protocol_http_1.HttpRequest({
768
+ protocol,
769
+ hostname,
770
+ port,
771
+ method: "DELETE",
772
+ headers,
773
+ path: resolvedPath,
774
+ body,
775
+ });
776
+ };
777
+ exports.serializeAws_restJson1DeleteCustomVocabularyCommand = serializeAws_restJson1DeleteCustomVocabularyCommand;
731
778
  const serializeAws_restJson1DeleteExportCommand = async (input, context) => {
732
779
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
733
780
  const headers = {};
@@ -1271,6 +1318,53 @@ const serializeAws_restJson1DescribeBotVersionCommand = async (input, context) =
1271
1318
  });
1272
1319
  };
1273
1320
  exports.serializeAws_restJson1DescribeBotVersionCommand = serializeAws_restJson1DescribeBotVersionCommand;
1321
+ const serializeAws_restJson1DescribeCustomVocabularyMetadataCommand = async (input, context) => {
1322
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1323
+ const headers = {};
1324
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1325
+ "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/metadata";
1326
+ if (input.botId !== undefined) {
1327
+ const labelValue = input.botId;
1328
+ if (labelValue.length <= 0) {
1329
+ throw new Error("Empty value provided for input HTTP label: botId.");
1330
+ }
1331
+ resolvedPath = resolvedPath.replace("{botId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1332
+ }
1333
+ else {
1334
+ throw new Error("No value provided for input HTTP label: botId.");
1335
+ }
1336
+ if (input.botVersion !== undefined) {
1337
+ const labelValue = input.botVersion;
1338
+ if (labelValue.length <= 0) {
1339
+ throw new Error("Empty value provided for input HTTP label: botVersion.");
1340
+ }
1341
+ resolvedPath = resolvedPath.replace("{botVersion}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1342
+ }
1343
+ else {
1344
+ throw new Error("No value provided for input HTTP label: botVersion.");
1345
+ }
1346
+ if (input.localeId !== undefined) {
1347
+ const labelValue = input.localeId;
1348
+ if (labelValue.length <= 0) {
1349
+ throw new Error("Empty value provided for input HTTP label: localeId.");
1350
+ }
1351
+ resolvedPath = resolvedPath.replace("{localeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1352
+ }
1353
+ else {
1354
+ throw new Error("No value provided for input HTTP label: localeId.");
1355
+ }
1356
+ let body;
1357
+ return new protocol_http_1.HttpRequest({
1358
+ protocol,
1359
+ hostname,
1360
+ port,
1361
+ method: "GET",
1362
+ headers,
1363
+ path: resolvedPath,
1364
+ body,
1365
+ });
1366
+ };
1367
+ exports.serializeAws_restJson1DescribeCustomVocabularyMetadataCommand = serializeAws_restJson1DescribeCustomVocabularyMetadataCommand;
1274
1368
  const serializeAws_restJson1DescribeExportCommand = async (input, context) => {
1275
1369
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1276
1370
  const headers = {};
@@ -1845,6 +1939,7 @@ const serializeAws_restJson1ListExportsCommand = async (input, context) => {
1845
1939
  ...(input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion }),
1846
1940
  ...(input.filters !== undefined &&
1847
1941
  input.filters !== null && { filters: serializeAws_restJson1ExportFilters(input.filters, context) }),
1942
+ ...(input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId }),
1848
1943
  ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
1849
1944
  ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
1850
1945
  ...(input.sortBy !== undefined &&
@@ -1873,6 +1968,7 @@ const serializeAws_restJson1ListImportsCommand = async (input, context) => {
1873
1968
  ...(input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion }),
1874
1969
  ...(input.filters !== undefined &&
1875
1970
  input.filters !== null && { filters: serializeAws_restJson1ImportFilters(input.filters, context) }),
1971
+ ...(input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId }),
1876
1972
  ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
1877
1973
  ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
1878
1974
  ...(input.sortBy !== undefined &&
@@ -4675,6 +4771,106 @@ const deserializeAws_restJson1DeleteBotVersionCommandError = async (output, cont
4675
4771
  delete response.Message;
4676
4772
  return Promise.reject(Object.assign(new Error(message), response));
4677
4773
  };
4774
+ const deserializeAws_restJson1DeleteCustomVocabularyCommand = async (output, context) => {
4775
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
4776
+ return deserializeAws_restJson1DeleteCustomVocabularyCommandError(output, context);
4777
+ }
4778
+ const contents = {
4779
+ $metadata: deserializeMetadata(output),
4780
+ botId: undefined,
4781
+ botVersion: undefined,
4782
+ customVocabularyStatus: undefined,
4783
+ localeId: undefined,
4784
+ };
4785
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4786
+ if (data.botId !== undefined && data.botId !== null) {
4787
+ contents.botId = smithy_client_1.expectString(data.botId);
4788
+ }
4789
+ if (data.botVersion !== undefined && data.botVersion !== null) {
4790
+ contents.botVersion = smithy_client_1.expectString(data.botVersion);
4791
+ }
4792
+ if (data.customVocabularyStatus !== undefined && data.customVocabularyStatus !== null) {
4793
+ contents.customVocabularyStatus = smithy_client_1.expectString(data.customVocabularyStatus);
4794
+ }
4795
+ if (data.localeId !== undefined && data.localeId !== null) {
4796
+ contents.localeId = smithy_client_1.expectString(data.localeId);
4797
+ }
4798
+ return Promise.resolve(contents);
4799
+ };
4800
+ exports.deserializeAws_restJson1DeleteCustomVocabularyCommand = deserializeAws_restJson1DeleteCustomVocabularyCommand;
4801
+ const deserializeAws_restJson1DeleteCustomVocabularyCommandError = async (output, context) => {
4802
+ const parsedOutput = {
4803
+ ...output,
4804
+ body: await parseBody(output.body, context),
4805
+ };
4806
+ let response;
4807
+ let errorCode = "UnknownError";
4808
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4809
+ switch (errorCode) {
4810
+ case "ConflictException":
4811
+ case "com.amazonaws.lexmodelsv2#ConflictException":
4812
+ response = {
4813
+ ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
4814
+ name: errorCode,
4815
+ $metadata: deserializeMetadata(output),
4816
+ };
4817
+ break;
4818
+ case "InternalServerException":
4819
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
4820
+ response = {
4821
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
4822
+ name: errorCode,
4823
+ $metadata: deserializeMetadata(output),
4824
+ };
4825
+ break;
4826
+ case "PreconditionFailedException":
4827
+ case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
4828
+ response = {
4829
+ ...(await deserializeAws_restJson1PreconditionFailedExceptionResponse(parsedOutput, context)),
4830
+ name: errorCode,
4831
+ $metadata: deserializeMetadata(output),
4832
+ };
4833
+ break;
4834
+ case "ServiceQuotaExceededException":
4835
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4836
+ response = {
4837
+ ...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
4838
+ name: errorCode,
4839
+ $metadata: deserializeMetadata(output),
4840
+ };
4841
+ break;
4842
+ case "ThrottlingException":
4843
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
4844
+ response = {
4845
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
4846
+ name: errorCode,
4847
+ $metadata: deserializeMetadata(output),
4848
+ };
4849
+ break;
4850
+ case "ValidationException":
4851
+ case "com.amazonaws.lexmodelsv2#ValidationException":
4852
+ response = {
4853
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
4854
+ name: errorCode,
4855
+ $metadata: deserializeMetadata(output),
4856
+ };
4857
+ break;
4858
+ default:
4859
+ const parsedBody = parsedOutput.body;
4860
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4861
+ response = {
4862
+ ...parsedBody,
4863
+ name: `${errorCode}`,
4864
+ message: parsedBody.message || parsedBody.Message || errorCode,
4865
+ $fault: "client",
4866
+ $metadata: deserializeMetadata(output),
4867
+ };
4868
+ }
4869
+ const message = response.message || response.Message || errorCode;
4870
+ response.message = message;
4871
+ delete response.Message;
4872
+ return Promise.reject(Object.assign(new Error(message), response));
4873
+ };
4678
4874
  const deserializeAws_restJson1DeleteExportCommand = async (output, context) => {
4679
4875
  if (output.statusCode !== 202 && output.statusCode >= 300) {
4680
4876
  return deserializeAws_restJson1DeleteExportCommandError(output, context);
@@ -5911,6 +6107,106 @@ const deserializeAws_restJson1DescribeBotVersionCommandError = async (output, co
5911
6107
  delete response.Message;
5912
6108
  return Promise.reject(Object.assign(new Error(message), response));
5913
6109
  };
6110
+ const deserializeAws_restJson1DescribeCustomVocabularyMetadataCommand = async (output, context) => {
6111
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6112
+ return deserializeAws_restJson1DescribeCustomVocabularyMetadataCommandError(output, context);
6113
+ }
6114
+ const contents = {
6115
+ $metadata: deserializeMetadata(output),
6116
+ botId: undefined,
6117
+ botVersion: undefined,
6118
+ creationDateTime: undefined,
6119
+ customVocabularyStatus: undefined,
6120
+ lastUpdatedDateTime: undefined,
6121
+ localeId: undefined,
6122
+ };
6123
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6124
+ if (data.botId !== undefined && data.botId !== null) {
6125
+ contents.botId = smithy_client_1.expectString(data.botId);
6126
+ }
6127
+ if (data.botVersion !== undefined && data.botVersion !== null) {
6128
+ contents.botVersion = smithy_client_1.expectString(data.botVersion);
6129
+ }
6130
+ if (data.creationDateTime !== undefined && data.creationDateTime !== null) {
6131
+ contents.creationDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDateTime)));
6132
+ }
6133
+ if (data.customVocabularyStatus !== undefined && data.customVocabularyStatus !== null) {
6134
+ contents.customVocabularyStatus = smithy_client_1.expectString(data.customVocabularyStatus);
6135
+ }
6136
+ if (data.lastUpdatedDateTime !== undefined && data.lastUpdatedDateTime !== null) {
6137
+ contents.lastUpdatedDateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedDateTime)));
6138
+ }
6139
+ if (data.localeId !== undefined && data.localeId !== null) {
6140
+ contents.localeId = smithy_client_1.expectString(data.localeId);
6141
+ }
6142
+ return Promise.resolve(contents);
6143
+ };
6144
+ exports.deserializeAws_restJson1DescribeCustomVocabularyMetadataCommand = deserializeAws_restJson1DescribeCustomVocabularyMetadataCommand;
6145
+ const deserializeAws_restJson1DescribeCustomVocabularyMetadataCommandError = async (output, context) => {
6146
+ const parsedOutput = {
6147
+ ...output,
6148
+ body: await parseBody(output.body, context),
6149
+ };
6150
+ let response;
6151
+ let errorCode = "UnknownError";
6152
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6153
+ switch (errorCode) {
6154
+ case "InternalServerException":
6155
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
6156
+ response = {
6157
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
6158
+ name: errorCode,
6159
+ $metadata: deserializeMetadata(output),
6160
+ };
6161
+ break;
6162
+ case "ResourceNotFoundException":
6163
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
6164
+ response = {
6165
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
6166
+ name: errorCode,
6167
+ $metadata: deserializeMetadata(output),
6168
+ };
6169
+ break;
6170
+ case "ServiceQuotaExceededException":
6171
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
6172
+ response = {
6173
+ ...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
6174
+ name: errorCode,
6175
+ $metadata: deserializeMetadata(output),
6176
+ };
6177
+ break;
6178
+ case "ThrottlingException":
6179
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
6180
+ response = {
6181
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
6182
+ name: errorCode,
6183
+ $metadata: deserializeMetadata(output),
6184
+ };
6185
+ break;
6186
+ case "ValidationException":
6187
+ case "com.amazonaws.lexmodelsv2#ValidationException":
6188
+ response = {
6189
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
6190
+ name: errorCode,
6191
+ $metadata: deserializeMetadata(output),
6192
+ };
6193
+ break;
6194
+ default:
6195
+ const parsedBody = parsedOutput.body;
6196
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
6197
+ response = {
6198
+ ...parsedBody,
6199
+ name: `${errorCode}`,
6200
+ message: parsedBody.message || parsedBody.Message || errorCode,
6201
+ $fault: "client",
6202
+ $metadata: deserializeMetadata(output),
6203
+ };
6204
+ }
6205
+ const message = response.message || response.Message || errorCode;
6206
+ response.message = message;
6207
+ delete response.Message;
6208
+ return Promise.reject(Object.assign(new Error(message), response));
6209
+ };
5914
6210
  const deserializeAws_restJson1DescribeExportCommand = async (output, context) => {
5915
6211
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5916
6212
  return deserializeAws_restJson1DescribeExportCommandError(output, context);
@@ -7272,6 +7568,7 @@ const deserializeAws_restJson1ListExportsCommand = async (output, context) => {
7272
7568
  botId: undefined,
7273
7569
  botVersion: undefined,
7274
7570
  exportSummaries: undefined,
7571
+ localeId: undefined,
7275
7572
  nextToken: undefined,
7276
7573
  };
7277
7574
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
@@ -7284,6 +7581,9 @@ const deserializeAws_restJson1ListExportsCommand = async (output, context) => {
7284
7581
  if (data.exportSummaries !== undefined && data.exportSummaries !== null) {
7285
7582
  contents.exportSummaries = deserializeAws_restJson1ExportSummaryList(data.exportSummaries, context);
7286
7583
  }
7584
+ if (data.localeId !== undefined && data.localeId !== null) {
7585
+ contents.localeId = smithy_client_1.expectString(data.localeId);
7586
+ }
7287
7587
  if (data.nextToken !== undefined && data.nextToken !== null) {
7288
7588
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
7289
7589
  }
@@ -7348,6 +7648,7 @@ const deserializeAws_restJson1ListImportsCommand = async (output, context) => {
7348
7648
  botId: undefined,
7349
7649
  botVersion: undefined,
7350
7650
  importSummaries: undefined,
7651
+ localeId: undefined,
7351
7652
  nextToken: undefined,
7352
7653
  };
7353
7654
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
@@ -7360,6 +7661,9 @@ const deserializeAws_restJson1ListImportsCommand = async (output, context) => {
7360
7661
  if (data.importSummaries !== undefined && data.importSummaries !== null) {
7361
7662
  contents.importSummaries = deserializeAws_restJson1ImportSummaryList(data.importSummaries, context);
7362
7663
  }
7664
+ if (data.localeId !== undefined && data.localeId !== null) {
7665
+ contents.localeId = smithy_client_1.expectString(data.localeId);
7666
+ }
7363
7667
  if (data.nextToken !== undefined && data.nextToken !== null) {
7364
7668
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
7365
7669
  }
@@ -9550,6 +9854,12 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
9550
9854
  }
9551
9855
  return contents;
9552
9856
  };
9857
+ const serializeAws_restJson1AdvancedRecognitionSetting = (input, context) => {
9858
+ return {
9859
+ ...(input.audioRecognitionStrategy !== undefined &&
9860
+ input.audioRecognitionStrategy !== null && { audioRecognitionStrategy: input.audioRecognitionStrategy }),
9861
+ };
9862
+ };
9553
9863
  const serializeAws_restJson1AggregatedUtterancesFilter = (input, context) => {
9554
9864
  return {
9555
9865
  ...(input.name !== undefined && input.name !== null && { name: input.name }),
@@ -9833,6 +10143,20 @@ const serializeAws_restJson1CustomPayload = (input, context) => {
9833
10143
  ...(input.value !== undefined && input.value !== null && { value: input.value }),
9834
10144
  };
9835
10145
  };
10146
+ const serializeAws_restJson1CustomVocabularyExportSpecification = (input, context) => {
10147
+ return {
10148
+ ...(input.botId !== undefined && input.botId !== null && { botId: input.botId }),
10149
+ ...(input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion }),
10150
+ ...(input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId }),
10151
+ };
10152
+ };
10153
+ const serializeAws_restJson1CustomVocabularyImportSpecification = (input, context) => {
10154
+ return {
10155
+ ...(input.botId !== undefined && input.botId !== null && { botId: input.botId }),
10156
+ ...(input.botVersion !== undefined && input.botVersion !== null && { botVersion: input.botVersion }),
10157
+ ...(input.localeId !== undefined && input.localeId !== null && { localeId: input.localeId }),
10158
+ };
10159
+ };
9836
10160
  const serializeAws_restJson1DataPrivacy = (input, context) => {
9837
10161
  return {
9838
10162
  ...(input.childDirected !== undefined && input.childDirected !== null && { childDirected: input.childDirected }),
@@ -9890,6 +10214,10 @@ const serializeAws_restJson1ExportResourceSpecification = (input, context) => {
9890
10214
  input.botLocaleExportSpecification !== null && {
9891
10215
  botLocaleExportSpecification: serializeAws_restJson1BotLocaleExportSpecification(input.botLocaleExportSpecification, context),
9892
10216
  }),
10217
+ ...(input.customVocabularyExportSpecification !== undefined &&
10218
+ input.customVocabularyExportSpecification !== null && {
10219
+ customVocabularyExportSpecification: serializeAws_restJson1CustomVocabularyExportSpecification(input.customVocabularyExportSpecification, context),
10220
+ }),
9893
10221
  };
9894
10222
  };
9895
10223
  const serializeAws_restJson1ExportSortBy = (input, context) => {
@@ -10018,6 +10346,10 @@ const serializeAws_restJson1ImportResourceSpecification = (input, context) => {
10018
10346
  input.botLocaleImportSpecification !== null && {
10019
10347
  botLocaleImportSpecification: serializeAws_restJson1BotLocaleImportSpecification(input.botLocaleImportSpecification, context),
10020
10348
  }),
10349
+ ...(input.customVocabularyImportSpecification !== undefined &&
10350
+ input.customVocabularyImportSpecification !== null && {
10351
+ customVocabularyImportSpecification: serializeAws_restJson1CustomVocabularyImportSpecification(input.customVocabularyImportSpecification, context),
10352
+ }),
10021
10353
  };
10022
10354
  };
10023
10355
  const serializeAws_restJson1ImportSortBy = (input, context) => {
@@ -10462,6 +10794,10 @@ const serializeAws_restJson1SlotValueRegexFilter = (input, context) => {
10462
10794
  };
10463
10795
  const serializeAws_restJson1SlotValueSelectionSetting = (input, context) => {
10464
10796
  return {
10797
+ ...(input.advancedRecognitionSetting !== undefined &&
10798
+ input.advancedRecognitionSetting !== null && {
10799
+ advancedRecognitionSetting: serializeAws_restJson1AdvancedRecognitionSetting(input.advancedRecognitionSetting, context),
10800
+ }),
10465
10801
  ...(input.regexFilter !== undefined &&
10466
10802
  input.regexFilter !== null && {
10467
10803
  regexFilter: serializeAws_restJson1SlotValueRegexFilter(input.regexFilter, context),
@@ -10584,6 +10920,11 @@ const serializeAws_restJson1WaitAndContinueSpecification = (input, context) => {
10584
10920
  }),
10585
10921
  };
10586
10922
  };
10923
+ const deserializeAws_restJson1AdvancedRecognitionSetting = (output, context) => {
10924
+ return {
10925
+ audioRecognitionStrategy: smithy_client_1.expectString(output.audioRecognitionStrategy),
10926
+ };
10927
+ };
10587
10928
  const deserializeAws_restJson1AggregatedUtterancesSummary = (output, context) => {
10588
10929
  return {
10589
10930
  containsDataFromDeletedResources: smithy_client_1.expectBoolean(output.containsDataFromDeletedResources),
@@ -10973,6 +11314,20 @@ const deserializeAws_restJson1CustomPayload = (output, context) => {
10973
11314
  value: smithy_client_1.expectString(output.value),
10974
11315
  };
10975
11316
  };
11317
+ const deserializeAws_restJson1CustomVocabularyExportSpecification = (output, context) => {
11318
+ return {
11319
+ botId: smithy_client_1.expectString(output.botId),
11320
+ botVersion: smithy_client_1.expectString(output.botVersion),
11321
+ localeId: smithy_client_1.expectString(output.localeId),
11322
+ };
11323
+ };
11324
+ const deserializeAws_restJson1CustomVocabularyImportSpecification = (output, context) => {
11325
+ return {
11326
+ botId: smithy_client_1.expectString(output.botId),
11327
+ botVersion: smithy_client_1.expectString(output.botVersion),
11328
+ localeId: smithy_client_1.expectString(output.localeId),
11329
+ };
11330
+ };
10976
11331
  const deserializeAws_restJson1DataPrivacy = (output, context) => {
10977
11332
  return {
10978
11333
  childDirected: smithy_client_1.expectBoolean(output.childDirected),
@@ -11008,6 +11363,9 @@ const deserializeAws_restJson1ExportResourceSpecification = (output, context) =>
11008
11363
  botLocaleExportSpecification: output.botLocaleExportSpecification !== undefined && output.botLocaleExportSpecification !== null
11009
11364
  ? deserializeAws_restJson1BotLocaleExportSpecification(output.botLocaleExportSpecification, context)
11010
11365
  : undefined,
11366
+ customVocabularyExportSpecification: output.customVocabularyExportSpecification !== undefined && output.customVocabularyExportSpecification !== null
11367
+ ? deserializeAws_restJson1CustomVocabularyExportSpecification(output.customVocabularyExportSpecification, context)
11368
+ : undefined,
11011
11369
  };
11012
11370
  };
11013
11371
  const deserializeAws_restJson1ExportSummary = (output, context) => {
@@ -11126,6 +11484,9 @@ const deserializeAws_restJson1ImportResourceSpecification = (output, context) =>
11126
11484
  botLocaleImportSpecification: output.botLocaleImportSpecification !== undefined && output.botLocaleImportSpecification !== null
11127
11485
  ? deserializeAws_restJson1BotLocaleImportSpecification(output.botLocaleImportSpecification, context)
11128
11486
  : undefined,
11487
+ customVocabularyImportSpecification: output.customVocabularyImportSpecification !== undefined && output.customVocabularyImportSpecification !== null
11488
+ ? deserializeAws_restJson1CustomVocabularyImportSpecification(output.customVocabularyImportSpecification, context)
11489
+ : undefined,
11129
11490
  };
11130
11491
  };
11131
11492
  const deserializeAws_restJson1ImportSummary = (output, context) => {
@@ -11137,6 +11498,7 @@ const deserializeAws_restJson1ImportSummary = (output, context) => {
11137
11498
  importStatus: smithy_client_1.expectString(output.importStatus),
11138
11499
  importedResourceId: smithy_client_1.expectString(output.importedResourceId),
11139
11500
  importedResourceName: smithy_client_1.expectString(output.importedResourceName),
11501
+ importedResourceType: smithy_client_1.expectString(output.importedResourceType),
11140
11502
  lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
11141
11503
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
11142
11504
  : undefined,
@@ -11576,6 +11938,9 @@ const deserializeAws_restJson1SlotValueRegexFilter = (output, context) => {
11576
11938
  };
11577
11939
  const deserializeAws_restJson1SlotValueSelectionSetting = (output, context) => {
11578
11940
  return {
11941
+ advancedRecognitionSetting: output.advancedRecognitionSetting !== undefined && output.advancedRecognitionSetting !== null
11942
+ ? deserializeAws_restJson1AdvancedRecognitionSetting(output.advancedRecognitionSetting, context)
11943
+ : undefined,
11579
11944
  regexFilter: output.regexFilter !== undefined && output.regexFilter !== null
11580
11945
  ? deserializeAws_restJson1SlotValueRegexFilter(output.regexFilter, context)
11581
11946
  : undefined,
@@ -15,6 +15,7 @@ import { DeleteBotAliasCommand, } from "./commands/DeleteBotAliasCommand";
15
15
  import { DeleteBotCommand } from "./commands/DeleteBotCommand";
16
16
  import { DeleteBotLocaleCommand, } from "./commands/DeleteBotLocaleCommand";
17
17
  import { DeleteBotVersionCommand, } from "./commands/DeleteBotVersionCommand";
18
+ import { DeleteCustomVocabularyCommand, } from "./commands/DeleteCustomVocabularyCommand";
18
19
  import { DeleteExportCommand, } from "./commands/DeleteExportCommand";
19
20
  import { DeleteImportCommand, } from "./commands/DeleteImportCommand";
20
21
  import { DeleteIntentCommand, } from "./commands/DeleteIntentCommand";
@@ -28,6 +29,7 @@ import { DescribeBotCommand } from "./commands/DescribeBotCommand";
28
29
  import { DescribeBotLocaleCommand, } from "./commands/DescribeBotLocaleCommand";
29
30
  import { DescribeBotRecommendationCommand, } from "./commands/DescribeBotRecommendationCommand";
30
31
  import { DescribeBotVersionCommand, } from "./commands/DescribeBotVersionCommand";
32
+ import { DescribeCustomVocabularyMetadataCommand, } from "./commands/DescribeCustomVocabularyMetadataCommand";
31
33
  import { DescribeExportCommand, } from "./commands/DescribeExportCommand";
32
34
  import { DescribeImportCommand, } from "./commands/DescribeImportCommand";
33
35
  import { DescribeIntentCommand, } from "./commands/DescribeIntentCommand";
@@ -293,6 +295,20 @@ var LexModelsV2 = (function (_super) {
293
295
  return this.send(command, optionsOrCb);
294
296
  }
295
297
  };
298
+ LexModelsV2.prototype.deleteCustomVocabulary = function (args, optionsOrCb, cb) {
299
+ var command = new DeleteCustomVocabularyCommand(args);
300
+ if (typeof optionsOrCb === "function") {
301
+ this.send(command, optionsOrCb);
302
+ }
303
+ else if (typeof cb === "function") {
304
+ if (typeof optionsOrCb !== "object")
305
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
306
+ this.send(command, optionsOrCb || {}, cb);
307
+ }
308
+ else {
309
+ return this.send(command, optionsOrCb);
310
+ }
311
+ };
296
312
  LexModelsV2.prototype.deleteExport = function (args, optionsOrCb, cb) {
297
313
  var command = new DeleteExportCommand(args);
298
314
  if (typeof optionsOrCb === "function") {
@@ -475,6 +491,20 @@ var LexModelsV2 = (function (_super) {
475
491
  return this.send(command, optionsOrCb);
476
492
  }
477
493
  };
494
+ LexModelsV2.prototype.describeCustomVocabularyMetadata = function (args, optionsOrCb, cb) {
495
+ var command = new DescribeCustomVocabularyMetadataCommand(args);
496
+ if (typeof optionsOrCb === "function") {
497
+ this.send(command, optionsOrCb);
498
+ }
499
+ else if (typeof cb === "function") {
500
+ if (typeof optionsOrCb !== "object")
501
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
502
+ this.send(command, optionsOrCb || {}, cb);
503
+ }
504
+ else {
505
+ return this.send(command, optionsOrCb);
506
+ }
507
+ };
478
508
  LexModelsV2.prototype.describeExport = function (args, optionsOrCb, cb) {
479
509
  var command = new DescribeExportCommand(args);
480
510
  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 { DeleteCustomVocabularyRequest, DeleteCustomVocabularyResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteCustomVocabularyCommand, serializeAws_restJson1DeleteCustomVocabularyCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteCustomVocabularyCommand = (function (_super) {
7
+ __extends(DeleteCustomVocabularyCommand, _super);
8
+ function DeleteCustomVocabularyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteCustomVocabularyCommand.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 = "DeleteCustomVocabularyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteCustomVocabularyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteCustomVocabularyResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteCustomVocabularyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteCustomVocabularyCommand(input, context);
33
+ };
34
+ DeleteCustomVocabularyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteCustomVocabularyCommand(output, context);
36
+ };
37
+ return DeleteCustomVocabularyCommand;
38
+ }($Command));
39
+ export { DeleteCustomVocabularyCommand };