@aws-sdk/client-athena 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.Athena = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AthenaClient_1 = require("./AthenaClient");
5
6
  const BatchGetNamedQueryCommand_1 = require("./commands/BatchGetNamedQueryCommand");
6
7
  const BatchGetPreparedStatementCommand_1 = require("./commands/BatchGetPreparedStatementCommand");
@@ -62,846 +63,69 @@ const UpdateNotebookCommand_1 = require("./commands/UpdateNotebookCommand");
62
63
  const UpdateNotebookMetadataCommand_1 = require("./commands/UpdateNotebookMetadataCommand");
63
64
  const UpdatePreparedStatementCommand_1 = require("./commands/UpdatePreparedStatementCommand");
64
65
  const UpdateWorkGroupCommand_1 = require("./commands/UpdateWorkGroupCommand");
66
+ const commands = {
67
+ BatchGetNamedQueryCommand: BatchGetNamedQueryCommand_1.BatchGetNamedQueryCommand,
68
+ BatchGetPreparedStatementCommand: BatchGetPreparedStatementCommand_1.BatchGetPreparedStatementCommand,
69
+ BatchGetQueryExecutionCommand: BatchGetQueryExecutionCommand_1.BatchGetQueryExecutionCommand,
70
+ CreateDataCatalogCommand: CreateDataCatalogCommand_1.CreateDataCatalogCommand,
71
+ CreateNamedQueryCommand: CreateNamedQueryCommand_1.CreateNamedQueryCommand,
72
+ CreateNotebookCommand: CreateNotebookCommand_1.CreateNotebookCommand,
73
+ CreatePreparedStatementCommand: CreatePreparedStatementCommand_1.CreatePreparedStatementCommand,
74
+ CreatePresignedNotebookUrlCommand: CreatePresignedNotebookUrlCommand_1.CreatePresignedNotebookUrlCommand,
75
+ CreateWorkGroupCommand: CreateWorkGroupCommand_1.CreateWorkGroupCommand,
76
+ DeleteDataCatalogCommand: DeleteDataCatalogCommand_1.DeleteDataCatalogCommand,
77
+ DeleteNamedQueryCommand: DeleteNamedQueryCommand_1.DeleteNamedQueryCommand,
78
+ DeleteNotebookCommand: DeleteNotebookCommand_1.DeleteNotebookCommand,
79
+ DeletePreparedStatementCommand: DeletePreparedStatementCommand_1.DeletePreparedStatementCommand,
80
+ DeleteWorkGroupCommand: DeleteWorkGroupCommand_1.DeleteWorkGroupCommand,
81
+ ExportNotebookCommand: ExportNotebookCommand_1.ExportNotebookCommand,
82
+ GetCalculationExecutionCommand: GetCalculationExecutionCommand_1.GetCalculationExecutionCommand,
83
+ GetCalculationExecutionCodeCommand: GetCalculationExecutionCodeCommand_1.GetCalculationExecutionCodeCommand,
84
+ GetCalculationExecutionStatusCommand: GetCalculationExecutionStatusCommand_1.GetCalculationExecutionStatusCommand,
85
+ GetDatabaseCommand: GetDatabaseCommand_1.GetDatabaseCommand,
86
+ GetDataCatalogCommand: GetDataCatalogCommand_1.GetDataCatalogCommand,
87
+ GetNamedQueryCommand: GetNamedQueryCommand_1.GetNamedQueryCommand,
88
+ GetNotebookMetadataCommand: GetNotebookMetadataCommand_1.GetNotebookMetadataCommand,
89
+ GetPreparedStatementCommand: GetPreparedStatementCommand_1.GetPreparedStatementCommand,
90
+ GetQueryExecutionCommand: GetQueryExecutionCommand_1.GetQueryExecutionCommand,
91
+ GetQueryResultsCommand: GetQueryResultsCommand_1.GetQueryResultsCommand,
92
+ GetQueryRuntimeStatisticsCommand: GetQueryRuntimeStatisticsCommand_1.GetQueryRuntimeStatisticsCommand,
93
+ GetSessionCommand: GetSessionCommand_1.GetSessionCommand,
94
+ GetSessionStatusCommand: GetSessionStatusCommand_1.GetSessionStatusCommand,
95
+ GetTableMetadataCommand: GetTableMetadataCommand_1.GetTableMetadataCommand,
96
+ GetWorkGroupCommand: GetWorkGroupCommand_1.GetWorkGroupCommand,
97
+ ImportNotebookCommand: ImportNotebookCommand_1.ImportNotebookCommand,
98
+ ListApplicationDPUSizesCommand: ListApplicationDPUSizesCommand_1.ListApplicationDPUSizesCommand,
99
+ ListCalculationExecutionsCommand: ListCalculationExecutionsCommand_1.ListCalculationExecutionsCommand,
100
+ ListDatabasesCommand: ListDatabasesCommand_1.ListDatabasesCommand,
101
+ ListDataCatalogsCommand: ListDataCatalogsCommand_1.ListDataCatalogsCommand,
102
+ ListEngineVersionsCommand: ListEngineVersionsCommand_1.ListEngineVersionsCommand,
103
+ ListExecutorsCommand: ListExecutorsCommand_1.ListExecutorsCommand,
104
+ ListNamedQueriesCommand: ListNamedQueriesCommand_1.ListNamedQueriesCommand,
105
+ ListNotebookMetadataCommand: ListNotebookMetadataCommand_1.ListNotebookMetadataCommand,
106
+ ListNotebookSessionsCommand: ListNotebookSessionsCommand_1.ListNotebookSessionsCommand,
107
+ ListPreparedStatementsCommand: ListPreparedStatementsCommand_1.ListPreparedStatementsCommand,
108
+ ListQueryExecutionsCommand: ListQueryExecutionsCommand_1.ListQueryExecutionsCommand,
109
+ ListSessionsCommand: ListSessionsCommand_1.ListSessionsCommand,
110
+ ListTableMetadataCommand: ListTableMetadataCommand_1.ListTableMetadataCommand,
111
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
112
+ ListWorkGroupsCommand: ListWorkGroupsCommand_1.ListWorkGroupsCommand,
113
+ StartCalculationExecutionCommand: StartCalculationExecutionCommand_1.StartCalculationExecutionCommand,
114
+ StartQueryExecutionCommand: StartQueryExecutionCommand_1.StartQueryExecutionCommand,
115
+ StartSessionCommand: StartSessionCommand_1.StartSessionCommand,
116
+ StopCalculationExecutionCommand: StopCalculationExecutionCommand_1.StopCalculationExecutionCommand,
117
+ StopQueryExecutionCommand: StopQueryExecutionCommand_1.StopQueryExecutionCommand,
118
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
119
+ TerminateSessionCommand: TerminateSessionCommand_1.TerminateSessionCommand,
120
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
121
+ UpdateDataCatalogCommand: UpdateDataCatalogCommand_1.UpdateDataCatalogCommand,
122
+ UpdateNamedQueryCommand: UpdateNamedQueryCommand_1.UpdateNamedQueryCommand,
123
+ UpdateNotebookCommand: UpdateNotebookCommand_1.UpdateNotebookCommand,
124
+ UpdateNotebookMetadataCommand: UpdateNotebookMetadataCommand_1.UpdateNotebookMetadataCommand,
125
+ UpdatePreparedStatementCommand: UpdatePreparedStatementCommand_1.UpdatePreparedStatementCommand,
126
+ UpdateWorkGroupCommand: UpdateWorkGroupCommand_1.UpdateWorkGroupCommand,
127
+ };
65
128
  class Athena extends AthenaClient_1.AthenaClient {
66
- batchGetNamedQuery(args, optionsOrCb, cb) {
67
- const command = new BatchGetNamedQueryCommand_1.BatchGetNamedQueryCommand(args);
68
- if (typeof optionsOrCb === "function") {
69
- this.send(command, optionsOrCb);
70
- }
71
- else if (typeof cb === "function") {
72
- if (typeof optionsOrCb !== "object")
73
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
- this.send(command, optionsOrCb || {}, cb);
75
- }
76
- else {
77
- return this.send(command, optionsOrCb);
78
- }
79
- }
80
- batchGetPreparedStatement(args, optionsOrCb, cb) {
81
- const command = new BatchGetPreparedStatementCommand_1.BatchGetPreparedStatementCommand(args);
82
- if (typeof optionsOrCb === "function") {
83
- this.send(command, optionsOrCb);
84
- }
85
- else if (typeof cb === "function") {
86
- if (typeof optionsOrCb !== "object")
87
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
- this.send(command, optionsOrCb || {}, cb);
89
- }
90
- else {
91
- return this.send(command, optionsOrCb);
92
- }
93
- }
94
- batchGetQueryExecution(args, optionsOrCb, cb) {
95
- const command = new BatchGetQueryExecutionCommand_1.BatchGetQueryExecutionCommand(args);
96
- if (typeof optionsOrCb === "function") {
97
- this.send(command, optionsOrCb);
98
- }
99
- else if (typeof cb === "function") {
100
- if (typeof optionsOrCb !== "object")
101
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
- this.send(command, optionsOrCb || {}, cb);
103
- }
104
- else {
105
- return this.send(command, optionsOrCb);
106
- }
107
- }
108
- createDataCatalog(args, optionsOrCb, cb) {
109
- const command = new CreateDataCatalogCommand_1.CreateDataCatalogCommand(args);
110
- if (typeof optionsOrCb === "function") {
111
- this.send(command, optionsOrCb);
112
- }
113
- else if (typeof cb === "function") {
114
- if (typeof optionsOrCb !== "object")
115
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
116
- this.send(command, optionsOrCb || {}, cb);
117
- }
118
- else {
119
- return this.send(command, optionsOrCb);
120
- }
121
- }
122
- createNamedQuery(args, optionsOrCb, cb) {
123
- const command = new CreateNamedQueryCommand_1.CreateNamedQueryCommand(args);
124
- if (typeof optionsOrCb === "function") {
125
- this.send(command, optionsOrCb);
126
- }
127
- else if (typeof cb === "function") {
128
- if (typeof optionsOrCb !== "object")
129
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
- this.send(command, optionsOrCb || {}, cb);
131
- }
132
- else {
133
- return this.send(command, optionsOrCb);
134
- }
135
- }
136
- createNotebook(args, optionsOrCb, cb) {
137
- const command = new CreateNotebookCommand_1.CreateNotebookCommand(args);
138
- if (typeof optionsOrCb === "function") {
139
- this.send(command, optionsOrCb);
140
- }
141
- else if (typeof cb === "function") {
142
- if (typeof optionsOrCb !== "object")
143
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
144
- this.send(command, optionsOrCb || {}, cb);
145
- }
146
- else {
147
- return this.send(command, optionsOrCb);
148
- }
149
- }
150
- createPreparedStatement(args, optionsOrCb, cb) {
151
- const command = new CreatePreparedStatementCommand_1.CreatePreparedStatementCommand(args);
152
- if (typeof optionsOrCb === "function") {
153
- this.send(command, optionsOrCb);
154
- }
155
- else if (typeof cb === "function") {
156
- if (typeof optionsOrCb !== "object")
157
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
158
- this.send(command, optionsOrCb || {}, cb);
159
- }
160
- else {
161
- return this.send(command, optionsOrCb);
162
- }
163
- }
164
- createPresignedNotebookUrl(args, optionsOrCb, cb) {
165
- const command = new CreatePresignedNotebookUrlCommand_1.CreatePresignedNotebookUrlCommand(args);
166
- if (typeof optionsOrCb === "function") {
167
- this.send(command, optionsOrCb);
168
- }
169
- else if (typeof cb === "function") {
170
- if (typeof optionsOrCb !== "object")
171
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
- this.send(command, optionsOrCb || {}, cb);
173
- }
174
- else {
175
- return this.send(command, optionsOrCb);
176
- }
177
- }
178
- createWorkGroup(args, optionsOrCb, cb) {
179
- const command = new CreateWorkGroupCommand_1.CreateWorkGroupCommand(args);
180
- if (typeof optionsOrCb === "function") {
181
- this.send(command, optionsOrCb);
182
- }
183
- else if (typeof cb === "function") {
184
- if (typeof optionsOrCb !== "object")
185
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
- this.send(command, optionsOrCb || {}, cb);
187
- }
188
- else {
189
- return this.send(command, optionsOrCb);
190
- }
191
- }
192
- deleteDataCatalog(args, optionsOrCb, cb) {
193
- const command = new DeleteDataCatalogCommand_1.DeleteDataCatalogCommand(args);
194
- if (typeof optionsOrCb === "function") {
195
- this.send(command, optionsOrCb);
196
- }
197
- else if (typeof cb === "function") {
198
- if (typeof optionsOrCb !== "object")
199
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
- this.send(command, optionsOrCb || {}, cb);
201
- }
202
- else {
203
- return this.send(command, optionsOrCb);
204
- }
205
- }
206
- deleteNamedQuery(args, optionsOrCb, cb) {
207
- const command = new DeleteNamedQueryCommand_1.DeleteNamedQueryCommand(args);
208
- if (typeof optionsOrCb === "function") {
209
- this.send(command, optionsOrCb);
210
- }
211
- else if (typeof cb === "function") {
212
- if (typeof optionsOrCb !== "object")
213
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
- this.send(command, optionsOrCb || {}, cb);
215
- }
216
- else {
217
- return this.send(command, optionsOrCb);
218
- }
219
- }
220
- deleteNotebook(args, optionsOrCb, cb) {
221
- const command = new DeleteNotebookCommand_1.DeleteNotebookCommand(args);
222
- if (typeof optionsOrCb === "function") {
223
- this.send(command, optionsOrCb);
224
- }
225
- else if (typeof cb === "function") {
226
- if (typeof optionsOrCb !== "object")
227
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
228
- this.send(command, optionsOrCb || {}, cb);
229
- }
230
- else {
231
- return this.send(command, optionsOrCb);
232
- }
233
- }
234
- deletePreparedStatement(args, optionsOrCb, cb) {
235
- const command = new DeletePreparedStatementCommand_1.DeletePreparedStatementCommand(args);
236
- if (typeof optionsOrCb === "function") {
237
- this.send(command, optionsOrCb);
238
- }
239
- else if (typeof cb === "function") {
240
- if (typeof optionsOrCb !== "object")
241
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
- this.send(command, optionsOrCb || {}, cb);
243
- }
244
- else {
245
- return this.send(command, optionsOrCb);
246
- }
247
- }
248
- deleteWorkGroup(args, optionsOrCb, cb) {
249
- const command = new DeleteWorkGroupCommand_1.DeleteWorkGroupCommand(args);
250
- if (typeof optionsOrCb === "function") {
251
- this.send(command, optionsOrCb);
252
- }
253
- else if (typeof cb === "function") {
254
- if (typeof optionsOrCb !== "object")
255
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
256
- this.send(command, optionsOrCb || {}, cb);
257
- }
258
- else {
259
- return this.send(command, optionsOrCb);
260
- }
261
- }
262
- exportNotebook(args, optionsOrCb, cb) {
263
- const command = new ExportNotebookCommand_1.ExportNotebookCommand(args);
264
- if (typeof optionsOrCb === "function") {
265
- this.send(command, optionsOrCb);
266
- }
267
- else if (typeof cb === "function") {
268
- if (typeof optionsOrCb !== "object")
269
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
270
- this.send(command, optionsOrCb || {}, cb);
271
- }
272
- else {
273
- return this.send(command, optionsOrCb);
274
- }
275
- }
276
- getCalculationExecution(args, optionsOrCb, cb) {
277
- const command = new GetCalculationExecutionCommand_1.GetCalculationExecutionCommand(args);
278
- if (typeof optionsOrCb === "function") {
279
- this.send(command, optionsOrCb);
280
- }
281
- else if (typeof cb === "function") {
282
- if (typeof optionsOrCb !== "object")
283
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
284
- this.send(command, optionsOrCb || {}, cb);
285
- }
286
- else {
287
- return this.send(command, optionsOrCb);
288
- }
289
- }
290
- getCalculationExecutionCode(args, optionsOrCb, cb) {
291
- const command = new GetCalculationExecutionCodeCommand_1.GetCalculationExecutionCodeCommand(args);
292
- if (typeof optionsOrCb === "function") {
293
- this.send(command, optionsOrCb);
294
- }
295
- else if (typeof cb === "function") {
296
- if (typeof optionsOrCb !== "object")
297
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
298
- this.send(command, optionsOrCb || {}, cb);
299
- }
300
- else {
301
- return this.send(command, optionsOrCb);
302
- }
303
- }
304
- getCalculationExecutionStatus(args, optionsOrCb, cb) {
305
- const command = new GetCalculationExecutionStatusCommand_1.GetCalculationExecutionStatusCommand(args);
306
- if (typeof optionsOrCb === "function") {
307
- this.send(command, optionsOrCb);
308
- }
309
- else if (typeof cb === "function") {
310
- if (typeof optionsOrCb !== "object")
311
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
312
- this.send(command, optionsOrCb || {}, cb);
313
- }
314
- else {
315
- return this.send(command, optionsOrCb);
316
- }
317
- }
318
- getDatabase(args, optionsOrCb, cb) {
319
- const command = new GetDatabaseCommand_1.GetDatabaseCommand(args);
320
- if (typeof optionsOrCb === "function") {
321
- this.send(command, optionsOrCb);
322
- }
323
- else if (typeof cb === "function") {
324
- if (typeof optionsOrCb !== "object")
325
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
326
- this.send(command, optionsOrCb || {}, cb);
327
- }
328
- else {
329
- return this.send(command, optionsOrCb);
330
- }
331
- }
332
- getDataCatalog(args, optionsOrCb, cb) {
333
- const command = new GetDataCatalogCommand_1.GetDataCatalogCommand(args);
334
- if (typeof optionsOrCb === "function") {
335
- this.send(command, optionsOrCb);
336
- }
337
- else if (typeof cb === "function") {
338
- if (typeof optionsOrCb !== "object")
339
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
340
- this.send(command, optionsOrCb || {}, cb);
341
- }
342
- else {
343
- return this.send(command, optionsOrCb);
344
- }
345
- }
346
- getNamedQuery(args, optionsOrCb, cb) {
347
- const command = new GetNamedQueryCommand_1.GetNamedQueryCommand(args);
348
- if (typeof optionsOrCb === "function") {
349
- this.send(command, optionsOrCb);
350
- }
351
- else if (typeof cb === "function") {
352
- if (typeof optionsOrCb !== "object")
353
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
354
- this.send(command, optionsOrCb || {}, cb);
355
- }
356
- else {
357
- return this.send(command, optionsOrCb);
358
- }
359
- }
360
- getNotebookMetadata(args, optionsOrCb, cb) {
361
- const command = new GetNotebookMetadataCommand_1.GetNotebookMetadataCommand(args);
362
- if (typeof optionsOrCb === "function") {
363
- this.send(command, optionsOrCb);
364
- }
365
- else if (typeof cb === "function") {
366
- if (typeof optionsOrCb !== "object")
367
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
368
- this.send(command, optionsOrCb || {}, cb);
369
- }
370
- else {
371
- return this.send(command, optionsOrCb);
372
- }
373
- }
374
- getPreparedStatement(args, optionsOrCb, cb) {
375
- const command = new GetPreparedStatementCommand_1.GetPreparedStatementCommand(args);
376
- if (typeof optionsOrCb === "function") {
377
- this.send(command, optionsOrCb);
378
- }
379
- else if (typeof cb === "function") {
380
- if (typeof optionsOrCb !== "object")
381
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
382
- this.send(command, optionsOrCb || {}, cb);
383
- }
384
- else {
385
- return this.send(command, optionsOrCb);
386
- }
387
- }
388
- getQueryExecution(args, optionsOrCb, cb) {
389
- const command = new GetQueryExecutionCommand_1.GetQueryExecutionCommand(args);
390
- if (typeof optionsOrCb === "function") {
391
- this.send(command, optionsOrCb);
392
- }
393
- else if (typeof cb === "function") {
394
- if (typeof optionsOrCb !== "object")
395
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
396
- this.send(command, optionsOrCb || {}, cb);
397
- }
398
- else {
399
- return this.send(command, optionsOrCb);
400
- }
401
- }
402
- getQueryResults(args, optionsOrCb, cb) {
403
- const command = new GetQueryResultsCommand_1.GetQueryResultsCommand(args);
404
- if (typeof optionsOrCb === "function") {
405
- this.send(command, optionsOrCb);
406
- }
407
- else if (typeof cb === "function") {
408
- if (typeof optionsOrCb !== "object")
409
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
410
- this.send(command, optionsOrCb || {}, cb);
411
- }
412
- else {
413
- return this.send(command, optionsOrCb);
414
- }
415
- }
416
- getQueryRuntimeStatistics(args, optionsOrCb, cb) {
417
- const command = new GetQueryRuntimeStatisticsCommand_1.GetQueryRuntimeStatisticsCommand(args);
418
- if (typeof optionsOrCb === "function") {
419
- this.send(command, optionsOrCb);
420
- }
421
- else if (typeof cb === "function") {
422
- if (typeof optionsOrCb !== "object")
423
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
424
- this.send(command, optionsOrCb || {}, cb);
425
- }
426
- else {
427
- return this.send(command, optionsOrCb);
428
- }
429
- }
430
- getSession(args, optionsOrCb, cb) {
431
- const command = new GetSessionCommand_1.GetSessionCommand(args);
432
- if (typeof optionsOrCb === "function") {
433
- this.send(command, optionsOrCb);
434
- }
435
- else if (typeof cb === "function") {
436
- if (typeof optionsOrCb !== "object")
437
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
438
- this.send(command, optionsOrCb || {}, cb);
439
- }
440
- else {
441
- return this.send(command, optionsOrCb);
442
- }
443
- }
444
- getSessionStatus(args, optionsOrCb, cb) {
445
- const command = new GetSessionStatusCommand_1.GetSessionStatusCommand(args);
446
- if (typeof optionsOrCb === "function") {
447
- this.send(command, optionsOrCb);
448
- }
449
- else if (typeof cb === "function") {
450
- if (typeof optionsOrCb !== "object")
451
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
452
- this.send(command, optionsOrCb || {}, cb);
453
- }
454
- else {
455
- return this.send(command, optionsOrCb);
456
- }
457
- }
458
- getTableMetadata(args, optionsOrCb, cb) {
459
- const command = new GetTableMetadataCommand_1.GetTableMetadataCommand(args);
460
- if (typeof optionsOrCb === "function") {
461
- this.send(command, optionsOrCb);
462
- }
463
- else if (typeof cb === "function") {
464
- if (typeof optionsOrCb !== "object")
465
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
466
- this.send(command, optionsOrCb || {}, cb);
467
- }
468
- else {
469
- return this.send(command, optionsOrCb);
470
- }
471
- }
472
- getWorkGroup(args, optionsOrCb, cb) {
473
- const command = new GetWorkGroupCommand_1.GetWorkGroupCommand(args);
474
- if (typeof optionsOrCb === "function") {
475
- this.send(command, optionsOrCb);
476
- }
477
- else if (typeof cb === "function") {
478
- if (typeof optionsOrCb !== "object")
479
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
480
- this.send(command, optionsOrCb || {}, cb);
481
- }
482
- else {
483
- return this.send(command, optionsOrCb);
484
- }
485
- }
486
- importNotebook(args, optionsOrCb, cb) {
487
- const command = new ImportNotebookCommand_1.ImportNotebookCommand(args);
488
- if (typeof optionsOrCb === "function") {
489
- this.send(command, optionsOrCb);
490
- }
491
- else if (typeof cb === "function") {
492
- if (typeof optionsOrCb !== "object")
493
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
494
- this.send(command, optionsOrCb || {}, cb);
495
- }
496
- else {
497
- return this.send(command, optionsOrCb);
498
- }
499
- }
500
- listApplicationDPUSizes(args, optionsOrCb, cb) {
501
- const command = new ListApplicationDPUSizesCommand_1.ListApplicationDPUSizesCommand(args);
502
- if (typeof optionsOrCb === "function") {
503
- this.send(command, optionsOrCb);
504
- }
505
- else if (typeof cb === "function") {
506
- if (typeof optionsOrCb !== "object")
507
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
508
- this.send(command, optionsOrCb || {}, cb);
509
- }
510
- else {
511
- return this.send(command, optionsOrCb);
512
- }
513
- }
514
- listCalculationExecutions(args, optionsOrCb, cb) {
515
- const command = new ListCalculationExecutionsCommand_1.ListCalculationExecutionsCommand(args);
516
- if (typeof optionsOrCb === "function") {
517
- this.send(command, optionsOrCb);
518
- }
519
- else if (typeof cb === "function") {
520
- if (typeof optionsOrCb !== "object")
521
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
522
- this.send(command, optionsOrCb || {}, cb);
523
- }
524
- else {
525
- return this.send(command, optionsOrCb);
526
- }
527
- }
528
- listDatabases(args, optionsOrCb, cb) {
529
- const command = new ListDatabasesCommand_1.ListDatabasesCommand(args);
530
- if (typeof optionsOrCb === "function") {
531
- this.send(command, optionsOrCb);
532
- }
533
- else if (typeof cb === "function") {
534
- if (typeof optionsOrCb !== "object")
535
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
536
- this.send(command, optionsOrCb || {}, cb);
537
- }
538
- else {
539
- return this.send(command, optionsOrCb);
540
- }
541
- }
542
- listDataCatalogs(args, optionsOrCb, cb) {
543
- const command = new ListDataCatalogsCommand_1.ListDataCatalogsCommand(args);
544
- if (typeof optionsOrCb === "function") {
545
- this.send(command, optionsOrCb);
546
- }
547
- else if (typeof cb === "function") {
548
- if (typeof optionsOrCb !== "object")
549
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
550
- this.send(command, optionsOrCb || {}, cb);
551
- }
552
- else {
553
- return this.send(command, optionsOrCb);
554
- }
555
- }
556
- listEngineVersions(args, optionsOrCb, cb) {
557
- const command = new ListEngineVersionsCommand_1.ListEngineVersionsCommand(args);
558
- if (typeof optionsOrCb === "function") {
559
- this.send(command, optionsOrCb);
560
- }
561
- else if (typeof cb === "function") {
562
- if (typeof optionsOrCb !== "object")
563
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
564
- this.send(command, optionsOrCb || {}, cb);
565
- }
566
- else {
567
- return this.send(command, optionsOrCb);
568
- }
569
- }
570
- listExecutors(args, optionsOrCb, cb) {
571
- const command = new ListExecutorsCommand_1.ListExecutorsCommand(args);
572
- if (typeof optionsOrCb === "function") {
573
- this.send(command, optionsOrCb);
574
- }
575
- else if (typeof cb === "function") {
576
- if (typeof optionsOrCb !== "object")
577
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
578
- this.send(command, optionsOrCb || {}, cb);
579
- }
580
- else {
581
- return this.send(command, optionsOrCb);
582
- }
583
- }
584
- listNamedQueries(args, optionsOrCb, cb) {
585
- const command = new ListNamedQueriesCommand_1.ListNamedQueriesCommand(args);
586
- if (typeof optionsOrCb === "function") {
587
- this.send(command, optionsOrCb);
588
- }
589
- else if (typeof cb === "function") {
590
- if (typeof optionsOrCb !== "object")
591
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
592
- this.send(command, optionsOrCb || {}, cb);
593
- }
594
- else {
595
- return this.send(command, optionsOrCb);
596
- }
597
- }
598
- listNotebookMetadata(args, optionsOrCb, cb) {
599
- const command = new ListNotebookMetadataCommand_1.ListNotebookMetadataCommand(args);
600
- if (typeof optionsOrCb === "function") {
601
- this.send(command, optionsOrCb);
602
- }
603
- else if (typeof cb === "function") {
604
- if (typeof optionsOrCb !== "object")
605
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
606
- this.send(command, optionsOrCb || {}, cb);
607
- }
608
- else {
609
- return this.send(command, optionsOrCb);
610
- }
611
- }
612
- listNotebookSessions(args, optionsOrCb, cb) {
613
- const command = new ListNotebookSessionsCommand_1.ListNotebookSessionsCommand(args);
614
- if (typeof optionsOrCb === "function") {
615
- this.send(command, optionsOrCb);
616
- }
617
- else if (typeof cb === "function") {
618
- if (typeof optionsOrCb !== "object")
619
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
620
- this.send(command, optionsOrCb || {}, cb);
621
- }
622
- else {
623
- return this.send(command, optionsOrCb);
624
- }
625
- }
626
- listPreparedStatements(args, optionsOrCb, cb) {
627
- const command = new ListPreparedStatementsCommand_1.ListPreparedStatementsCommand(args);
628
- if (typeof optionsOrCb === "function") {
629
- this.send(command, optionsOrCb);
630
- }
631
- else if (typeof cb === "function") {
632
- if (typeof optionsOrCb !== "object")
633
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
634
- this.send(command, optionsOrCb || {}, cb);
635
- }
636
- else {
637
- return this.send(command, optionsOrCb);
638
- }
639
- }
640
- listQueryExecutions(args, optionsOrCb, cb) {
641
- const command = new ListQueryExecutionsCommand_1.ListQueryExecutionsCommand(args);
642
- if (typeof optionsOrCb === "function") {
643
- this.send(command, optionsOrCb);
644
- }
645
- else if (typeof cb === "function") {
646
- if (typeof optionsOrCb !== "object")
647
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
648
- this.send(command, optionsOrCb || {}, cb);
649
- }
650
- else {
651
- return this.send(command, optionsOrCb);
652
- }
653
- }
654
- listSessions(args, optionsOrCb, cb) {
655
- const command = new ListSessionsCommand_1.ListSessionsCommand(args);
656
- if (typeof optionsOrCb === "function") {
657
- this.send(command, optionsOrCb);
658
- }
659
- else if (typeof cb === "function") {
660
- if (typeof optionsOrCb !== "object")
661
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
662
- this.send(command, optionsOrCb || {}, cb);
663
- }
664
- else {
665
- return this.send(command, optionsOrCb);
666
- }
667
- }
668
- listTableMetadata(args, optionsOrCb, cb) {
669
- const command = new ListTableMetadataCommand_1.ListTableMetadataCommand(args);
670
- if (typeof optionsOrCb === "function") {
671
- this.send(command, optionsOrCb);
672
- }
673
- else if (typeof cb === "function") {
674
- if (typeof optionsOrCb !== "object")
675
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
676
- this.send(command, optionsOrCb || {}, cb);
677
- }
678
- else {
679
- return this.send(command, optionsOrCb);
680
- }
681
- }
682
- listTagsForResource(args, optionsOrCb, cb) {
683
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
684
- if (typeof optionsOrCb === "function") {
685
- this.send(command, optionsOrCb);
686
- }
687
- else if (typeof cb === "function") {
688
- if (typeof optionsOrCb !== "object")
689
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
690
- this.send(command, optionsOrCb || {}, cb);
691
- }
692
- else {
693
- return this.send(command, optionsOrCb);
694
- }
695
- }
696
- listWorkGroups(args, optionsOrCb, cb) {
697
- const command = new ListWorkGroupsCommand_1.ListWorkGroupsCommand(args);
698
- if (typeof optionsOrCb === "function") {
699
- this.send(command, optionsOrCb);
700
- }
701
- else if (typeof cb === "function") {
702
- if (typeof optionsOrCb !== "object")
703
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
704
- this.send(command, optionsOrCb || {}, cb);
705
- }
706
- else {
707
- return this.send(command, optionsOrCb);
708
- }
709
- }
710
- startCalculationExecution(args, optionsOrCb, cb) {
711
- const command = new StartCalculationExecutionCommand_1.StartCalculationExecutionCommand(args);
712
- if (typeof optionsOrCb === "function") {
713
- this.send(command, optionsOrCb);
714
- }
715
- else if (typeof cb === "function") {
716
- if (typeof optionsOrCb !== "object")
717
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
718
- this.send(command, optionsOrCb || {}, cb);
719
- }
720
- else {
721
- return this.send(command, optionsOrCb);
722
- }
723
- }
724
- startQueryExecution(args, optionsOrCb, cb) {
725
- const command = new StartQueryExecutionCommand_1.StartQueryExecutionCommand(args);
726
- if (typeof optionsOrCb === "function") {
727
- this.send(command, optionsOrCb);
728
- }
729
- else if (typeof cb === "function") {
730
- if (typeof optionsOrCb !== "object")
731
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
732
- this.send(command, optionsOrCb || {}, cb);
733
- }
734
- else {
735
- return this.send(command, optionsOrCb);
736
- }
737
- }
738
- startSession(args, optionsOrCb, cb) {
739
- const command = new StartSessionCommand_1.StartSessionCommand(args);
740
- if (typeof optionsOrCb === "function") {
741
- this.send(command, optionsOrCb);
742
- }
743
- else if (typeof cb === "function") {
744
- if (typeof optionsOrCb !== "object")
745
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
746
- this.send(command, optionsOrCb || {}, cb);
747
- }
748
- else {
749
- return this.send(command, optionsOrCb);
750
- }
751
- }
752
- stopCalculationExecution(args, optionsOrCb, cb) {
753
- const command = new StopCalculationExecutionCommand_1.StopCalculationExecutionCommand(args);
754
- if (typeof optionsOrCb === "function") {
755
- this.send(command, optionsOrCb);
756
- }
757
- else if (typeof cb === "function") {
758
- if (typeof optionsOrCb !== "object")
759
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
760
- this.send(command, optionsOrCb || {}, cb);
761
- }
762
- else {
763
- return this.send(command, optionsOrCb);
764
- }
765
- }
766
- stopQueryExecution(args, optionsOrCb, cb) {
767
- const command = new StopQueryExecutionCommand_1.StopQueryExecutionCommand(args);
768
- if (typeof optionsOrCb === "function") {
769
- this.send(command, optionsOrCb);
770
- }
771
- else if (typeof cb === "function") {
772
- if (typeof optionsOrCb !== "object")
773
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
774
- this.send(command, optionsOrCb || {}, cb);
775
- }
776
- else {
777
- return this.send(command, optionsOrCb);
778
- }
779
- }
780
- tagResource(args, optionsOrCb, cb) {
781
- const command = new TagResourceCommand_1.TagResourceCommand(args);
782
- if (typeof optionsOrCb === "function") {
783
- this.send(command, optionsOrCb);
784
- }
785
- else if (typeof cb === "function") {
786
- if (typeof optionsOrCb !== "object")
787
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
788
- this.send(command, optionsOrCb || {}, cb);
789
- }
790
- else {
791
- return this.send(command, optionsOrCb);
792
- }
793
- }
794
- terminateSession(args, optionsOrCb, cb) {
795
- const command = new TerminateSessionCommand_1.TerminateSessionCommand(args);
796
- if (typeof optionsOrCb === "function") {
797
- this.send(command, optionsOrCb);
798
- }
799
- else if (typeof cb === "function") {
800
- if (typeof optionsOrCb !== "object")
801
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
802
- this.send(command, optionsOrCb || {}, cb);
803
- }
804
- else {
805
- return this.send(command, optionsOrCb);
806
- }
807
- }
808
- untagResource(args, optionsOrCb, cb) {
809
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
810
- if (typeof optionsOrCb === "function") {
811
- this.send(command, optionsOrCb);
812
- }
813
- else if (typeof cb === "function") {
814
- if (typeof optionsOrCb !== "object")
815
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
816
- this.send(command, optionsOrCb || {}, cb);
817
- }
818
- else {
819
- return this.send(command, optionsOrCb);
820
- }
821
- }
822
- updateDataCatalog(args, optionsOrCb, cb) {
823
- const command = new UpdateDataCatalogCommand_1.UpdateDataCatalogCommand(args);
824
- if (typeof optionsOrCb === "function") {
825
- this.send(command, optionsOrCb);
826
- }
827
- else if (typeof cb === "function") {
828
- if (typeof optionsOrCb !== "object")
829
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
830
- this.send(command, optionsOrCb || {}, cb);
831
- }
832
- else {
833
- return this.send(command, optionsOrCb);
834
- }
835
- }
836
- updateNamedQuery(args, optionsOrCb, cb) {
837
- const command = new UpdateNamedQueryCommand_1.UpdateNamedQueryCommand(args);
838
- if (typeof optionsOrCb === "function") {
839
- this.send(command, optionsOrCb);
840
- }
841
- else if (typeof cb === "function") {
842
- if (typeof optionsOrCb !== "object")
843
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
844
- this.send(command, optionsOrCb || {}, cb);
845
- }
846
- else {
847
- return this.send(command, optionsOrCb);
848
- }
849
- }
850
- updateNotebook(args, optionsOrCb, cb) {
851
- const command = new UpdateNotebookCommand_1.UpdateNotebookCommand(args);
852
- if (typeof optionsOrCb === "function") {
853
- this.send(command, optionsOrCb);
854
- }
855
- else if (typeof cb === "function") {
856
- if (typeof optionsOrCb !== "object")
857
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
858
- this.send(command, optionsOrCb || {}, cb);
859
- }
860
- else {
861
- return this.send(command, optionsOrCb);
862
- }
863
- }
864
- updateNotebookMetadata(args, optionsOrCb, cb) {
865
- const command = new UpdateNotebookMetadataCommand_1.UpdateNotebookMetadataCommand(args);
866
- if (typeof optionsOrCb === "function") {
867
- this.send(command, optionsOrCb);
868
- }
869
- else if (typeof cb === "function") {
870
- if (typeof optionsOrCb !== "object")
871
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
872
- this.send(command, optionsOrCb || {}, cb);
873
- }
874
- else {
875
- return this.send(command, optionsOrCb);
876
- }
877
- }
878
- updatePreparedStatement(args, optionsOrCb, cb) {
879
- const command = new UpdatePreparedStatementCommand_1.UpdatePreparedStatementCommand(args);
880
- if (typeof optionsOrCb === "function") {
881
- this.send(command, optionsOrCb);
882
- }
883
- else if (typeof cb === "function") {
884
- if (typeof optionsOrCb !== "object")
885
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
886
- this.send(command, optionsOrCb || {}, cb);
887
- }
888
- else {
889
- return this.send(command, optionsOrCb);
890
- }
891
- }
892
- updateWorkGroup(args, optionsOrCb, cb) {
893
- const command = new UpdateWorkGroupCommand_1.UpdateWorkGroupCommand(args);
894
- if (typeof optionsOrCb === "function") {
895
- this.send(command, optionsOrCb);
896
- }
897
- else if (typeof cb === "function") {
898
- if (typeof optionsOrCb !== "object")
899
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
900
- this.send(command, optionsOrCb || {}, cb);
901
- }
902
- else {
903
- return this.send(command, optionsOrCb);
904
- }
905
- }
906
129
  }
907
130
  exports.Athena = Athena;
131
+ (0, smithy_client_1.createAggregatedClient)(commands, Athena);