@aws-sdk/client-lex-models-v2 3.204.0 → 3.208.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/README.md +7 -7
- package/dist-cjs/LexModelsV2.js +60 -0
- package/dist-cjs/commands/BatchCreateCustomVocabularyItemCommand.js +46 -0
- package/dist-cjs/commands/BatchDeleteCustomVocabularyItemCommand.js +46 -0
- package/dist-cjs/commands/BatchUpdateCustomVocabularyItemCommand.js +46 -0
- package/dist-cjs/commands/ListCustomVocabularyItemsCommand.js +46 -0
- package/dist-cjs/commands/UpdateBotAliasCommand.js +3 -3
- package/dist-cjs/commands/UpdateBotCommand.js +3 -3
- package/dist-cjs/commands/UpdateBotLocaleCommand.js +3 -3
- package/dist-cjs/commands/UpdateBotRecommendationCommand.js +3 -3
- package/dist-cjs/commands/UpdateExportCommand.js +3 -3
- package/dist-cjs/commands/UpdateResourcePolicyCommand.js +3 -3
- package/dist-cjs/commands/UpdateSlotTypeCommand.js +1 -2
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +127 -127
- package/dist-cjs/models/models_1.js +58 -1
- package/dist-cjs/pagination/ListCustomVocabularyItemsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +420 -3
- package/dist-es/LexModelsV2.js +60 -0
- package/dist-es/commands/BatchCreateCustomVocabularyItemCommand.js +42 -0
- package/dist-es/commands/BatchDeleteCustomVocabularyItemCommand.js +42 -0
- package/dist-es/commands/BatchUpdateCustomVocabularyItemCommand.js +42 -0
- package/dist-es/commands/ListCustomVocabularyItemsCommand.js +42 -0
- package/dist-es/commands/UpdateBotAliasCommand.js +1 -1
- package/dist-es/commands/UpdateBotCommand.js +1 -1
- package/dist-es/commands/UpdateBotLocaleCommand.js +1 -1
- package/dist-es/commands/UpdateBotRecommendationCommand.js +1 -1
- package/dist-es/commands/UpdateExportCommand.js +1 -1
- package/dist-es/commands/UpdateResourcePolicyCommand.js +1 -1
- package/dist-es/commands/UpdateSlotTypeCommand.js +1 -2
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +104 -103
- package/dist-es/models/models_1.js +44 -0
- package/dist-es/pagination/ListCustomVocabularyItemsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +409 -0
- package/dist-types/LexModelsV2.d.ts +34 -1
- package/dist-types/LexModelsV2Client.d.ts +6 -2
- package/dist-types/commands/BatchCreateCustomVocabularyItemCommand.d.ts +38 -0
- package/dist-types/commands/BatchDeleteCustomVocabularyItemCommand.d.ts +38 -0
- package/dist-types/commands/BatchUpdateCustomVocabularyItemCommand.d.ts +38 -0
- package/dist-types/commands/ListCustomVocabularyItemsCommand.d.ts +38 -0
- package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +2 -1
- package/dist-types/commands/UpdateBotAliasCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBotCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBotLocaleCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBotRecommendationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateExportCommand.d.ts +1 -1
- package/dist-types/commands/UpdateResourcePolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSlotTypeCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +409 -599
- package/dist-types/models/models_1.d.ts +525 -1
- package/dist-types/pagination/ListCustomVocabularyItemsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/LexModelsV2.d.ts +68 -0
- package/dist-types/ts3.4/LexModelsV2Client.d.ts +24 -0
- package/dist-types/ts3.4/commands/BatchCreateCustomVocabularyItemCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/BatchDeleteCustomVocabularyItemCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/BatchUpdateCustomVocabularyItemCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListCustomVocabularyItemsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateBotAliasCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateBotCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateBotLocaleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateBotRecommendationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateExportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateResourcePolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateSlotTypeCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +150 -191
- package/dist-types/ts3.4/models/models_1.d.ts +169 -0
- package/dist-types/ts3.4/pagination/ListCustomVocabularyItemsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +36 -36
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 `
|
|
29
|
+
the commands you need, for example `BatchCreateCustomVocabularyItemCommand`:
|
|
30
30
|
|
|
31
31
|
```js
|
|
32
32
|
// ES5 example
|
|
33
|
-
const { LexModelsV2Client,
|
|
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,
|
|
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
|
|
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.
|
|
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
|
-
.
|
|
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.
|
|
153
|
+
client.batchCreateCustomVocabularyItem(params, (err, data) => {
|
|
154
154
|
// process err and data.
|
|
155
155
|
});
|
|
156
156
|
```
|
package/dist-cjs/LexModelsV2.js
CHANGED
|
@@ -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
|
|
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:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
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
|
|
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:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
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
|
|
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:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
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
|
|
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:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
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
|
|
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:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
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
|
|
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:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
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:
|
|
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);
|