@aws-sdk/client-lex-models-v2 3.202.0 → 3.205.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 (90) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/LexModelsV2.js +60 -0
  4. package/dist-cjs/commands/BatchCreateCustomVocabularyItemCommand.js +46 -0
  5. package/dist-cjs/commands/BatchDeleteCustomVocabularyItemCommand.js +46 -0
  6. package/dist-cjs/commands/BatchUpdateCustomVocabularyItemCommand.js +46 -0
  7. package/dist-cjs/commands/ListCustomVocabularyItemsCommand.js +46 -0
  8. package/dist-cjs/commands/UpdateBotAliasCommand.js +3 -3
  9. package/dist-cjs/commands/UpdateBotCommand.js +3 -3
  10. package/dist-cjs/commands/UpdateBotLocaleCommand.js +3 -3
  11. package/dist-cjs/commands/UpdateBotRecommendationCommand.js +3 -3
  12. package/dist-cjs/commands/UpdateExportCommand.js +3 -3
  13. package/dist-cjs/commands/UpdateResourcePolicyCommand.js +3 -3
  14. package/dist-cjs/commands/UpdateSlotTypeCommand.js +1 -2
  15. package/dist-cjs/commands/index.js +4 -0
  16. package/dist-cjs/models/models_0.js +127 -127
  17. package/dist-cjs/models/models_1.js +58 -1
  18. package/dist-cjs/pagination/ListCustomVocabularyItemsPaginator.js +36 -0
  19. package/dist-cjs/pagination/index.js +1 -0
  20. package/dist-cjs/protocols/Aws_restJson1.js +420 -3
  21. package/dist-cjs/runtimeConfig.browser.js +0 -3
  22. package/dist-cjs/runtimeConfig.js +0 -3
  23. package/dist-cjs/runtimeConfig.shared.js +3 -0
  24. package/dist-es/LexModelsV2.js +60 -0
  25. package/dist-es/commands/BatchCreateCustomVocabularyItemCommand.js +42 -0
  26. package/dist-es/commands/BatchDeleteCustomVocabularyItemCommand.js +42 -0
  27. package/dist-es/commands/BatchUpdateCustomVocabularyItemCommand.js +42 -0
  28. package/dist-es/commands/ListCustomVocabularyItemsCommand.js +42 -0
  29. package/dist-es/commands/UpdateBotAliasCommand.js +1 -1
  30. package/dist-es/commands/UpdateBotCommand.js +1 -1
  31. package/dist-es/commands/UpdateBotLocaleCommand.js +1 -1
  32. package/dist-es/commands/UpdateBotRecommendationCommand.js +1 -1
  33. package/dist-es/commands/UpdateExportCommand.js +1 -1
  34. package/dist-es/commands/UpdateResourcePolicyCommand.js +1 -1
  35. package/dist-es/commands/UpdateSlotTypeCommand.js +1 -2
  36. package/dist-es/commands/index.js +4 -0
  37. package/dist-es/models/models_0.js +104 -103
  38. package/dist-es/models/models_1.js +44 -0
  39. package/dist-es/pagination/ListCustomVocabularyItemsPaginator.js +32 -0
  40. package/dist-es/pagination/index.js +1 -0
  41. package/dist-es/protocols/Aws_restJson1.js +409 -0
  42. package/dist-es/runtimeConfig.browser.js +0 -3
  43. package/dist-es/runtimeConfig.js +0 -3
  44. package/dist-es/runtimeConfig.shared.js +3 -0
  45. package/dist-types/LexModelsV2.d.ts +34 -1
  46. package/dist-types/LexModelsV2Client.d.ts +6 -2
  47. package/dist-types/commands/BatchCreateCustomVocabularyItemCommand.d.ts +38 -0
  48. package/dist-types/commands/BatchDeleteCustomVocabularyItemCommand.d.ts +38 -0
  49. package/dist-types/commands/BatchUpdateCustomVocabularyItemCommand.d.ts +38 -0
  50. package/dist-types/commands/ListCustomVocabularyItemsCommand.d.ts +38 -0
  51. package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +2 -1
  52. package/dist-types/commands/UpdateBotAliasCommand.d.ts +1 -1
  53. package/dist-types/commands/UpdateBotCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateBotLocaleCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateBotRecommendationCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateExportCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateResourcePolicyCommand.d.ts +1 -1
  58. package/dist-types/commands/UpdateSlotTypeCommand.d.ts +1 -2
  59. package/dist-types/commands/index.d.ts +4 -0
  60. package/dist-types/models/models_0.d.ts +409 -599
  61. package/dist-types/models/models_1.d.ts +525 -1
  62. package/dist-types/pagination/ListCustomVocabularyItemsPaginator.d.ts +4 -0
  63. package/dist-types/pagination/index.d.ts +1 -0
  64. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  65. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  66. package/dist-types/runtimeConfig.d.ts +2 -2
  67. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  68. package/dist-types/ts3.4/LexModelsV2.d.ts +68 -0
  69. package/dist-types/ts3.4/LexModelsV2Client.d.ts +24 -0
  70. package/dist-types/ts3.4/commands/BatchCreateCustomVocabularyItemCommand.d.ts +41 -0
  71. package/dist-types/ts3.4/commands/BatchDeleteCustomVocabularyItemCommand.d.ts +41 -0
  72. package/dist-types/ts3.4/commands/BatchUpdateCustomVocabularyItemCommand.d.ts +41 -0
  73. package/dist-types/ts3.4/commands/ListCustomVocabularyItemsCommand.d.ts +41 -0
  74. package/dist-types/ts3.4/commands/UpdateBotAliasCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/UpdateBotCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/UpdateBotLocaleCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/UpdateBotRecommendationCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/UpdateExportCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/UpdateResourcePolicyCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/UpdateSlotTypeCommand.d.ts +4 -2
  81. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  82. package/dist-types/ts3.4/models/models_0.d.ts +150 -191
  83. package/dist-types/ts3.4/models/models_1.d.ts +169 -0
  84. package/dist-types/ts3.4/pagination/ListCustomVocabularyItemsPaginator.d.ts +11 -0
  85. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  86. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  87. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  88. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  89. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  90. package/package.json +5 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
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.205.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.204.0...v3.205.0) (2022-11-07)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-lex-models-v2:** Amazon Lex now supports new APIs for viewing and editing Custom Vocabulary in bots. ([aa323d6](https://github.com/aws/aws-sdk-js-v3/commit/aa323d657242f2fa3e095d56e3ea57b60dddcc1a))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.204.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.203.0...v3.204.0) (2022-11-04)
18
+
19
+
20
+ ### Features
21
+
22
+ * **clients:** update client endpoints as of 2022-11-04 ([7471107](https://github.com/aws/aws-sdk-js-v3/commit/7471107c0881b5d9e474447a660dd3354a50b195))
23
+
24
+
25
+
26
+
27
+
6
28
  # [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
7
29
 
8
30
  **Note:** Version bump only for package @aws-sdk/client-lex-models-v2
package/README.md CHANGED
@@ -26,16 +26,16 @@ using your favorite package manager:
26
26
 
27
27
  The AWS SDK is modulized by clients and commands.
28
28
  To send a request, you only need to import the `LexModelsV2Client` and
29
- the commands you need, for example `BuildBotLocaleCommand`:
29
+ the commands you need, for example `BatchCreateCustomVocabularyItemCommand`:
30
30
 
31
31
  ```js
32
32
  // ES5 example
33
- const { LexModelsV2Client, BuildBotLocaleCommand } = require("@aws-sdk/client-lex-models-v2");
33
+ const { LexModelsV2Client, BatchCreateCustomVocabularyItemCommand } = require("@aws-sdk/client-lex-models-v2");
34
34
  ```
35
35
 
36
36
  ```ts
37
37
  // ES6+ example
38
- import { LexModelsV2Client, BuildBotLocaleCommand } from "@aws-sdk/client-lex-models-v2";
38
+ import { LexModelsV2Client, BatchCreateCustomVocabularyItemCommand } from "@aws-sdk/client-lex-models-v2";
39
39
  ```
40
40
 
41
41
  ### Usage
@@ -54,7 +54,7 @@ const client = new LexModelsV2Client({ region: "REGION" });
54
54
  const params = {
55
55
  /** input parameters */
56
56
  };
57
- const command = new BuildBotLocaleCommand(params);
57
+ const command = new BatchCreateCustomVocabularyItemCommand(params);
58
58
  ```
59
59
 
60
60
  #### Async/await
@@ -133,7 +133,7 @@ const client = new AWS.LexModelsV2({ region: "REGION" });
133
133
 
134
134
  // async/await.
135
135
  try {
136
- const data = await client.buildBotLocale(params);
136
+ const data = await client.batchCreateCustomVocabularyItem(params);
137
137
  // process data.
138
138
  } catch (error) {
139
139
  // error handling.
@@ -141,7 +141,7 @@ try {
141
141
 
142
142
  // Promises.
143
143
  client
144
- .buildBotLocale(params)
144
+ .batchCreateCustomVocabularyItem(params)
145
145
  .then((data) => {
146
146
  // process data.
147
147
  })
@@ -150,7 +150,7 @@ client
150
150
  });
151
151
 
152
152
  // callbacks.
153
- client.buildBotLocale(params, (err, data) => {
153
+ client.batchCreateCustomVocabularyItem(params, (err, data) => {
154
154
  // process err and data.
155
155
  });
156
156
  ```
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LexModelsV2 = void 0;
4
+ const BatchCreateCustomVocabularyItemCommand_1 = require("./commands/BatchCreateCustomVocabularyItemCommand");
5
+ const BatchDeleteCustomVocabularyItemCommand_1 = require("./commands/BatchDeleteCustomVocabularyItemCommand");
6
+ const BatchUpdateCustomVocabularyItemCommand_1 = require("./commands/BatchUpdateCustomVocabularyItemCommand");
4
7
  const BuildBotLocaleCommand_1 = require("./commands/BuildBotLocaleCommand");
5
8
  const CreateBotAliasCommand_1 = require("./commands/CreateBotAliasCommand");
6
9
  const CreateBotCommand_1 = require("./commands/CreateBotCommand");
@@ -46,6 +49,7 @@ const ListBotsCommand_1 = require("./commands/ListBotsCommand");
46
49
  const ListBotVersionsCommand_1 = require("./commands/ListBotVersionsCommand");
47
50
  const ListBuiltInIntentsCommand_1 = require("./commands/ListBuiltInIntentsCommand");
48
51
  const ListBuiltInSlotTypesCommand_1 = require("./commands/ListBuiltInSlotTypesCommand");
52
+ const ListCustomVocabularyItemsCommand_1 = require("./commands/ListCustomVocabularyItemsCommand");
49
53
  const ListExportsCommand_1 = require("./commands/ListExportsCommand");
50
54
  const ListImportsCommand_1 = require("./commands/ListImportsCommand");
51
55
  const ListIntentsCommand_1 = require("./commands/ListIntentsCommand");
@@ -70,6 +74,48 @@ const UpdateSlotCommand_1 = require("./commands/UpdateSlotCommand");
70
74
  const UpdateSlotTypeCommand_1 = require("./commands/UpdateSlotTypeCommand");
71
75
  const LexModelsV2Client_1 = require("./LexModelsV2Client");
72
76
  class LexModelsV2 extends LexModelsV2Client_1.LexModelsV2Client {
77
+ batchCreateCustomVocabularyItem(args, optionsOrCb, cb) {
78
+ const command = new BatchCreateCustomVocabularyItemCommand_1.BatchCreateCustomVocabularyItemCommand(args);
79
+ if (typeof optionsOrCb === "function") {
80
+ this.send(command, optionsOrCb);
81
+ }
82
+ else if (typeof cb === "function") {
83
+ if (typeof optionsOrCb !== "object")
84
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
85
+ this.send(command, optionsOrCb || {}, cb);
86
+ }
87
+ else {
88
+ return this.send(command, optionsOrCb);
89
+ }
90
+ }
91
+ batchDeleteCustomVocabularyItem(args, optionsOrCb, cb) {
92
+ const command = new BatchDeleteCustomVocabularyItemCommand_1.BatchDeleteCustomVocabularyItemCommand(args);
93
+ if (typeof optionsOrCb === "function") {
94
+ this.send(command, optionsOrCb);
95
+ }
96
+ else if (typeof cb === "function") {
97
+ if (typeof optionsOrCb !== "object")
98
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
99
+ this.send(command, optionsOrCb || {}, cb);
100
+ }
101
+ else {
102
+ return this.send(command, optionsOrCb);
103
+ }
104
+ }
105
+ batchUpdateCustomVocabularyItem(args, optionsOrCb, cb) {
106
+ const command = new BatchUpdateCustomVocabularyItemCommand_1.BatchUpdateCustomVocabularyItemCommand(args);
107
+ if (typeof optionsOrCb === "function") {
108
+ this.send(command, optionsOrCb);
109
+ }
110
+ else if (typeof cb === "function") {
111
+ if (typeof optionsOrCb !== "object")
112
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
113
+ this.send(command, optionsOrCb || {}, cb);
114
+ }
115
+ else {
116
+ return this.send(command, optionsOrCb);
117
+ }
118
+ }
73
119
  buildBotLocale(args, optionsOrCb, cb) {
74
120
  const command = new BuildBotLocaleCommand_1.BuildBotLocaleCommand(args);
75
121
  if (typeof optionsOrCb === "function") {
@@ -700,6 +746,20 @@ class LexModelsV2 extends LexModelsV2Client_1.LexModelsV2Client {
700
746
  return this.send(command, optionsOrCb);
701
747
  }
702
748
  }
749
+ listCustomVocabularyItems(args, optionsOrCb, cb) {
750
+ const command = new ListCustomVocabularyItemsCommand_1.ListCustomVocabularyItemsCommand(args);
751
+ if (typeof optionsOrCb === "function") {
752
+ this.send(command, optionsOrCb);
753
+ }
754
+ else if (typeof cb === "function") {
755
+ if (typeof optionsOrCb !== "object")
756
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
757
+ this.send(command, optionsOrCb || {}, cb);
758
+ }
759
+ else {
760
+ return this.send(command, optionsOrCb);
761
+ }
762
+ }
703
763
  listExports(args, optionsOrCb, cb) {
704
764
  const command = new ListExportsCommand_1.ListExportsCommand(args);
705
765
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchCreateCustomVocabularyItemCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class BatchCreateCustomVocabularyItemCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchCreateCustomVocabularyItemCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "LexModelsV2Client";
28
+ const commandName = "BatchCreateCustomVocabularyItemCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.BatchCreateCustomVocabularyItemRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.BatchCreateCustomVocabularyItemResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1BatchCreateCustomVocabularyItemCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1BatchCreateCustomVocabularyItemCommand)(output, context);
44
+ }
45
+ }
46
+ exports.BatchCreateCustomVocabularyItemCommand = BatchCreateCustomVocabularyItemCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchDeleteCustomVocabularyItemCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class BatchDeleteCustomVocabularyItemCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchDeleteCustomVocabularyItemCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "LexModelsV2Client";
28
+ const commandName = "BatchDeleteCustomVocabularyItemCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.BatchDeleteCustomVocabularyItemRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.BatchDeleteCustomVocabularyItemResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1BatchDeleteCustomVocabularyItemCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1BatchDeleteCustomVocabularyItemCommand)(output, context);
44
+ }
45
+ }
46
+ exports.BatchDeleteCustomVocabularyItemCommand = BatchDeleteCustomVocabularyItemCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchUpdateCustomVocabularyItemCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class BatchUpdateCustomVocabularyItemCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchUpdateCustomVocabularyItemCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "LexModelsV2Client";
28
+ const commandName = "BatchUpdateCustomVocabularyItemCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.BatchUpdateCustomVocabularyItemRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.BatchUpdateCustomVocabularyItemResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1BatchUpdateCustomVocabularyItemCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1BatchUpdateCustomVocabularyItemCommand)(output, context);
44
+ }
45
+ }
46
+ exports.BatchUpdateCustomVocabularyItemCommand = BatchUpdateCustomVocabularyItemCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListCustomVocabularyItemsCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListCustomVocabularyItemsCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListCustomVocabularyItemsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "LexModelsV2Client";
28
+ const commandName = "ListCustomVocabularyItemsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.ListCustomVocabularyItemsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.ListCustomVocabularyItemsResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListCustomVocabularyItemsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListCustomVocabularyItemsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListCustomVocabularyItemsCommand = ListCustomVocabularyItemsCommand;
@@ -4,7 +4,7 @@ exports.UpdateBotAliasCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class UpdateBotAliasCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class UpdateBotAliasCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.UpdateBotAliasRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.UpdateBotAliasResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.UpdateBotAliasRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.UpdateBotAliasResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.UpdateBotCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class UpdateBotCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class UpdateBotCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.UpdateBotRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.UpdateBotResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.UpdateBotRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.UpdateBotResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.UpdateBotLocaleCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class UpdateBotLocaleCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class UpdateBotLocaleCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.UpdateBotLocaleRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.UpdateBotLocaleResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.UpdateBotLocaleRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.UpdateBotLocaleResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.UpdateBotRecommendationCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class UpdateBotRecommendationCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class UpdateBotRecommendationCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.UpdateBotRecommendationRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.UpdateBotRecommendationResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.UpdateBotRecommendationRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.UpdateBotRecommendationResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.UpdateExportCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class UpdateExportCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class UpdateExportCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.UpdateExportRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.UpdateExportResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.UpdateExportRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.UpdateExportResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.UpdateResourcePolicyCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class UpdateResourcePolicyCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class UpdateResourcePolicyCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.UpdateResourcePolicyRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.UpdateResourcePolicyResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.UpdateResourcePolicyRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.UpdateResourcePolicyResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,6 @@ exports.UpdateSlotTypeCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
8
7
  const models_1_1 = require("../models/models_1");
9
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
9
  class UpdateSlotTypeCommand extends smithy_client_1.Command {
@@ -31,7 +30,7 @@ class UpdateSlotTypeCommand extends smithy_client_1.Command {
31
30
  logger,
32
31
  clientName,
33
32
  commandName,
34
- inputFilterSensitiveLog: models_0_1.UpdateSlotTypeRequestFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.UpdateSlotTypeRequestFilterSensitiveLog,
35
34
  outputFilterSensitiveLog: models_1_1.UpdateSlotTypeResponseFilterSensitiveLog,
36
35
  };
37
36
  const { requestHandler } = configuration;
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./BatchCreateCustomVocabularyItemCommand"), exports);
5
+ tslib_1.__exportStar(require("./BatchDeleteCustomVocabularyItemCommand"), exports);
6
+ tslib_1.__exportStar(require("./BatchUpdateCustomVocabularyItemCommand"), exports);
4
7
  tslib_1.__exportStar(require("./BuildBotLocaleCommand"), exports);
5
8
  tslib_1.__exportStar(require("./CreateBotAliasCommand"), exports);
6
9
  tslib_1.__exportStar(require("./CreateBotCommand"), exports);
@@ -46,6 +49,7 @@ tslib_1.__exportStar(require("./ListBotVersionsCommand"), exports);
46
49
  tslib_1.__exportStar(require("./ListBotsCommand"), exports);
47
50
  tslib_1.__exportStar(require("./ListBuiltInIntentsCommand"), exports);
48
51
  tslib_1.__exportStar(require("./ListBuiltInSlotTypesCommand"), exports);
52
+ tslib_1.__exportStar(require("./ListCustomVocabularyItemsCommand"), exports);
49
53
  tslib_1.__exportStar(require("./ListExportsCommand"), exports);
50
54
  tslib_1.__exportStar(require("./ListImportsCommand"), exports);
51
55
  tslib_1.__exportStar(require("./ListIntentsCommand"), exports);