@aws-sdk/client-lex-model-building-service 3.315.0 → 3.319.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LexModelBuildingService = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateBotVersionCommand_1 = require("./commands/CreateBotVersionCommand");
5
6
  const CreateIntentVersionCommand_1 = require("./commands/CreateIntentVersionCommand");
6
7
  const CreateSlotTypeVersionCommand_1 = require("./commands/CreateSlotTypeVersionCommand");
@@ -44,594 +45,51 @@ const StartMigrationCommand_1 = require("./commands/StartMigrationCommand");
44
45
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
45
46
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
46
47
  const LexModelBuildingServiceClient_1 = require("./LexModelBuildingServiceClient");
48
+ const commands = {
49
+ CreateBotVersionCommand: CreateBotVersionCommand_1.CreateBotVersionCommand,
50
+ CreateIntentVersionCommand: CreateIntentVersionCommand_1.CreateIntentVersionCommand,
51
+ CreateSlotTypeVersionCommand: CreateSlotTypeVersionCommand_1.CreateSlotTypeVersionCommand,
52
+ DeleteBotCommand: DeleteBotCommand_1.DeleteBotCommand,
53
+ DeleteBotAliasCommand: DeleteBotAliasCommand_1.DeleteBotAliasCommand,
54
+ DeleteBotChannelAssociationCommand: DeleteBotChannelAssociationCommand_1.DeleteBotChannelAssociationCommand,
55
+ DeleteBotVersionCommand: DeleteBotVersionCommand_1.DeleteBotVersionCommand,
56
+ DeleteIntentCommand: DeleteIntentCommand_1.DeleteIntentCommand,
57
+ DeleteIntentVersionCommand: DeleteIntentVersionCommand_1.DeleteIntentVersionCommand,
58
+ DeleteSlotTypeCommand: DeleteSlotTypeCommand_1.DeleteSlotTypeCommand,
59
+ DeleteSlotTypeVersionCommand: DeleteSlotTypeVersionCommand_1.DeleteSlotTypeVersionCommand,
60
+ DeleteUtterancesCommand: DeleteUtterancesCommand_1.DeleteUtterancesCommand,
61
+ GetBotCommand: GetBotCommand_1.GetBotCommand,
62
+ GetBotAliasCommand: GetBotAliasCommand_1.GetBotAliasCommand,
63
+ GetBotAliasesCommand: GetBotAliasesCommand_1.GetBotAliasesCommand,
64
+ GetBotChannelAssociationCommand: GetBotChannelAssociationCommand_1.GetBotChannelAssociationCommand,
65
+ GetBotChannelAssociationsCommand: GetBotChannelAssociationsCommand_1.GetBotChannelAssociationsCommand,
66
+ GetBotsCommand: GetBotsCommand_1.GetBotsCommand,
67
+ GetBotVersionsCommand: GetBotVersionsCommand_1.GetBotVersionsCommand,
68
+ GetBuiltinIntentCommand: GetBuiltinIntentCommand_1.GetBuiltinIntentCommand,
69
+ GetBuiltinIntentsCommand: GetBuiltinIntentsCommand_1.GetBuiltinIntentsCommand,
70
+ GetBuiltinSlotTypesCommand: GetBuiltinSlotTypesCommand_1.GetBuiltinSlotTypesCommand,
71
+ GetExportCommand: GetExportCommand_1.GetExportCommand,
72
+ GetImportCommand: GetImportCommand_1.GetImportCommand,
73
+ GetIntentCommand: GetIntentCommand_1.GetIntentCommand,
74
+ GetIntentsCommand: GetIntentsCommand_1.GetIntentsCommand,
75
+ GetIntentVersionsCommand: GetIntentVersionsCommand_1.GetIntentVersionsCommand,
76
+ GetMigrationCommand: GetMigrationCommand_1.GetMigrationCommand,
77
+ GetMigrationsCommand: GetMigrationsCommand_1.GetMigrationsCommand,
78
+ GetSlotTypeCommand: GetSlotTypeCommand_1.GetSlotTypeCommand,
79
+ GetSlotTypesCommand: GetSlotTypesCommand_1.GetSlotTypesCommand,
80
+ GetSlotTypeVersionsCommand: GetSlotTypeVersionsCommand_1.GetSlotTypeVersionsCommand,
81
+ GetUtterancesViewCommand: GetUtterancesViewCommand_1.GetUtterancesViewCommand,
82
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
83
+ PutBotCommand: PutBotCommand_1.PutBotCommand,
84
+ PutBotAliasCommand: PutBotAliasCommand_1.PutBotAliasCommand,
85
+ PutIntentCommand: PutIntentCommand_1.PutIntentCommand,
86
+ PutSlotTypeCommand: PutSlotTypeCommand_1.PutSlotTypeCommand,
87
+ StartImportCommand: StartImportCommand_1.StartImportCommand,
88
+ StartMigrationCommand: StartMigrationCommand_1.StartMigrationCommand,
89
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
90
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
91
+ };
47
92
  class LexModelBuildingService extends LexModelBuildingServiceClient_1.LexModelBuildingServiceClient {
48
- createBotVersion(args, optionsOrCb, cb) {
49
- const command = new CreateBotVersionCommand_1.CreateBotVersionCommand(args);
50
- if (typeof optionsOrCb === "function") {
51
- this.send(command, optionsOrCb);
52
- }
53
- else if (typeof cb === "function") {
54
- if (typeof optionsOrCb !== "object")
55
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
56
- this.send(command, optionsOrCb || {}, cb);
57
- }
58
- else {
59
- return this.send(command, optionsOrCb);
60
- }
61
- }
62
- createIntentVersion(args, optionsOrCb, cb) {
63
- const command = new CreateIntentVersionCommand_1.CreateIntentVersionCommand(args);
64
- if (typeof optionsOrCb === "function") {
65
- this.send(command, optionsOrCb);
66
- }
67
- else if (typeof cb === "function") {
68
- if (typeof optionsOrCb !== "object")
69
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
- this.send(command, optionsOrCb || {}, cb);
71
- }
72
- else {
73
- return this.send(command, optionsOrCb);
74
- }
75
- }
76
- createSlotTypeVersion(args, optionsOrCb, cb) {
77
- const command = new CreateSlotTypeVersionCommand_1.CreateSlotTypeVersionCommand(args);
78
- if (typeof optionsOrCb === "function") {
79
- this.send(command, optionsOrCb);
80
- }
81
- else if (typeof cb === "function") {
82
- if (typeof optionsOrCb !== "object")
83
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
84
- this.send(command, optionsOrCb || {}, cb);
85
- }
86
- else {
87
- return this.send(command, optionsOrCb);
88
- }
89
- }
90
- deleteBot(args, optionsOrCb, cb) {
91
- const command = new DeleteBotCommand_1.DeleteBotCommand(args);
92
- if (typeof optionsOrCb === "function") {
93
- this.send(command, optionsOrCb);
94
- }
95
- else if (typeof cb === "function") {
96
- if (typeof optionsOrCb !== "object")
97
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
98
- this.send(command, optionsOrCb || {}, cb);
99
- }
100
- else {
101
- return this.send(command, optionsOrCb);
102
- }
103
- }
104
- deleteBotAlias(args, optionsOrCb, cb) {
105
- const command = new DeleteBotAliasCommand_1.DeleteBotAliasCommand(args);
106
- if (typeof optionsOrCb === "function") {
107
- this.send(command, optionsOrCb);
108
- }
109
- else if (typeof cb === "function") {
110
- if (typeof optionsOrCb !== "object")
111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
112
- this.send(command, optionsOrCb || {}, cb);
113
- }
114
- else {
115
- return this.send(command, optionsOrCb);
116
- }
117
- }
118
- deleteBotChannelAssociation(args, optionsOrCb, cb) {
119
- const command = new DeleteBotChannelAssociationCommand_1.DeleteBotChannelAssociationCommand(args);
120
- if (typeof optionsOrCb === "function") {
121
- this.send(command, optionsOrCb);
122
- }
123
- else if (typeof cb === "function") {
124
- if (typeof optionsOrCb !== "object")
125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
126
- this.send(command, optionsOrCb || {}, cb);
127
- }
128
- else {
129
- return this.send(command, optionsOrCb);
130
- }
131
- }
132
- deleteBotVersion(args, optionsOrCb, cb) {
133
- const command = new DeleteBotVersionCommand_1.DeleteBotVersionCommand(args);
134
- if (typeof optionsOrCb === "function") {
135
- this.send(command, optionsOrCb);
136
- }
137
- else if (typeof cb === "function") {
138
- if (typeof optionsOrCb !== "object")
139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
140
- this.send(command, optionsOrCb || {}, cb);
141
- }
142
- else {
143
- return this.send(command, optionsOrCb);
144
- }
145
- }
146
- deleteIntent(args, optionsOrCb, cb) {
147
- const command = new DeleteIntentCommand_1.DeleteIntentCommand(args);
148
- if (typeof optionsOrCb === "function") {
149
- this.send(command, optionsOrCb);
150
- }
151
- else if (typeof cb === "function") {
152
- if (typeof optionsOrCb !== "object")
153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
154
- this.send(command, optionsOrCb || {}, cb);
155
- }
156
- else {
157
- return this.send(command, optionsOrCb);
158
- }
159
- }
160
- deleteIntentVersion(args, optionsOrCb, cb) {
161
- const command = new DeleteIntentVersionCommand_1.DeleteIntentVersionCommand(args);
162
- if (typeof optionsOrCb === "function") {
163
- this.send(command, optionsOrCb);
164
- }
165
- else if (typeof cb === "function") {
166
- if (typeof optionsOrCb !== "object")
167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
- this.send(command, optionsOrCb || {}, cb);
169
- }
170
- else {
171
- return this.send(command, optionsOrCb);
172
- }
173
- }
174
- deleteSlotType(args, optionsOrCb, cb) {
175
- const command = new DeleteSlotTypeCommand_1.DeleteSlotTypeCommand(args);
176
- if (typeof optionsOrCb === "function") {
177
- this.send(command, optionsOrCb);
178
- }
179
- else if (typeof cb === "function") {
180
- if (typeof optionsOrCb !== "object")
181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
- this.send(command, optionsOrCb || {}, cb);
183
- }
184
- else {
185
- return this.send(command, optionsOrCb);
186
- }
187
- }
188
- deleteSlotTypeVersion(args, optionsOrCb, cb) {
189
- const command = new DeleteSlotTypeVersionCommand_1.DeleteSlotTypeVersionCommand(args);
190
- if (typeof optionsOrCb === "function") {
191
- this.send(command, optionsOrCb);
192
- }
193
- else if (typeof cb === "function") {
194
- if (typeof optionsOrCb !== "object")
195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
196
- this.send(command, optionsOrCb || {}, cb);
197
- }
198
- else {
199
- return this.send(command, optionsOrCb);
200
- }
201
- }
202
- deleteUtterances(args, optionsOrCb, cb) {
203
- const command = new DeleteUtterancesCommand_1.DeleteUtterancesCommand(args);
204
- if (typeof optionsOrCb === "function") {
205
- this.send(command, optionsOrCb);
206
- }
207
- else if (typeof cb === "function") {
208
- if (typeof optionsOrCb !== "object")
209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
210
- this.send(command, optionsOrCb || {}, cb);
211
- }
212
- else {
213
- return this.send(command, optionsOrCb);
214
- }
215
- }
216
- getBot(args, optionsOrCb, cb) {
217
- const command = new GetBotCommand_1.GetBotCommand(args);
218
- if (typeof optionsOrCb === "function") {
219
- this.send(command, optionsOrCb);
220
- }
221
- else if (typeof cb === "function") {
222
- if (typeof optionsOrCb !== "object")
223
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
224
- this.send(command, optionsOrCb || {}, cb);
225
- }
226
- else {
227
- return this.send(command, optionsOrCb);
228
- }
229
- }
230
- getBotAlias(args, optionsOrCb, cb) {
231
- const command = new GetBotAliasCommand_1.GetBotAliasCommand(args);
232
- if (typeof optionsOrCb === "function") {
233
- this.send(command, optionsOrCb);
234
- }
235
- else if (typeof cb === "function") {
236
- if (typeof optionsOrCb !== "object")
237
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
238
- this.send(command, optionsOrCb || {}, cb);
239
- }
240
- else {
241
- return this.send(command, optionsOrCb);
242
- }
243
- }
244
- getBotAliases(args, optionsOrCb, cb) {
245
- const command = new GetBotAliasesCommand_1.GetBotAliasesCommand(args);
246
- if (typeof optionsOrCb === "function") {
247
- this.send(command, optionsOrCb);
248
- }
249
- else if (typeof cb === "function") {
250
- if (typeof optionsOrCb !== "object")
251
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
252
- this.send(command, optionsOrCb || {}, cb);
253
- }
254
- else {
255
- return this.send(command, optionsOrCb);
256
- }
257
- }
258
- getBotChannelAssociation(args, optionsOrCb, cb) {
259
- const command = new GetBotChannelAssociationCommand_1.GetBotChannelAssociationCommand(args);
260
- if (typeof optionsOrCb === "function") {
261
- this.send(command, optionsOrCb);
262
- }
263
- else if (typeof cb === "function") {
264
- if (typeof optionsOrCb !== "object")
265
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
266
- this.send(command, optionsOrCb || {}, cb);
267
- }
268
- else {
269
- return this.send(command, optionsOrCb);
270
- }
271
- }
272
- getBotChannelAssociations(args, optionsOrCb, cb) {
273
- const command = new GetBotChannelAssociationsCommand_1.GetBotChannelAssociationsCommand(args);
274
- if (typeof optionsOrCb === "function") {
275
- this.send(command, optionsOrCb);
276
- }
277
- else if (typeof cb === "function") {
278
- if (typeof optionsOrCb !== "object")
279
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
280
- this.send(command, optionsOrCb || {}, cb);
281
- }
282
- else {
283
- return this.send(command, optionsOrCb);
284
- }
285
- }
286
- getBots(args, optionsOrCb, cb) {
287
- const command = new GetBotsCommand_1.GetBotsCommand(args);
288
- if (typeof optionsOrCb === "function") {
289
- this.send(command, optionsOrCb);
290
- }
291
- else if (typeof cb === "function") {
292
- if (typeof optionsOrCb !== "object")
293
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
294
- this.send(command, optionsOrCb || {}, cb);
295
- }
296
- else {
297
- return this.send(command, optionsOrCb);
298
- }
299
- }
300
- getBotVersions(args, optionsOrCb, cb) {
301
- const command = new GetBotVersionsCommand_1.GetBotVersionsCommand(args);
302
- if (typeof optionsOrCb === "function") {
303
- this.send(command, optionsOrCb);
304
- }
305
- else if (typeof cb === "function") {
306
- if (typeof optionsOrCb !== "object")
307
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
308
- this.send(command, optionsOrCb || {}, cb);
309
- }
310
- else {
311
- return this.send(command, optionsOrCb);
312
- }
313
- }
314
- getBuiltinIntent(args, optionsOrCb, cb) {
315
- const command = new GetBuiltinIntentCommand_1.GetBuiltinIntentCommand(args);
316
- if (typeof optionsOrCb === "function") {
317
- this.send(command, optionsOrCb);
318
- }
319
- else if (typeof cb === "function") {
320
- if (typeof optionsOrCb !== "object")
321
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
322
- this.send(command, optionsOrCb || {}, cb);
323
- }
324
- else {
325
- return this.send(command, optionsOrCb);
326
- }
327
- }
328
- getBuiltinIntents(args, optionsOrCb, cb) {
329
- const command = new GetBuiltinIntentsCommand_1.GetBuiltinIntentsCommand(args);
330
- if (typeof optionsOrCb === "function") {
331
- this.send(command, optionsOrCb);
332
- }
333
- else if (typeof cb === "function") {
334
- if (typeof optionsOrCb !== "object")
335
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
336
- this.send(command, optionsOrCb || {}, cb);
337
- }
338
- else {
339
- return this.send(command, optionsOrCb);
340
- }
341
- }
342
- getBuiltinSlotTypes(args, optionsOrCb, cb) {
343
- const command = new GetBuiltinSlotTypesCommand_1.GetBuiltinSlotTypesCommand(args);
344
- if (typeof optionsOrCb === "function") {
345
- this.send(command, optionsOrCb);
346
- }
347
- else if (typeof cb === "function") {
348
- if (typeof optionsOrCb !== "object")
349
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
350
- this.send(command, optionsOrCb || {}, cb);
351
- }
352
- else {
353
- return this.send(command, optionsOrCb);
354
- }
355
- }
356
- getExport(args, optionsOrCb, cb) {
357
- const command = new GetExportCommand_1.GetExportCommand(args);
358
- if (typeof optionsOrCb === "function") {
359
- this.send(command, optionsOrCb);
360
- }
361
- else if (typeof cb === "function") {
362
- if (typeof optionsOrCb !== "object")
363
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
364
- this.send(command, optionsOrCb || {}, cb);
365
- }
366
- else {
367
- return this.send(command, optionsOrCb);
368
- }
369
- }
370
- getImport(args, optionsOrCb, cb) {
371
- const command = new GetImportCommand_1.GetImportCommand(args);
372
- if (typeof optionsOrCb === "function") {
373
- this.send(command, optionsOrCb);
374
- }
375
- else if (typeof cb === "function") {
376
- if (typeof optionsOrCb !== "object")
377
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
378
- this.send(command, optionsOrCb || {}, cb);
379
- }
380
- else {
381
- return this.send(command, optionsOrCb);
382
- }
383
- }
384
- getIntent(args, optionsOrCb, cb) {
385
- const command = new GetIntentCommand_1.GetIntentCommand(args);
386
- if (typeof optionsOrCb === "function") {
387
- this.send(command, optionsOrCb);
388
- }
389
- else if (typeof cb === "function") {
390
- if (typeof optionsOrCb !== "object")
391
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
392
- this.send(command, optionsOrCb || {}, cb);
393
- }
394
- else {
395
- return this.send(command, optionsOrCb);
396
- }
397
- }
398
- getIntents(args, optionsOrCb, cb) {
399
- const command = new GetIntentsCommand_1.GetIntentsCommand(args);
400
- if (typeof optionsOrCb === "function") {
401
- this.send(command, optionsOrCb);
402
- }
403
- else if (typeof cb === "function") {
404
- if (typeof optionsOrCb !== "object")
405
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
406
- this.send(command, optionsOrCb || {}, cb);
407
- }
408
- else {
409
- return this.send(command, optionsOrCb);
410
- }
411
- }
412
- getIntentVersions(args, optionsOrCb, cb) {
413
- const command = new GetIntentVersionsCommand_1.GetIntentVersionsCommand(args);
414
- if (typeof optionsOrCb === "function") {
415
- this.send(command, optionsOrCb);
416
- }
417
- else if (typeof cb === "function") {
418
- if (typeof optionsOrCb !== "object")
419
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
420
- this.send(command, optionsOrCb || {}, cb);
421
- }
422
- else {
423
- return this.send(command, optionsOrCb);
424
- }
425
- }
426
- getMigration(args, optionsOrCb, cb) {
427
- const command = new GetMigrationCommand_1.GetMigrationCommand(args);
428
- if (typeof optionsOrCb === "function") {
429
- this.send(command, optionsOrCb);
430
- }
431
- else if (typeof cb === "function") {
432
- if (typeof optionsOrCb !== "object")
433
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
434
- this.send(command, optionsOrCb || {}, cb);
435
- }
436
- else {
437
- return this.send(command, optionsOrCb);
438
- }
439
- }
440
- getMigrations(args, optionsOrCb, cb) {
441
- const command = new GetMigrationsCommand_1.GetMigrationsCommand(args);
442
- if (typeof optionsOrCb === "function") {
443
- this.send(command, optionsOrCb);
444
- }
445
- else if (typeof cb === "function") {
446
- if (typeof optionsOrCb !== "object")
447
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
448
- this.send(command, optionsOrCb || {}, cb);
449
- }
450
- else {
451
- return this.send(command, optionsOrCb);
452
- }
453
- }
454
- getSlotType(args, optionsOrCb, cb) {
455
- const command = new GetSlotTypeCommand_1.GetSlotTypeCommand(args);
456
- if (typeof optionsOrCb === "function") {
457
- this.send(command, optionsOrCb);
458
- }
459
- else if (typeof cb === "function") {
460
- if (typeof optionsOrCb !== "object")
461
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
462
- this.send(command, optionsOrCb || {}, cb);
463
- }
464
- else {
465
- return this.send(command, optionsOrCb);
466
- }
467
- }
468
- getSlotTypes(args, optionsOrCb, cb) {
469
- const command = new GetSlotTypesCommand_1.GetSlotTypesCommand(args);
470
- if (typeof optionsOrCb === "function") {
471
- this.send(command, optionsOrCb);
472
- }
473
- else if (typeof cb === "function") {
474
- if (typeof optionsOrCb !== "object")
475
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
476
- this.send(command, optionsOrCb || {}, cb);
477
- }
478
- else {
479
- return this.send(command, optionsOrCb);
480
- }
481
- }
482
- getSlotTypeVersions(args, optionsOrCb, cb) {
483
- const command = new GetSlotTypeVersionsCommand_1.GetSlotTypeVersionsCommand(args);
484
- if (typeof optionsOrCb === "function") {
485
- this.send(command, optionsOrCb);
486
- }
487
- else if (typeof cb === "function") {
488
- if (typeof optionsOrCb !== "object")
489
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
490
- this.send(command, optionsOrCb || {}, cb);
491
- }
492
- else {
493
- return this.send(command, optionsOrCb);
494
- }
495
- }
496
- getUtterancesView(args, optionsOrCb, cb) {
497
- const command = new GetUtterancesViewCommand_1.GetUtterancesViewCommand(args);
498
- if (typeof optionsOrCb === "function") {
499
- this.send(command, optionsOrCb);
500
- }
501
- else if (typeof cb === "function") {
502
- if (typeof optionsOrCb !== "object")
503
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
504
- this.send(command, optionsOrCb || {}, cb);
505
- }
506
- else {
507
- return this.send(command, optionsOrCb);
508
- }
509
- }
510
- listTagsForResource(args, optionsOrCb, cb) {
511
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
512
- if (typeof optionsOrCb === "function") {
513
- this.send(command, optionsOrCb);
514
- }
515
- else if (typeof cb === "function") {
516
- if (typeof optionsOrCb !== "object")
517
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
518
- this.send(command, optionsOrCb || {}, cb);
519
- }
520
- else {
521
- return this.send(command, optionsOrCb);
522
- }
523
- }
524
- putBot(args, optionsOrCb, cb) {
525
- const command = new PutBotCommand_1.PutBotCommand(args);
526
- if (typeof optionsOrCb === "function") {
527
- this.send(command, optionsOrCb);
528
- }
529
- else if (typeof cb === "function") {
530
- if (typeof optionsOrCb !== "object")
531
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
532
- this.send(command, optionsOrCb || {}, cb);
533
- }
534
- else {
535
- return this.send(command, optionsOrCb);
536
- }
537
- }
538
- putBotAlias(args, optionsOrCb, cb) {
539
- const command = new PutBotAliasCommand_1.PutBotAliasCommand(args);
540
- if (typeof optionsOrCb === "function") {
541
- this.send(command, optionsOrCb);
542
- }
543
- else if (typeof cb === "function") {
544
- if (typeof optionsOrCb !== "object")
545
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
546
- this.send(command, optionsOrCb || {}, cb);
547
- }
548
- else {
549
- return this.send(command, optionsOrCb);
550
- }
551
- }
552
- putIntent(args, optionsOrCb, cb) {
553
- const command = new PutIntentCommand_1.PutIntentCommand(args);
554
- if (typeof optionsOrCb === "function") {
555
- this.send(command, optionsOrCb);
556
- }
557
- else if (typeof cb === "function") {
558
- if (typeof optionsOrCb !== "object")
559
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
560
- this.send(command, optionsOrCb || {}, cb);
561
- }
562
- else {
563
- return this.send(command, optionsOrCb);
564
- }
565
- }
566
- putSlotType(args, optionsOrCb, cb) {
567
- const command = new PutSlotTypeCommand_1.PutSlotTypeCommand(args);
568
- if (typeof optionsOrCb === "function") {
569
- this.send(command, optionsOrCb);
570
- }
571
- else if (typeof cb === "function") {
572
- if (typeof optionsOrCb !== "object")
573
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
574
- this.send(command, optionsOrCb || {}, cb);
575
- }
576
- else {
577
- return this.send(command, optionsOrCb);
578
- }
579
- }
580
- startImport(args, optionsOrCb, cb) {
581
- const command = new StartImportCommand_1.StartImportCommand(args);
582
- if (typeof optionsOrCb === "function") {
583
- this.send(command, optionsOrCb);
584
- }
585
- else if (typeof cb === "function") {
586
- if (typeof optionsOrCb !== "object")
587
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
588
- this.send(command, optionsOrCb || {}, cb);
589
- }
590
- else {
591
- return this.send(command, optionsOrCb);
592
- }
593
- }
594
- startMigration(args, optionsOrCb, cb) {
595
- const command = new StartMigrationCommand_1.StartMigrationCommand(args);
596
- if (typeof optionsOrCb === "function") {
597
- this.send(command, optionsOrCb);
598
- }
599
- else if (typeof cb === "function") {
600
- if (typeof optionsOrCb !== "object")
601
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
602
- this.send(command, optionsOrCb || {}, cb);
603
- }
604
- else {
605
- return this.send(command, optionsOrCb);
606
- }
607
- }
608
- tagResource(args, optionsOrCb, cb) {
609
- const command = new TagResourceCommand_1.TagResourceCommand(args);
610
- if (typeof optionsOrCb === "function") {
611
- this.send(command, optionsOrCb);
612
- }
613
- else if (typeof cb === "function") {
614
- if (typeof optionsOrCb !== "object")
615
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
616
- this.send(command, optionsOrCb || {}, cb);
617
- }
618
- else {
619
- return this.send(command, optionsOrCb);
620
- }
621
- }
622
- untagResource(args, optionsOrCb, cb) {
623
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
624
- if (typeof optionsOrCb === "function") {
625
- this.send(command, optionsOrCb);
626
- }
627
- else if (typeof cb === "function") {
628
- if (typeof optionsOrCb !== "object")
629
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
630
- this.send(command, optionsOrCb || {}, cb);
631
- }
632
- else {
633
- return this.send(command, optionsOrCb);
634
- }
635
- }
636
93
  }
637
94
  exports.LexModelBuildingService = LexModelBuildingService;
95
+ (0, smithy_client_1.createAggregatedClient)(commands, LexModelBuildingService);