@aws-sdk/client-lex-models-v2 3.299.0 → 3.301.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/dist-types/commands/BatchCreateCustomVocabularyItemCommand.d.ts +12 -0
- package/dist-types/commands/BatchDeleteCustomVocabularyItemCommand.d.ts +10 -0
- package/dist-types/commands/BatchUpdateCustomVocabularyItemCommand.d.ts +13 -0
- package/dist-types/commands/BuildBotLocaleCommand.d.ts +5 -0
- package/dist-types/commands/CreateBotAliasCommand.d.ts +48 -0
- package/dist-types/commands/CreateBotCommand.d.ts +25 -0
- package/dist-types/commands/CreateBotLocaleCommand.d.ts +11 -0
- package/dist-types/commands/CreateBotVersionCommand.d.ts +9 -0
- package/dist-types/commands/CreateExportCommand.d.ts +20 -0
- package/dist-types/commands/CreateIntentCommand.d.ts +430 -0
- package/dist-types/commands/CreateResourcePolicyCommand.d.ts +4 -0
- package/dist-types/commands/CreateResourcePolicyStatementCommand.d.ts +20 -0
- package/dist-types/commands/CreateSlotCommand.d.ts +400 -0
- package/dist-types/commands/CreateSlotTypeCommand.d.ts +46 -0
- package/dist-types/commands/CreateUploadUrlCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBotAliasCommand.d.ts +5 -0
- package/dist-types/commands/DeleteBotCommand.d.ts +4 -0
- package/dist-types/commands/DeleteBotLocaleCommand.d.ts +5 -0
- package/dist-types/commands/DeleteBotVersionCommand.d.ts +5 -0
- package/dist-types/commands/DeleteCustomVocabularyCommand.d.ts +5 -0
- package/dist-types/commands/DeleteExportCommand.d.ts +3 -0
- package/dist-types/commands/DeleteImportCommand.d.ts +3 -0
- package/dist-types/commands/DeleteIntentCommand.d.ts +6 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +4 -0
- package/dist-types/commands/DeleteResourcePolicyStatementCommand.d.ts +5 -0
- package/dist-types/commands/DeleteSlotCommand.d.ts +7 -0
- package/dist-types/commands/DeleteSlotTypeCommand.d.ts +7 -0
- package/dist-types/commands/DeleteUtterancesCommand.d.ts +5 -0
- package/dist-types/commands/DescribeBotAliasCommand.d.ts +4 -0
- package/dist-types/commands/DescribeBotCommand.d.ts +3 -0
- package/dist-types/commands/DescribeBotLocaleCommand.d.ts +5 -0
- package/dist-types/commands/DescribeBotRecommendationCommand.d.ts +6 -0
- package/dist-types/commands/DescribeBotVersionCommand.d.ts +4 -0
- package/dist-types/commands/DescribeCustomVocabularyMetadataCommand.d.ts +5 -0
- package/dist-types/commands/DescribeExportCommand.d.ts +3 -0
- package/dist-types/commands/DescribeImportCommand.d.ts +3 -0
- package/dist-types/commands/DescribeIntentCommand.d.ts +6 -0
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +3 -0
- package/dist-types/commands/DescribeSlotCommand.d.ts +7 -0
- package/dist-types/commands/DescribeSlotTypeCommand.d.ts +6 -0
- package/dist-types/commands/ListAggregatedUtterancesCommand.d.ts +27 -0
- package/dist-types/commands/ListBotAliasesCommand.d.ts +5 -0
- package/dist-types/commands/ListBotLocalesCommand.d.ts +19 -0
- package/dist-types/commands/ListBotRecommendationsCommand.d.ts +7 -0
- package/dist-types/commands/ListBotVersionsCommand.d.ts +9 -0
- package/dist-types/commands/ListBotsCommand.d.ts +17 -0
- package/dist-types/commands/ListBuiltInIntentsCommand.d.ts +9 -0
- package/dist-types/commands/ListBuiltInSlotTypesCommand.d.ts +9 -0
- package/dist-types/commands/ListCustomVocabularyItemsCommand.d.ts +7 -0
- package/dist-types/commands/ListExportsCommand.d.ts +20 -0
- package/dist-types/commands/ListImportsCommand.d.ts +20 -0
- package/dist-types/commands/ListIntentsCommand.d.ts +20 -0
- package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +8 -0
- package/dist-types/commands/ListSlotTypesCommand.d.ts +20 -0
- package/dist-types/commands/ListSlotsCommand.d.ts +21 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
- package/dist-types/commands/SearchAssociatedTranscriptsCommand.d.ts +17 -0
- package/dist-types/commands/StartBotRecommendationCommand.d.ts +30 -0
- package/dist-types/commands/StartImportCommand.d.ts +36 -0
- package/dist-types/commands/StopBotRecommendationCommand.d.ts +6 -0
- package/dist-types/commands/TagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateBotAliasCommand.d.ts +46 -0
- package/dist-types/commands/UpdateBotCommand.d.ts +20 -0
- package/dist-types/commands/UpdateBotLocaleCommand.d.ts +11 -0
- package/dist-types/commands/UpdateBotRecommendationCommand.d.ts +11 -0
- package/dist-types/commands/UpdateExportCommand.d.ts +4 -0
- package/dist-types/commands/UpdateIntentCommand.d.ts +437 -0
- package/dist-types/commands/UpdateResourcePolicyCommand.d.ts +5 -0
- package/dist-types/commands/UpdateSlotCommand.d.ts +401 -0
- package/dist-types/commands/UpdateSlotTypeCommand.d.ts +47 -0
- package/package.json +8 -8
|
@@ -30,6 +30,26 @@ export interface CreateResourcePolicyStatementCommandOutput extends CreateResour
|
|
|
30
30
|
* import { LexModelsV2Client, CreateResourcePolicyStatementCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
31
31
|
* // const { LexModelsV2Client, CreateResourcePolicyStatementCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
32
32
|
* const client = new LexModelsV2Client(config);
|
|
33
|
+
* const input = { // CreateResourcePolicyStatementRequest
|
|
34
|
+
* resourceArn: "STRING_VALUE", // required
|
|
35
|
+
* statementId: "STRING_VALUE", // required
|
|
36
|
+
* effect: "Allow" || "Deny", // required
|
|
37
|
+
* principal: [ // PrincipalList // required
|
|
38
|
+
* { // Principal
|
|
39
|
+
* service: "STRING_VALUE",
|
|
40
|
+
* arn: "STRING_VALUE",
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* action: [ // OperationList // required
|
|
44
|
+
* "STRING_VALUE",
|
|
45
|
+
* ],
|
|
46
|
+
* condition: { // ConditionMap
|
|
47
|
+
* "<keys>": { // ConditionKeyValueMap
|
|
48
|
+
* "<keys>": "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* },
|
|
51
|
+
* expectedRevisionId: "STRING_VALUE",
|
|
52
|
+
* };
|
|
33
53
|
* const command = new CreateResourcePolicyStatementCommand(input);
|
|
34
54
|
* const response = await client.send(command);
|
|
35
55
|
* ```
|
|
@@ -30,6 +30,406 @@ export interface CreateSlotCommandOutput extends CreateSlotResponse, __MetadataB
|
|
|
30
30
|
* import { LexModelsV2Client, CreateSlotCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
31
31
|
* // const { LexModelsV2Client, CreateSlotCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
32
32
|
* const client = new LexModelsV2Client(config);
|
|
33
|
+
* const input = { // CreateSlotRequest
|
|
34
|
+
* slotName: "STRING_VALUE", // required
|
|
35
|
+
* description: "STRING_VALUE",
|
|
36
|
+
* slotTypeId: "STRING_VALUE",
|
|
37
|
+
* valueElicitationSetting: { // SlotValueElicitationSetting
|
|
38
|
+
* defaultValueSpecification: { // SlotDefaultValueSpecification
|
|
39
|
+
* defaultValueList: [ // SlotDefaultValueList // required
|
|
40
|
+
* { // SlotDefaultValue
|
|
41
|
+
* defaultValue: "STRING_VALUE", // required
|
|
42
|
+
* },
|
|
43
|
+
* ],
|
|
44
|
+
* },
|
|
45
|
+
* slotConstraint: "Required" || "Optional", // required
|
|
46
|
+
* promptSpecification: { // PromptSpecification
|
|
47
|
+
* messageGroups: [ // MessageGroupsList // required
|
|
48
|
+
* { // MessageGroup
|
|
49
|
+
* message: { // Message
|
|
50
|
+
* plainTextMessage: { // PlainTextMessage
|
|
51
|
+
* value: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* customPayload: { // CustomPayload
|
|
54
|
+
* value: "STRING_VALUE", // required
|
|
55
|
+
* },
|
|
56
|
+
* ssmlMessage: { // SSMLMessage
|
|
57
|
+
* value: "STRING_VALUE", // required
|
|
58
|
+
* },
|
|
59
|
+
* imageResponseCard: { // ImageResponseCard
|
|
60
|
+
* title: "STRING_VALUE", // required
|
|
61
|
+
* subtitle: "STRING_VALUE",
|
|
62
|
+
* imageUrl: "STRING_VALUE",
|
|
63
|
+
* buttons: [ // ButtonsList
|
|
64
|
+
* { // Button
|
|
65
|
+
* text: "STRING_VALUE", // required
|
|
66
|
+
* value: "STRING_VALUE", // required
|
|
67
|
+
* },
|
|
68
|
+
* ],
|
|
69
|
+
* },
|
|
70
|
+
* },
|
|
71
|
+
* variations: [ // MessageVariationsList
|
|
72
|
+
* {
|
|
73
|
+
* plainTextMessage: {
|
|
74
|
+
* value: "STRING_VALUE", // required
|
|
75
|
+
* },
|
|
76
|
+
* customPayload: {
|
|
77
|
+
* value: "STRING_VALUE", // required
|
|
78
|
+
* },
|
|
79
|
+
* ssmlMessage: {
|
|
80
|
+
* value: "STRING_VALUE", // required
|
|
81
|
+
* },
|
|
82
|
+
* imageResponseCard: {
|
|
83
|
+
* title: "STRING_VALUE", // required
|
|
84
|
+
* subtitle: "STRING_VALUE",
|
|
85
|
+
* imageUrl: "STRING_VALUE",
|
|
86
|
+
* buttons: [
|
|
87
|
+
* {
|
|
88
|
+
* text: "STRING_VALUE", // required
|
|
89
|
+
* value: "STRING_VALUE", // required
|
|
90
|
+
* },
|
|
91
|
+
* ],
|
|
92
|
+
* },
|
|
93
|
+
* },
|
|
94
|
+
* ],
|
|
95
|
+
* },
|
|
96
|
+
* ],
|
|
97
|
+
* maxRetries: Number("int"), // required
|
|
98
|
+
* allowInterrupt: true || false,
|
|
99
|
+
* messageSelectionStrategy: "Random" || "Ordered",
|
|
100
|
+
* promptAttemptsSpecification: { // PromptAttemptsSpecificationMap
|
|
101
|
+
* "<keys>": { // PromptAttemptSpecification
|
|
102
|
+
* allowInterrupt: true || false,
|
|
103
|
+
* allowedInputTypes: { // AllowedInputTypes
|
|
104
|
+
* allowAudioInput: true || false, // required
|
|
105
|
+
* allowDTMFInput: true || false, // required
|
|
106
|
+
* },
|
|
107
|
+
* audioAndDTMFInputSpecification: { // AudioAndDTMFInputSpecification
|
|
108
|
+
* startTimeoutMs: Number("int"), // required
|
|
109
|
+
* audioSpecification: { // AudioSpecification
|
|
110
|
+
* maxLengthMs: Number("int"), // required
|
|
111
|
+
* endTimeoutMs: Number("int"), // required
|
|
112
|
+
* },
|
|
113
|
+
* dtmfSpecification: { // DTMFSpecification
|
|
114
|
+
* maxLength: Number("int"), // required
|
|
115
|
+
* endTimeoutMs: Number("int"), // required
|
|
116
|
+
* deletionCharacter: "STRING_VALUE", // required
|
|
117
|
+
* endCharacter: "STRING_VALUE", // required
|
|
118
|
+
* },
|
|
119
|
+
* },
|
|
120
|
+
* textInputSpecification: { // TextInputSpecification
|
|
121
|
+
* startTimeoutMs: Number("int"), // required
|
|
122
|
+
* },
|
|
123
|
+
* },
|
|
124
|
+
* },
|
|
125
|
+
* },
|
|
126
|
+
* sampleUtterances: [ // SampleUtterancesList
|
|
127
|
+
* { // SampleUtterance
|
|
128
|
+
* utterance: "STRING_VALUE", // required
|
|
129
|
+
* },
|
|
130
|
+
* ],
|
|
131
|
+
* waitAndContinueSpecification: { // WaitAndContinueSpecification
|
|
132
|
+
* waitingResponse: { // ResponseSpecification
|
|
133
|
+
* messageGroups: [ // required
|
|
134
|
+
* {
|
|
135
|
+
* message: {
|
|
136
|
+
* plainTextMessage: {
|
|
137
|
+
* value: "STRING_VALUE", // required
|
|
138
|
+
* },
|
|
139
|
+
* customPayload: {
|
|
140
|
+
* value: "STRING_VALUE", // required
|
|
141
|
+
* },
|
|
142
|
+
* ssmlMessage: {
|
|
143
|
+
* value: "STRING_VALUE", // required
|
|
144
|
+
* },
|
|
145
|
+
* imageResponseCard: {
|
|
146
|
+
* title: "STRING_VALUE", // required
|
|
147
|
+
* subtitle: "STRING_VALUE",
|
|
148
|
+
* imageUrl: "STRING_VALUE",
|
|
149
|
+
* buttons: [
|
|
150
|
+
* {
|
|
151
|
+
* text: "STRING_VALUE", // required
|
|
152
|
+
* value: "STRING_VALUE", // required
|
|
153
|
+
* },
|
|
154
|
+
* ],
|
|
155
|
+
* },
|
|
156
|
+
* },
|
|
157
|
+
* variations: [
|
|
158
|
+
* "<Message>",
|
|
159
|
+
* ],
|
|
160
|
+
* },
|
|
161
|
+
* ],
|
|
162
|
+
* allowInterrupt: true || false,
|
|
163
|
+
* },
|
|
164
|
+
* continueResponse: {
|
|
165
|
+
* messageGroups: [ // required
|
|
166
|
+
* {
|
|
167
|
+
* message: "<Message>", // required
|
|
168
|
+
* variations: [
|
|
169
|
+
* "<Message>",
|
|
170
|
+
* ],
|
|
171
|
+
* },
|
|
172
|
+
* ],
|
|
173
|
+
* allowInterrupt: true || false,
|
|
174
|
+
* },
|
|
175
|
+
* stillWaitingResponse: { // StillWaitingResponseSpecification
|
|
176
|
+
* messageGroups: [ // required
|
|
177
|
+
* {
|
|
178
|
+
* message: "<Message>", // required
|
|
179
|
+
* variations: [
|
|
180
|
+
* "<Message>",
|
|
181
|
+
* ],
|
|
182
|
+
* },
|
|
183
|
+
* ],
|
|
184
|
+
* frequencyInSeconds: Number("int"), // required
|
|
185
|
+
* timeoutInSeconds: Number("int"), // required
|
|
186
|
+
* allowInterrupt: true || false,
|
|
187
|
+
* },
|
|
188
|
+
* active: true || false,
|
|
189
|
+
* },
|
|
190
|
+
* slotCaptureSetting: { // SlotCaptureSetting
|
|
191
|
+
* captureResponse: {
|
|
192
|
+
* messageGroups: [ // required
|
|
193
|
+
* {
|
|
194
|
+
* message: "<Message>", // required
|
|
195
|
+
* variations: [
|
|
196
|
+
* "<Message>",
|
|
197
|
+
* ],
|
|
198
|
+
* },
|
|
199
|
+
* ],
|
|
200
|
+
* allowInterrupt: true || false,
|
|
201
|
+
* },
|
|
202
|
+
* captureNextStep: { // DialogState
|
|
203
|
+
* dialogAction: { // DialogAction
|
|
204
|
+
* type: "ElicitIntent" || "StartIntent" || "ElicitSlot" || "EvaluateConditional" || "InvokeDialogCodeHook" || "ConfirmIntent" || "FulfillIntent" || "CloseIntent" || "EndConversation", // required
|
|
205
|
+
* slotToElicit: "STRING_VALUE",
|
|
206
|
+
* suppressNextMessage: true || false,
|
|
207
|
+
* },
|
|
208
|
+
* intent: { // IntentOverride
|
|
209
|
+
* name: "STRING_VALUE",
|
|
210
|
+
* slots: { // SlotValueOverrideMap
|
|
211
|
+
* "<keys>": { // SlotValueOverride
|
|
212
|
+
* shape: "Scalar" || "List",
|
|
213
|
+
* value: { // SlotValue
|
|
214
|
+
* interpretedValue: "STRING_VALUE",
|
|
215
|
+
* },
|
|
216
|
+
* values: [ // SlotValues
|
|
217
|
+
* {
|
|
218
|
+
* shape: "Scalar" || "List",
|
|
219
|
+
* value: {
|
|
220
|
+
* interpretedValue: "STRING_VALUE",
|
|
221
|
+
* },
|
|
222
|
+
* values: [
|
|
223
|
+
* "<SlotValueOverride>",
|
|
224
|
+
* ],
|
|
225
|
+
* },
|
|
226
|
+
* ],
|
|
227
|
+
* },
|
|
228
|
+
* },
|
|
229
|
+
* },
|
|
230
|
+
* sessionAttributes: { // StringMap
|
|
231
|
+
* "<keys>": "STRING_VALUE",
|
|
232
|
+
* },
|
|
233
|
+
* },
|
|
234
|
+
* captureConditional: { // ConditionalSpecification
|
|
235
|
+
* active: true || false, // required
|
|
236
|
+
* conditionalBranches: [ // ConditionalBranches // required
|
|
237
|
+
* { // ConditionalBranch
|
|
238
|
+
* name: "STRING_VALUE", // required
|
|
239
|
+
* condition: { // Condition
|
|
240
|
+
* expressionString: "STRING_VALUE", // required
|
|
241
|
+
* },
|
|
242
|
+
* nextStep: {
|
|
243
|
+
* dialogAction: {
|
|
244
|
+
* type: "ElicitIntent" || "StartIntent" || "ElicitSlot" || "EvaluateConditional" || "InvokeDialogCodeHook" || "ConfirmIntent" || "FulfillIntent" || "CloseIntent" || "EndConversation", // required
|
|
245
|
+
* slotToElicit: "STRING_VALUE",
|
|
246
|
+
* suppressNextMessage: true || false,
|
|
247
|
+
* },
|
|
248
|
+
* intent: {
|
|
249
|
+
* name: "STRING_VALUE",
|
|
250
|
+
* slots: {
|
|
251
|
+
* "<keys>": "<SlotValueOverride>",
|
|
252
|
+
* },
|
|
253
|
+
* },
|
|
254
|
+
* sessionAttributes: {
|
|
255
|
+
* "<keys>": "STRING_VALUE",
|
|
256
|
+
* },
|
|
257
|
+
* },
|
|
258
|
+
* response: {
|
|
259
|
+
* messageGroups: "<MessageGroupsList>", // required
|
|
260
|
+
* allowInterrupt: true || false,
|
|
261
|
+
* },
|
|
262
|
+
* },
|
|
263
|
+
* ],
|
|
264
|
+
* defaultBranch: { // DefaultConditionalBranch
|
|
265
|
+
* nextStep: "<DialogState>",
|
|
266
|
+
* response: "<ResponseSpecification>",
|
|
267
|
+
* },
|
|
268
|
+
* },
|
|
269
|
+
* failureResponse: "<ResponseSpecification>",
|
|
270
|
+
* failureNextStep: "<DialogState>",
|
|
271
|
+
* failureConditional: {
|
|
272
|
+
* active: true || false, // required
|
|
273
|
+
* conditionalBranches: [ // required
|
|
274
|
+
* {
|
|
275
|
+
* name: "STRING_VALUE", // required
|
|
276
|
+
* condition: {
|
|
277
|
+
* expressionString: "STRING_VALUE", // required
|
|
278
|
+
* },
|
|
279
|
+
* nextStep: "<DialogState>", // required
|
|
280
|
+
* response: "<ResponseSpecification>",
|
|
281
|
+
* },
|
|
282
|
+
* ],
|
|
283
|
+
* defaultBranch: {
|
|
284
|
+
* nextStep: "<DialogState>",
|
|
285
|
+
* response: "<ResponseSpecification>",
|
|
286
|
+
* },
|
|
287
|
+
* },
|
|
288
|
+
* codeHook: { // DialogCodeHookInvocationSetting
|
|
289
|
+
* enableCodeHookInvocation: true || false, // required
|
|
290
|
+
* active: true || false, // required
|
|
291
|
+
* invocationLabel: "STRING_VALUE",
|
|
292
|
+
* postCodeHookSpecification: { // PostDialogCodeHookInvocationSpecification
|
|
293
|
+
* successResponse: "<ResponseSpecification>",
|
|
294
|
+
* successNextStep: "<DialogState>",
|
|
295
|
+
* successConditional: {
|
|
296
|
+
* active: true || false, // required
|
|
297
|
+
* conditionalBranches: [ // required
|
|
298
|
+
* {
|
|
299
|
+
* name: "STRING_VALUE", // required
|
|
300
|
+
* condition: {
|
|
301
|
+
* expressionString: "STRING_VALUE", // required
|
|
302
|
+
* },
|
|
303
|
+
* nextStep: "<DialogState>", // required
|
|
304
|
+
* response: "<ResponseSpecification>",
|
|
305
|
+
* },
|
|
306
|
+
* ],
|
|
307
|
+
* defaultBranch: {
|
|
308
|
+
* nextStep: "<DialogState>",
|
|
309
|
+
* response: "<ResponseSpecification>",
|
|
310
|
+
* },
|
|
311
|
+
* },
|
|
312
|
+
* failureResponse: "<ResponseSpecification>",
|
|
313
|
+
* failureNextStep: "<DialogState>",
|
|
314
|
+
* failureConditional: {
|
|
315
|
+
* active: true || false, // required
|
|
316
|
+
* conditionalBranches: [ // required
|
|
317
|
+
* {
|
|
318
|
+
* name: "STRING_VALUE", // required
|
|
319
|
+
* condition: {
|
|
320
|
+
* expressionString: "STRING_VALUE", // required
|
|
321
|
+
* },
|
|
322
|
+
* nextStep: "<DialogState>", // required
|
|
323
|
+
* response: "<ResponseSpecification>",
|
|
324
|
+
* },
|
|
325
|
+
* ],
|
|
326
|
+
* defaultBranch: {
|
|
327
|
+
* nextStep: "<DialogState>",
|
|
328
|
+
* response: "<ResponseSpecification>",
|
|
329
|
+
* },
|
|
330
|
+
* },
|
|
331
|
+
* timeoutResponse: "<ResponseSpecification>",
|
|
332
|
+
* timeoutNextStep: "<DialogState>",
|
|
333
|
+
* timeoutConditional: {
|
|
334
|
+
* active: true || false, // required
|
|
335
|
+
* conditionalBranches: [ // required
|
|
336
|
+
* {
|
|
337
|
+
* name: "STRING_VALUE", // required
|
|
338
|
+
* condition: {
|
|
339
|
+
* expressionString: "STRING_VALUE", // required
|
|
340
|
+
* },
|
|
341
|
+
* nextStep: "<DialogState>", // required
|
|
342
|
+
* response: "<ResponseSpecification>",
|
|
343
|
+
* },
|
|
344
|
+
* ],
|
|
345
|
+
* defaultBranch: {
|
|
346
|
+
* nextStep: "<DialogState>",
|
|
347
|
+
* response: "<ResponseSpecification>",
|
|
348
|
+
* },
|
|
349
|
+
* },
|
|
350
|
+
* },
|
|
351
|
+
* },
|
|
352
|
+
* elicitationCodeHook: { // ElicitationCodeHookInvocationSetting
|
|
353
|
+
* enableCodeHookInvocation: true || false, // required
|
|
354
|
+
* invocationLabel: "STRING_VALUE",
|
|
355
|
+
* },
|
|
356
|
+
* },
|
|
357
|
+
* },
|
|
358
|
+
* obfuscationSetting: { // ObfuscationSetting
|
|
359
|
+
* obfuscationSettingType: "None" || "DefaultObfuscation", // required
|
|
360
|
+
* },
|
|
361
|
+
* botId: "STRING_VALUE", // required
|
|
362
|
+
* botVersion: "STRING_VALUE", // required
|
|
363
|
+
* localeId: "STRING_VALUE", // required
|
|
364
|
+
* intentId: "STRING_VALUE", // required
|
|
365
|
+
* multipleValuesSetting: { // MultipleValuesSetting
|
|
366
|
+
* allowMultipleValues: true || false,
|
|
367
|
+
* },
|
|
368
|
+
* subSlotSetting: { // SubSlotSetting
|
|
369
|
+
* expression: "STRING_VALUE",
|
|
370
|
+
* slotSpecifications: { // SubSlotSpecificationMap
|
|
371
|
+
* "<keys>": { // Specifications
|
|
372
|
+
* slotTypeId: "STRING_VALUE", // required
|
|
373
|
+
* valueElicitationSetting: { // SubSlotValueElicitationSetting
|
|
374
|
+
* defaultValueSpecification: {
|
|
375
|
+
* defaultValueList: [ // required
|
|
376
|
+
* {
|
|
377
|
+
* defaultValue: "STRING_VALUE", // required
|
|
378
|
+
* },
|
|
379
|
+
* ],
|
|
380
|
+
* },
|
|
381
|
+
* promptSpecification: {
|
|
382
|
+
* messageGroups: "<MessageGroupsList>", // required
|
|
383
|
+
* maxRetries: Number("int"), // required
|
|
384
|
+
* allowInterrupt: true || false,
|
|
385
|
+
* messageSelectionStrategy: "Random" || "Ordered",
|
|
386
|
+
* promptAttemptsSpecification: {
|
|
387
|
+
* "<keys>": {
|
|
388
|
+
* allowInterrupt: true || false,
|
|
389
|
+
* allowedInputTypes: {
|
|
390
|
+
* allowAudioInput: true || false, // required
|
|
391
|
+
* allowDTMFInput: true || false, // required
|
|
392
|
+
* },
|
|
393
|
+
* audioAndDTMFInputSpecification: {
|
|
394
|
+
* startTimeoutMs: Number("int"), // required
|
|
395
|
+
* audioSpecification: {
|
|
396
|
+
* maxLengthMs: Number("int"), // required
|
|
397
|
+
* endTimeoutMs: Number("int"), // required
|
|
398
|
+
* },
|
|
399
|
+
* dtmfSpecification: {
|
|
400
|
+
* maxLength: Number("int"), // required
|
|
401
|
+
* endTimeoutMs: Number("int"), // required
|
|
402
|
+
* deletionCharacter: "STRING_VALUE", // required
|
|
403
|
+
* endCharacter: "STRING_VALUE", // required
|
|
404
|
+
* },
|
|
405
|
+
* },
|
|
406
|
+
* textInputSpecification: {
|
|
407
|
+
* startTimeoutMs: Number("int"), // required
|
|
408
|
+
* },
|
|
409
|
+
* },
|
|
410
|
+
* },
|
|
411
|
+
* },
|
|
412
|
+
* sampleUtterances: [
|
|
413
|
+
* {
|
|
414
|
+
* utterance: "STRING_VALUE", // required
|
|
415
|
+
* },
|
|
416
|
+
* ],
|
|
417
|
+
* waitAndContinueSpecification: {
|
|
418
|
+
* waitingResponse: "<ResponseSpecification>", // required
|
|
419
|
+
* continueResponse: "<ResponseSpecification>", // required
|
|
420
|
+
* stillWaitingResponse: {
|
|
421
|
+
* messageGroups: "<MessageGroupsList>", // required
|
|
422
|
+
* frequencyInSeconds: Number("int"), // required
|
|
423
|
+
* timeoutInSeconds: Number("int"), // required
|
|
424
|
+
* allowInterrupt: true || false,
|
|
425
|
+
* },
|
|
426
|
+
* active: true || false,
|
|
427
|
+
* },
|
|
428
|
+
* },
|
|
429
|
+
* },
|
|
430
|
+
* },
|
|
431
|
+
* },
|
|
432
|
+
* };
|
|
33
433
|
* const command = new CreateSlotCommand(input);
|
|
34
434
|
* const response = await client.send(command);
|
|
35
435
|
* ```
|
|
@@ -29,6 +29,52 @@ export interface CreateSlotTypeCommandOutput extends CreateSlotTypeResponse, __M
|
|
|
29
29
|
* import { LexModelsV2Client, CreateSlotTypeCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
30
30
|
* // const { LexModelsV2Client, CreateSlotTypeCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
31
31
|
* const client = new LexModelsV2Client(config);
|
|
32
|
+
* const input = { // CreateSlotTypeRequest
|
|
33
|
+
* slotTypeName: "STRING_VALUE", // required
|
|
34
|
+
* description: "STRING_VALUE",
|
|
35
|
+
* slotTypeValues: [ // SlotTypeValues
|
|
36
|
+
* { // SlotTypeValue
|
|
37
|
+
* sampleValue: { // SampleValue
|
|
38
|
+
* value: "STRING_VALUE", // required
|
|
39
|
+
* },
|
|
40
|
+
* synonyms: [ // SynonymList
|
|
41
|
+
* {
|
|
42
|
+
* value: "STRING_VALUE", // required
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* valueSelectionSetting: { // SlotValueSelectionSetting
|
|
48
|
+
* resolutionStrategy: "OriginalValue" || "TopResolution" || "Concatenation", // required
|
|
49
|
+
* regexFilter: { // SlotValueRegexFilter
|
|
50
|
+
* pattern: "STRING_VALUE", // required
|
|
51
|
+
* },
|
|
52
|
+
* advancedRecognitionSetting: { // AdvancedRecognitionSetting
|
|
53
|
+
* audioRecognitionStrategy: "UseSlotValuesAsCustomVocabulary",
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* parentSlotTypeSignature: "STRING_VALUE",
|
|
57
|
+
* botId: "STRING_VALUE", // required
|
|
58
|
+
* botVersion: "STRING_VALUE", // required
|
|
59
|
+
* localeId: "STRING_VALUE", // required
|
|
60
|
+
* externalSourceSetting: { // ExternalSourceSetting
|
|
61
|
+
* grammarSlotTypeSetting: { // GrammarSlotTypeSetting
|
|
62
|
+
* source: { // GrammarSlotTypeSource
|
|
63
|
+
* s3BucketName: "STRING_VALUE", // required
|
|
64
|
+
* s3ObjectKey: "STRING_VALUE", // required
|
|
65
|
+
* kmsKeyArn: "STRING_VALUE",
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* compositeSlotTypeSetting: { // CompositeSlotTypeSetting
|
|
70
|
+
* subSlots: [ // SubSlotTypeList
|
|
71
|
+
* { // SubSlotTypeComposition
|
|
72
|
+
* name: "STRING_VALUE", // required
|
|
73
|
+
* slotTypeId: "STRING_VALUE", // required
|
|
74
|
+
* },
|
|
75
|
+
* ],
|
|
76
|
+
* },
|
|
77
|
+
* };
|
|
32
78
|
* const command = new CreateSlotTypeCommand(input);
|
|
33
79
|
* const response = await client.send(command);
|
|
34
80
|
* ```
|
|
@@ -27,6 +27,7 @@ export interface CreateUploadUrlCommandOutput extends CreateUploadUrlResponse, _
|
|
|
27
27
|
* import { LexModelsV2Client, CreateUploadUrlCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
28
28
|
* // const { LexModelsV2Client, CreateUploadUrlCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
29
29
|
* const client = new LexModelsV2Client(config);
|
|
30
|
+
* const input = {};
|
|
30
31
|
* const command = new CreateUploadUrlCommand(input);
|
|
31
32
|
* const response = await client.send(command);
|
|
32
33
|
* ```
|
|
@@ -26,6 +26,11 @@ export interface DeleteBotAliasCommandOutput extends DeleteBotAliasResponse, __M
|
|
|
26
26
|
* import { LexModelsV2Client, DeleteBotAliasCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
27
27
|
* // const { LexModelsV2Client, DeleteBotAliasCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
28
28
|
* const client = new LexModelsV2Client(config);
|
|
29
|
+
* const input = { // DeleteBotAliasRequest
|
|
30
|
+
* botAliasId: "STRING_VALUE", // required
|
|
31
|
+
* botId: "STRING_VALUE", // required
|
|
32
|
+
* skipResourceInUseCheck: true || false,
|
|
33
|
+
* };
|
|
29
34
|
* const command = new DeleteBotAliasCommand(input);
|
|
30
35
|
* const response = await client.send(command);
|
|
31
36
|
* ```
|
|
@@ -35,6 +35,10 @@ export interface DeleteBotCommandOutput extends DeleteBotResponse, __MetadataBea
|
|
|
35
35
|
* import { LexModelsV2Client, DeleteBotCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
36
36
|
* // const { LexModelsV2Client, DeleteBotCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
37
37
|
* const client = new LexModelsV2Client(config);
|
|
38
|
+
* const input = { // DeleteBotRequest
|
|
39
|
+
* botId: "STRING_VALUE", // required
|
|
40
|
+
* skipResourceInUseCheck: true || false,
|
|
41
|
+
* };
|
|
38
42
|
* const command = new DeleteBotCommand(input);
|
|
39
43
|
* const response = await client.send(command);
|
|
40
44
|
* ```
|
|
@@ -28,6 +28,11 @@ export interface DeleteBotLocaleCommandOutput extends DeleteBotLocaleResponse, _
|
|
|
28
28
|
* import { LexModelsV2Client, DeleteBotLocaleCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
29
29
|
* // const { LexModelsV2Client, DeleteBotLocaleCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
30
30
|
* const client = new LexModelsV2Client(config);
|
|
31
|
+
* const input = { // DeleteBotLocaleRequest
|
|
32
|
+
* botId: "STRING_VALUE", // required
|
|
33
|
+
* botVersion: "STRING_VALUE", // required
|
|
34
|
+
* localeId: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
31
36
|
* const command = new DeleteBotLocaleCommand(input);
|
|
32
37
|
* const response = await client.send(command);
|
|
33
38
|
* ```
|
|
@@ -27,6 +27,11 @@ export interface DeleteBotVersionCommandOutput extends DeleteBotVersionResponse,
|
|
|
27
27
|
* import { LexModelsV2Client, DeleteBotVersionCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
28
28
|
* // const { LexModelsV2Client, DeleteBotVersionCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
29
29
|
* const client = new LexModelsV2Client(config);
|
|
30
|
+
* const input = { // DeleteBotVersionRequest
|
|
31
|
+
* botId: "STRING_VALUE", // required
|
|
32
|
+
* botVersion: "STRING_VALUE", // required
|
|
33
|
+
* skipResourceInUseCheck: true || false,
|
|
34
|
+
* };
|
|
30
35
|
* const command = new DeleteBotVersionCommand(input);
|
|
31
36
|
* const response = await client.send(command);
|
|
32
37
|
* ```
|
|
@@ -27,6 +27,11 @@ export interface DeleteCustomVocabularyCommandOutput extends DeleteCustomVocabul
|
|
|
27
27
|
* import { LexModelsV2Client, DeleteCustomVocabularyCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
28
28
|
* // const { LexModelsV2Client, DeleteCustomVocabularyCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
29
29
|
* const client = new LexModelsV2Client(config);
|
|
30
|
+
* const input = { // DeleteCustomVocabularyRequest
|
|
31
|
+
* botId: "STRING_VALUE", // required
|
|
32
|
+
* botVersion: "STRING_VALUE", // required
|
|
33
|
+
* localeId: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
30
35
|
* const command = new DeleteCustomVocabularyCommand(input);
|
|
31
36
|
* const response = await client.send(command);
|
|
32
37
|
* ```
|
|
@@ -27,6 +27,9 @@ export interface DeleteExportCommandOutput extends DeleteExportResponse, __Metad
|
|
|
27
27
|
* import { LexModelsV2Client, DeleteExportCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
28
28
|
* // const { LexModelsV2Client, DeleteExportCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
29
29
|
* const client = new LexModelsV2Client(config);
|
|
30
|
+
* const input = { // DeleteExportRequest
|
|
31
|
+
* exportId: "STRING_VALUE", // required
|
|
32
|
+
* };
|
|
30
33
|
* const command = new DeleteExportCommand(input);
|
|
31
34
|
* const response = await client.send(command);
|
|
32
35
|
* ```
|
|
@@ -27,6 +27,9 @@ export interface DeleteImportCommandOutput extends DeleteImportResponse, __Metad
|
|
|
27
27
|
* import { LexModelsV2Client, DeleteImportCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
28
28
|
* // const { LexModelsV2Client, DeleteImportCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
29
29
|
* const client = new LexModelsV2Client(config);
|
|
30
|
+
* const input = { // DeleteImportRequest
|
|
31
|
+
* importId: "STRING_VALUE", // required
|
|
32
|
+
* };
|
|
30
33
|
* const command = new DeleteImportCommand(input);
|
|
31
34
|
* const response = await client.send(command);
|
|
32
35
|
* ```
|
|
@@ -28,6 +28,12 @@ export interface DeleteIntentCommandOutput extends __MetadataBearer {
|
|
|
28
28
|
* import { LexModelsV2Client, DeleteIntentCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
29
29
|
* // const { LexModelsV2Client, DeleteIntentCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
30
30
|
* const client = new LexModelsV2Client(config);
|
|
31
|
+
* const input = { // DeleteIntentRequest
|
|
32
|
+
* intentId: "STRING_VALUE", // required
|
|
33
|
+
* botId: "STRING_VALUE", // required
|
|
34
|
+
* botVersion: "STRING_VALUE", // required
|
|
35
|
+
* localeId: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
31
37
|
* const command = new DeleteIntentCommand(input);
|
|
32
38
|
* const response = await client.send(command);
|
|
33
39
|
* ```
|
|
@@ -27,6 +27,10 @@ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyR
|
|
|
27
27
|
* import { LexModelsV2Client, DeleteResourcePolicyCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
28
28
|
* // const { LexModelsV2Client, DeleteResourcePolicyCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
29
29
|
* const client = new LexModelsV2Client(config);
|
|
30
|
+
* const input = { // DeleteResourcePolicyRequest
|
|
31
|
+
* resourceArn: "STRING_VALUE", // required
|
|
32
|
+
* expectedRevisionId: "STRING_VALUE",
|
|
33
|
+
* };
|
|
30
34
|
* const command = new DeleteResourcePolicyCommand(input);
|
|
31
35
|
* const response = await client.send(command);
|
|
32
36
|
* ```
|
|
@@ -30,6 +30,11 @@ export interface DeleteResourcePolicyStatementCommandOutput extends DeleteResour
|
|
|
30
30
|
* import { LexModelsV2Client, DeleteResourcePolicyStatementCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
31
31
|
* // const { LexModelsV2Client, DeleteResourcePolicyStatementCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
32
32
|
* const client = new LexModelsV2Client(config);
|
|
33
|
+
* const input = { // DeleteResourcePolicyStatementRequest
|
|
34
|
+
* resourceArn: "STRING_VALUE", // required
|
|
35
|
+
* statementId: "STRING_VALUE", // required
|
|
36
|
+
* expectedRevisionId: "STRING_VALUE",
|
|
37
|
+
* };
|
|
33
38
|
* const command = new DeleteResourcePolicyStatementCommand(input);
|
|
34
39
|
* const response = await client.send(command);
|
|
35
40
|
* ```
|
|
@@ -26,6 +26,13 @@ export interface DeleteSlotCommandOutput extends __MetadataBearer {
|
|
|
26
26
|
* import { LexModelsV2Client, DeleteSlotCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
27
27
|
* // const { LexModelsV2Client, DeleteSlotCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
28
28
|
* const client = new LexModelsV2Client(config);
|
|
29
|
+
* const input = { // DeleteSlotRequest
|
|
30
|
+
* slotId: "STRING_VALUE", // required
|
|
31
|
+
* botId: "STRING_VALUE", // required
|
|
32
|
+
* botVersion: "STRING_VALUE", // required
|
|
33
|
+
* localeId: "STRING_VALUE", // required
|
|
34
|
+
* intentId: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
29
36
|
* const command = new DeleteSlotCommand(input);
|
|
30
37
|
* const response = await client.send(command);
|
|
31
38
|
* ```
|
|
@@ -30,6 +30,13 @@ export interface DeleteSlotTypeCommandOutput extends __MetadataBearer {
|
|
|
30
30
|
* import { LexModelsV2Client, DeleteSlotTypeCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
31
31
|
* // const { LexModelsV2Client, DeleteSlotTypeCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
32
32
|
* const client = new LexModelsV2Client(config);
|
|
33
|
+
* const input = { // DeleteSlotTypeRequest
|
|
34
|
+
* slotTypeId: "STRING_VALUE", // required
|
|
35
|
+
* botId: "STRING_VALUE", // required
|
|
36
|
+
* botVersion: "STRING_VALUE", // required
|
|
37
|
+
* localeId: "STRING_VALUE", // required
|
|
38
|
+
* skipResourceInUseCheck: true || false,
|
|
39
|
+
* };
|
|
33
40
|
* const command = new DeleteSlotTypeCommand(input);
|
|
34
41
|
* const response = await client.send(command);
|
|
35
42
|
* ```
|
|
@@ -37,6 +37,11 @@ export interface DeleteUtterancesCommandOutput extends DeleteUtterancesResponse,
|
|
|
37
37
|
* import { LexModelsV2Client, DeleteUtterancesCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
|
|
38
38
|
* // const { LexModelsV2Client, DeleteUtterancesCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
|
|
39
39
|
* const client = new LexModelsV2Client(config);
|
|
40
|
+
* const input = { // DeleteUtterancesRequest
|
|
41
|
+
* botId: "STRING_VALUE", // required
|
|
42
|
+
* localeId: "STRING_VALUE",
|
|
43
|
+
* sessionId: "STRING_VALUE",
|
|
44
|
+
* };
|
|
40
45
|
* const command = new DeleteUtterancesCommand(input);
|
|
41
46
|
* const response = await client.send(command);
|
|
42
47
|
* ```
|