@aws-sdk/client-athena 3.186.0 → 3.190.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Athena.js +150 -157
  3. package/dist-es/AthenaClient.js +22 -28
  4. package/dist-es/commands/BatchGetNamedQueryCommand.js +21 -28
  5. package/dist-es/commands/BatchGetPreparedStatementCommand.js +21 -28
  6. package/dist-es/commands/BatchGetQueryExecutionCommand.js +21 -28
  7. package/dist-es/commands/CreateDataCatalogCommand.js +21 -28
  8. package/dist-es/commands/CreateNamedQueryCommand.js +21 -28
  9. package/dist-es/commands/CreatePreparedStatementCommand.js +21 -28
  10. package/dist-es/commands/CreateWorkGroupCommand.js +21 -28
  11. package/dist-es/commands/DeleteDataCatalogCommand.js +21 -28
  12. package/dist-es/commands/DeleteNamedQueryCommand.js +21 -28
  13. package/dist-es/commands/DeletePreparedStatementCommand.js +21 -28
  14. package/dist-es/commands/DeleteWorkGroupCommand.js +21 -28
  15. package/dist-es/commands/GetDataCatalogCommand.js +21 -28
  16. package/dist-es/commands/GetDatabaseCommand.js +21 -28
  17. package/dist-es/commands/GetNamedQueryCommand.js +21 -28
  18. package/dist-es/commands/GetPreparedStatementCommand.js +21 -28
  19. package/dist-es/commands/GetQueryExecutionCommand.js +21 -28
  20. package/dist-es/commands/GetQueryResultsCommand.js +21 -28
  21. package/dist-es/commands/GetQueryRuntimeStatisticsCommand.js +21 -28
  22. package/dist-es/commands/GetTableMetadataCommand.js +21 -28
  23. package/dist-es/commands/GetWorkGroupCommand.js +21 -28
  24. package/dist-es/commands/ListDataCatalogsCommand.js +21 -28
  25. package/dist-es/commands/ListDatabasesCommand.js +21 -28
  26. package/dist-es/commands/ListEngineVersionsCommand.js +21 -28
  27. package/dist-es/commands/ListNamedQueriesCommand.js +21 -28
  28. package/dist-es/commands/ListPreparedStatementsCommand.js +21 -28
  29. package/dist-es/commands/ListQueryExecutionsCommand.js +21 -28
  30. package/dist-es/commands/ListTableMetadataCommand.js +21 -28
  31. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  32. package/dist-es/commands/ListWorkGroupsCommand.js +21 -28
  33. package/dist-es/commands/StartQueryExecutionCommand.js +21 -28
  34. package/dist-es/commands/StopQueryExecutionCommand.js +21 -28
  35. package/dist-es/commands/TagResourceCommand.js +21 -28
  36. package/dist-es/commands/UntagResourceCommand.js +21 -28
  37. package/dist-es/commands/UpdateDataCatalogCommand.js +21 -28
  38. package/dist-es/commands/UpdateNamedQueryCommand.js +21 -28
  39. package/dist-es/commands/UpdatePreparedStatementCommand.js +21 -28
  40. package/dist-es/commands/UpdateWorkGroupCommand.js +21 -28
  41. package/dist-es/endpoints.js +8 -8
  42. package/dist-es/models/AthenaServiceException.js +5 -10
  43. package/dist-es/models/models_0.js +393 -174
  44. package/dist-es/pagination/GetQueryResultsPaginator.js +25 -68
  45. package/dist-es/pagination/ListDataCatalogsPaginator.js +25 -68
  46. package/dist-es/pagination/ListDatabasesPaginator.js +25 -68
  47. package/dist-es/pagination/ListEngineVersionsPaginator.js +25 -68
  48. package/dist-es/pagination/ListNamedQueriesPaginator.js +25 -68
  49. package/dist-es/pagination/ListPreparedStatementsPaginator.js +25 -68
  50. package/dist-es/pagination/ListQueryExecutionsPaginator.js +25 -68
  51. package/dist-es/pagination/ListTableMetadataPaginator.js +25 -68
  52. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  53. package/dist-es/pagination/ListWorkGroupsPaginator.js +25 -68
  54. package/dist-es/protocols/Aws_json1_1.js +2301 -2942
  55. package/dist-es/runtimeConfig.browser.js +26 -12
  56. package/dist-es/runtimeConfig.js +30 -12
  57. package/dist-es/runtimeConfig.native.js +8 -5
  58. package/dist-es/runtimeConfig.shared.js +8 -11
  59. package/package.json +33 -33
package/dist-es/Athena.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AthenaClient } from "./AthenaClient";
3
2
  import { BatchGetNamedQueryCommand, } from "./commands/BatchGetNamedQueryCommand";
4
3
  import { BatchGetPreparedStatementCommand, } from "./commands/BatchGetPreparedStatementCommand";
@@ -37,529 +36,523 @@ import { UpdateDataCatalogCommand, } from "./commands/UpdateDataCatalogCommand";
37
36
  import { UpdateNamedQueryCommand, } from "./commands/UpdateNamedQueryCommand";
38
37
  import { UpdatePreparedStatementCommand, } from "./commands/UpdatePreparedStatementCommand";
39
38
  import { UpdateWorkGroupCommand, } from "./commands/UpdateWorkGroupCommand";
40
- var Athena = (function (_super) {
41
- __extends(Athena, _super);
42
- function Athena() {
43
- return _super !== null && _super.apply(this, arguments) || this;
44
- }
45
- Athena.prototype.batchGetNamedQuery = function (args, optionsOrCb, cb) {
46
- var command = new BatchGetNamedQueryCommand(args);
39
+ export class Athena extends AthenaClient {
40
+ batchGetNamedQuery(args, optionsOrCb, cb) {
41
+ const command = new BatchGetNamedQueryCommand(args);
47
42
  if (typeof optionsOrCb === "function") {
48
43
  this.send(command, optionsOrCb);
49
44
  }
50
45
  else if (typeof cb === "function") {
51
46
  if (typeof optionsOrCb !== "object")
52
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
47
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
53
48
  this.send(command, optionsOrCb || {}, cb);
54
49
  }
55
50
  else {
56
51
  return this.send(command, optionsOrCb);
57
52
  }
58
- };
59
- Athena.prototype.batchGetPreparedStatement = function (args, optionsOrCb, cb) {
60
- var command = new BatchGetPreparedStatementCommand(args);
53
+ }
54
+ batchGetPreparedStatement(args, optionsOrCb, cb) {
55
+ const command = new BatchGetPreparedStatementCommand(args);
61
56
  if (typeof optionsOrCb === "function") {
62
57
  this.send(command, optionsOrCb);
63
58
  }
64
59
  else if (typeof cb === "function") {
65
60
  if (typeof optionsOrCb !== "object")
66
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
61
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
67
62
  this.send(command, optionsOrCb || {}, cb);
68
63
  }
69
64
  else {
70
65
  return this.send(command, optionsOrCb);
71
66
  }
72
- };
73
- Athena.prototype.batchGetQueryExecution = function (args, optionsOrCb, cb) {
74
- var command = new BatchGetQueryExecutionCommand(args);
67
+ }
68
+ batchGetQueryExecution(args, optionsOrCb, cb) {
69
+ const command = new BatchGetQueryExecutionCommand(args);
75
70
  if (typeof optionsOrCb === "function") {
76
71
  this.send(command, optionsOrCb);
77
72
  }
78
73
  else if (typeof cb === "function") {
79
74
  if (typeof optionsOrCb !== "object")
80
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
75
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
81
76
  this.send(command, optionsOrCb || {}, cb);
82
77
  }
83
78
  else {
84
79
  return this.send(command, optionsOrCb);
85
80
  }
86
- };
87
- Athena.prototype.createDataCatalog = function (args, optionsOrCb, cb) {
88
- var command = new CreateDataCatalogCommand(args);
81
+ }
82
+ createDataCatalog(args, optionsOrCb, cb) {
83
+ const command = new CreateDataCatalogCommand(args);
89
84
  if (typeof optionsOrCb === "function") {
90
85
  this.send(command, optionsOrCb);
91
86
  }
92
87
  else if (typeof cb === "function") {
93
88
  if (typeof optionsOrCb !== "object")
94
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
89
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
95
90
  this.send(command, optionsOrCb || {}, cb);
96
91
  }
97
92
  else {
98
93
  return this.send(command, optionsOrCb);
99
94
  }
100
- };
101
- Athena.prototype.createNamedQuery = function (args, optionsOrCb, cb) {
102
- var command = new CreateNamedQueryCommand(args);
95
+ }
96
+ createNamedQuery(args, optionsOrCb, cb) {
97
+ const command = new CreateNamedQueryCommand(args);
103
98
  if (typeof optionsOrCb === "function") {
104
99
  this.send(command, optionsOrCb);
105
100
  }
106
101
  else if (typeof cb === "function") {
107
102
  if (typeof optionsOrCb !== "object")
108
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
103
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
109
104
  this.send(command, optionsOrCb || {}, cb);
110
105
  }
111
106
  else {
112
107
  return this.send(command, optionsOrCb);
113
108
  }
114
- };
115
- Athena.prototype.createPreparedStatement = function (args, optionsOrCb, cb) {
116
- var command = new CreatePreparedStatementCommand(args);
109
+ }
110
+ createPreparedStatement(args, optionsOrCb, cb) {
111
+ const command = new CreatePreparedStatementCommand(args);
117
112
  if (typeof optionsOrCb === "function") {
118
113
  this.send(command, optionsOrCb);
119
114
  }
120
115
  else if (typeof cb === "function") {
121
116
  if (typeof optionsOrCb !== "object")
122
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
117
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
123
118
  this.send(command, optionsOrCb || {}, cb);
124
119
  }
125
120
  else {
126
121
  return this.send(command, optionsOrCb);
127
122
  }
128
- };
129
- Athena.prototype.createWorkGroup = function (args, optionsOrCb, cb) {
130
- var command = new CreateWorkGroupCommand(args);
123
+ }
124
+ createWorkGroup(args, optionsOrCb, cb) {
125
+ const command = new CreateWorkGroupCommand(args);
131
126
  if (typeof optionsOrCb === "function") {
132
127
  this.send(command, optionsOrCb);
133
128
  }
134
129
  else if (typeof cb === "function") {
135
130
  if (typeof optionsOrCb !== "object")
136
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
131
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
137
132
  this.send(command, optionsOrCb || {}, cb);
138
133
  }
139
134
  else {
140
135
  return this.send(command, optionsOrCb);
141
136
  }
142
- };
143
- Athena.prototype.deleteDataCatalog = function (args, optionsOrCb, cb) {
144
- var command = new DeleteDataCatalogCommand(args);
137
+ }
138
+ deleteDataCatalog(args, optionsOrCb, cb) {
139
+ const command = new DeleteDataCatalogCommand(args);
145
140
  if (typeof optionsOrCb === "function") {
146
141
  this.send(command, optionsOrCb);
147
142
  }
148
143
  else if (typeof cb === "function") {
149
144
  if (typeof optionsOrCb !== "object")
150
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
145
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
151
146
  this.send(command, optionsOrCb || {}, cb);
152
147
  }
153
148
  else {
154
149
  return this.send(command, optionsOrCb);
155
150
  }
156
- };
157
- Athena.prototype.deleteNamedQuery = function (args, optionsOrCb, cb) {
158
- var command = new DeleteNamedQueryCommand(args);
151
+ }
152
+ deleteNamedQuery(args, optionsOrCb, cb) {
153
+ const command = new DeleteNamedQueryCommand(args);
159
154
  if (typeof optionsOrCb === "function") {
160
155
  this.send(command, optionsOrCb);
161
156
  }
162
157
  else if (typeof cb === "function") {
163
158
  if (typeof optionsOrCb !== "object")
164
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
159
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
165
160
  this.send(command, optionsOrCb || {}, cb);
166
161
  }
167
162
  else {
168
163
  return this.send(command, optionsOrCb);
169
164
  }
170
- };
171
- Athena.prototype.deletePreparedStatement = function (args, optionsOrCb, cb) {
172
- var command = new DeletePreparedStatementCommand(args);
165
+ }
166
+ deletePreparedStatement(args, optionsOrCb, cb) {
167
+ const command = new DeletePreparedStatementCommand(args);
173
168
  if (typeof optionsOrCb === "function") {
174
169
  this.send(command, optionsOrCb);
175
170
  }
176
171
  else if (typeof cb === "function") {
177
172
  if (typeof optionsOrCb !== "object")
178
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
173
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
179
174
  this.send(command, optionsOrCb || {}, cb);
180
175
  }
181
176
  else {
182
177
  return this.send(command, optionsOrCb);
183
178
  }
184
- };
185
- Athena.prototype.deleteWorkGroup = function (args, optionsOrCb, cb) {
186
- var command = new DeleteWorkGroupCommand(args);
179
+ }
180
+ deleteWorkGroup(args, optionsOrCb, cb) {
181
+ const command = new DeleteWorkGroupCommand(args);
187
182
  if (typeof optionsOrCb === "function") {
188
183
  this.send(command, optionsOrCb);
189
184
  }
190
185
  else if (typeof cb === "function") {
191
186
  if (typeof optionsOrCb !== "object")
192
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
187
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
193
188
  this.send(command, optionsOrCb || {}, cb);
194
189
  }
195
190
  else {
196
191
  return this.send(command, optionsOrCb);
197
192
  }
198
- };
199
- Athena.prototype.getDatabase = function (args, optionsOrCb, cb) {
200
- var command = new GetDatabaseCommand(args);
193
+ }
194
+ getDatabase(args, optionsOrCb, cb) {
195
+ const command = new GetDatabaseCommand(args);
201
196
  if (typeof optionsOrCb === "function") {
202
197
  this.send(command, optionsOrCb);
203
198
  }
204
199
  else if (typeof cb === "function") {
205
200
  if (typeof optionsOrCb !== "object")
206
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
201
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
207
202
  this.send(command, optionsOrCb || {}, cb);
208
203
  }
209
204
  else {
210
205
  return this.send(command, optionsOrCb);
211
206
  }
212
- };
213
- Athena.prototype.getDataCatalog = function (args, optionsOrCb, cb) {
214
- var command = new GetDataCatalogCommand(args);
207
+ }
208
+ getDataCatalog(args, optionsOrCb, cb) {
209
+ const command = new GetDataCatalogCommand(args);
215
210
  if (typeof optionsOrCb === "function") {
216
211
  this.send(command, optionsOrCb);
217
212
  }
218
213
  else if (typeof cb === "function") {
219
214
  if (typeof optionsOrCb !== "object")
220
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
215
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
221
216
  this.send(command, optionsOrCb || {}, cb);
222
217
  }
223
218
  else {
224
219
  return this.send(command, optionsOrCb);
225
220
  }
226
- };
227
- Athena.prototype.getNamedQuery = function (args, optionsOrCb, cb) {
228
- var command = new GetNamedQueryCommand(args);
221
+ }
222
+ getNamedQuery(args, optionsOrCb, cb) {
223
+ const command = new GetNamedQueryCommand(args);
229
224
  if (typeof optionsOrCb === "function") {
230
225
  this.send(command, optionsOrCb);
231
226
  }
232
227
  else if (typeof cb === "function") {
233
228
  if (typeof optionsOrCb !== "object")
234
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
229
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
235
230
  this.send(command, optionsOrCb || {}, cb);
236
231
  }
237
232
  else {
238
233
  return this.send(command, optionsOrCb);
239
234
  }
240
- };
241
- Athena.prototype.getPreparedStatement = function (args, optionsOrCb, cb) {
242
- var command = new GetPreparedStatementCommand(args);
235
+ }
236
+ getPreparedStatement(args, optionsOrCb, cb) {
237
+ const command = new GetPreparedStatementCommand(args);
243
238
  if (typeof optionsOrCb === "function") {
244
239
  this.send(command, optionsOrCb);
245
240
  }
246
241
  else if (typeof cb === "function") {
247
242
  if (typeof optionsOrCb !== "object")
248
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
243
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
249
244
  this.send(command, optionsOrCb || {}, cb);
250
245
  }
251
246
  else {
252
247
  return this.send(command, optionsOrCb);
253
248
  }
254
- };
255
- Athena.prototype.getQueryExecution = function (args, optionsOrCb, cb) {
256
- var command = new GetQueryExecutionCommand(args);
249
+ }
250
+ getQueryExecution(args, optionsOrCb, cb) {
251
+ const command = new GetQueryExecutionCommand(args);
257
252
  if (typeof optionsOrCb === "function") {
258
253
  this.send(command, optionsOrCb);
259
254
  }
260
255
  else if (typeof cb === "function") {
261
256
  if (typeof optionsOrCb !== "object")
262
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
257
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
263
258
  this.send(command, optionsOrCb || {}, cb);
264
259
  }
265
260
  else {
266
261
  return this.send(command, optionsOrCb);
267
262
  }
268
- };
269
- Athena.prototype.getQueryResults = function (args, optionsOrCb, cb) {
270
- var command = new GetQueryResultsCommand(args);
263
+ }
264
+ getQueryResults(args, optionsOrCb, cb) {
265
+ const command = new GetQueryResultsCommand(args);
271
266
  if (typeof optionsOrCb === "function") {
272
267
  this.send(command, optionsOrCb);
273
268
  }
274
269
  else if (typeof cb === "function") {
275
270
  if (typeof optionsOrCb !== "object")
276
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
271
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
277
272
  this.send(command, optionsOrCb || {}, cb);
278
273
  }
279
274
  else {
280
275
  return this.send(command, optionsOrCb);
281
276
  }
282
- };
283
- Athena.prototype.getQueryRuntimeStatistics = function (args, optionsOrCb, cb) {
284
- var command = new GetQueryRuntimeStatisticsCommand(args);
277
+ }
278
+ getQueryRuntimeStatistics(args, optionsOrCb, cb) {
279
+ const command = new GetQueryRuntimeStatisticsCommand(args);
285
280
  if (typeof optionsOrCb === "function") {
286
281
  this.send(command, optionsOrCb);
287
282
  }
288
283
  else if (typeof cb === "function") {
289
284
  if (typeof optionsOrCb !== "object")
290
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
285
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
291
286
  this.send(command, optionsOrCb || {}, cb);
292
287
  }
293
288
  else {
294
289
  return this.send(command, optionsOrCb);
295
290
  }
296
- };
297
- Athena.prototype.getTableMetadata = function (args, optionsOrCb, cb) {
298
- var command = new GetTableMetadataCommand(args);
291
+ }
292
+ getTableMetadata(args, optionsOrCb, cb) {
293
+ const command = new GetTableMetadataCommand(args);
299
294
  if (typeof optionsOrCb === "function") {
300
295
  this.send(command, optionsOrCb);
301
296
  }
302
297
  else if (typeof cb === "function") {
303
298
  if (typeof optionsOrCb !== "object")
304
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
299
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
305
300
  this.send(command, optionsOrCb || {}, cb);
306
301
  }
307
302
  else {
308
303
  return this.send(command, optionsOrCb);
309
304
  }
310
- };
311
- Athena.prototype.getWorkGroup = function (args, optionsOrCb, cb) {
312
- var command = new GetWorkGroupCommand(args);
305
+ }
306
+ getWorkGroup(args, optionsOrCb, cb) {
307
+ const command = new GetWorkGroupCommand(args);
313
308
  if (typeof optionsOrCb === "function") {
314
309
  this.send(command, optionsOrCb);
315
310
  }
316
311
  else if (typeof cb === "function") {
317
312
  if (typeof optionsOrCb !== "object")
318
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
313
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
319
314
  this.send(command, optionsOrCb || {}, cb);
320
315
  }
321
316
  else {
322
317
  return this.send(command, optionsOrCb);
323
318
  }
324
- };
325
- Athena.prototype.listDatabases = function (args, optionsOrCb, cb) {
326
- var command = new ListDatabasesCommand(args);
319
+ }
320
+ listDatabases(args, optionsOrCb, cb) {
321
+ const command = new ListDatabasesCommand(args);
327
322
  if (typeof optionsOrCb === "function") {
328
323
  this.send(command, optionsOrCb);
329
324
  }
330
325
  else if (typeof cb === "function") {
331
326
  if (typeof optionsOrCb !== "object")
332
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
327
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
333
328
  this.send(command, optionsOrCb || {}, cb);
334
329
  }
335
330
  else {
336
331
  return this.send(command, optionsOrCb);
337
332
  }
338
- };
339
- Athena.prototype.listDataCatalogs = function (args, optionsOrCb, cb) {
340
- var command = new ListDataCatalogsCommand(args);
333
+ }
334
+ listDataCatalogs(args, optionsOrCb, cb) {
335
+ const command = new ListDataCatalogsCommand(args);
341
336
  if (typeof optionsOrCb === "function") {
342
337
  this.send(command, optionsOrCb);
343
338
  }
344
339
  else if (typeof cb === "function") {
345
340
  if (typeof optionsOrCb !== "object")
346
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
341
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
347
342
  this.send(command, optionsOrCb || {}, cb);
348
343
  }
349
344
  else {
350
345
  return this.send(command, optionsOrCb);
351
346
  }
352
- };
353
- Athena.prototype.listEngineVersions = function (args, optionsOrCb, cb) {
354
- var command = new ListEngineVersionsCommand(args);
347
+ }
348
+ listEngineVersions(args, optionsOrCb, cb) {
349
+ const command = new ListEngineVersionsCommand(args);
355
350
  if (typeof optionsOrCb === "function") {
356
351
  this.send(command, optionsOrCb);
357
352
  }
358
353
  else if (typeof cb === "function") {
359
354
  if (typeof optionsOrCb !== "object")
360
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
355
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
361
356
  this.send(command, optionsOrCb || {}, cb);
362
357
  }
363
358
  else {
364
359
  return this.send(command, optionsOrCb);
365
360
  }
366
- };
367
- Athena.prototype.listNamedQueries = function (args, optionsOrCb, cb) {
368
- var command = new ListNamedQueriesCommand(args);
361
+ }
362
+ listNamedQueries(args, optionsOrCb, cb) {
363
+ const command = new ListNamedQueriesCommand(args);
369
364
  if (typeof optionsOrCb === "function") {
370
365
  this.send(command, optionsOrCb);
371
366
  }
372
367
  else if (typeof cb === "function") {
373
368
  if (typeof optionsOrCb !== "object")
374
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
369
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
375
370
  this.send(command, optionsOrCb || {}, cb);
376
371
  }
377
372
  else {
378
373
  return this.send(command, optionsOrCb);
379
374
  }
380
- };
381
- Athena.prototype.listPreparedStatements = function (args, optionsOrCb, cb) {
382
- var command = new ListPreparedStatementsCommand(args);
375
+ }
376
+ listPreparedStatements(args, optionsOrCb, cb) {
377
+ const command = new ListPreparedStatementsCommand(args);
383
378
  if (typeof optionsOrCb === "function") {
384
379
  this.send(command, optionsOrCb);
385
380
  }
386
381
  else if (typeof cb === "function") {
387
382
  if (typeof optionsOrCb !== "object")
388
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
383
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
389
384
  this.send(command, optionsOrCb || {}, cb);
390
385
  }
391
386
  else {
392
387
  return this.send(command, optionsOrCb);
393
388
  }
394
- };
395
- Athena.prototype.listQueryExecutions = function (args, optionsOrCb, cb) {
396
- var command = new ListQueryExecutionsCommand(args);
389
+ }
390
+ listQueryExecutions(args, optionsOrCb, cb) {
391
+ const command = new ListQueryExecutionsCommand(args);
397
392
  if (typeof optionsOrCb === "function") {
398
393
  this.send(command, optionsOrCb);
399
394
  }
400
395
  else if (typeof cb === "function") {
401
396
  if (typeof optionsOrCb !== "object")
402
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
397
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
403
398
  this.send(command, optionsOrCb || {}, cb);
404
399
  }
405
400
  else {
406
401
  return this.send(command, optionsOrCb);
407
402
  }
408
- };
409
- Athena.prototype.listTableMetadata = function (args, optionsOrCb, cb) {
410
- var command = new ListTableMetadataCommand(args);
403
+ }
404
+ listTableMetadata(args, optionsOrCb, cb) {
405
+ const command = new ListTableMetadataCommand(args);
411
406
  if (typeof optionsOrCb === "function") {
412
407
  this.send(command, optionsOrCb);
413
408
  }
414
409
  else if (typeof cb === "function") {
415
410
  if (typeof optionsOrCb !== "object")
416
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
411
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
417
412
  this.send(command, optionsOrCb || {}, cb);
418
413
  }
419
414
  else {
420
415
  return this.send(command, optionsOrCb);
421
416
  }
422
- };
423
- Athena.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
424
- var command = new ListTagsForResourceCommand(args);
417
+ }
418
+ listTagsForResource(args, optionsOrCb, cb) {
419
+ const command = new ListTagsForResourceCommand(args);
425
420
  if (typeof optionsOrCb === "function") {
426
421
  this.send(command, optionsOrCb);
427
422
  }
428
423
  else if (typeof cb === "function") {
429
424
  if (typeof optionsOrCb !== "object")
430
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
425
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
431
426
  this.send(command, optionsOrCb || {}, cb);
432
427
  }
433
428
  else {
434
429
  return this.send(command, optionsOrCb);
435
430
  }
436
- };
437
- Athena.prototype.listWorkGroups = function (args, optionsOrCb, cb) {
438
- var command = new ListWorkGroupsCommand(args);
431
+ }
432
+ listWorkGroups(args, optionsOrCb, cb) {
433
+ const command = new ListWorkGroupsCommand(args);
439
434
  if (typeof optionsOrCb === "function") {
440
435
  this.send(command, optionsOrCb);
441
436
  }
442
437
  else if (typeof cb === "function") {
443
438
  if (typeof optionsOrCb !== "object")
444
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
439
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
445
440
  this.send(command, optionsOrCb || {}, cb);
446
441
  }
447
442
  else {
448
443
  return this.send(command, optionsOrCb);
449
444
  }
450
- };
451
- Athena.prototype.startQueryExecution = function (args, optionsOrCb, cb) {
452
- var command = new StartQueryExecutionCommand(args);
445
+ }
446
+ startQueryExecution(args, optionsOrCb, cb) {
447
+ const command = new StartQueryExecutionCommand(args);
453
448
  if (typeof optionsOrCb === "function") {
454
449
  this.send(command, optionsOrCb);
455
450
  }
456
451
  else if (typeof cb === "function") {
457
452
  if (typeof optionsOrCb !== "object")
458
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
453
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
459
454
  this.send(command, optionsOrCb || {}, cb);
460
455
  }
461
456
  else {
462
457
  return this.send(command, optionsOrCb);
463
458
  }
464
- };
465
- Athena.prototype.stopQueryExecution = function (args, optionsOrCb, cb) {
466
- var command = new StopQueryExecutionCommand(args);
459
+ }
460
+ stopQueryExecution(args, optionsOrCb, cb) {
461
+ const command = new StopQueryExecutionCommand(args);
467
462
  if (typeof optionsOrCb === "function") {
468
463
  this.send(command, optionsOrCb);
469
464
  }
470
465
  else if (typeof cb === "function") {
471
466
  if (typeof optionsOrCb !== "object")
472
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
467
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
473
468
  this.send(command, optionsOrCb || {}, cb);
474
469
  }
475
470
  else {
476
471
  return this.send(command, optionsOrCb);
477
472
  }
478
- };
479
- Athena.prototype.tagResource = function (args, optionsOrCb, cb) {
480
- var command = new TagResourceCommand(args);
473
+ }
474
+ tagResource(args, optionsOrCb, cb) {
475
+ const command = new TagResourceCommand(args);
481
476
  if (typeof optionsOrCb === "function") {
482
477
  this.send(command, optionsOrCb);
483
478
  }
484
479
  else if (typeof cb === "function") {
485
480
  if (typeof optionsOrCb !== "object")
486
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
481
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
487
482
  this.send(command, optionsOrCb || {}, cb);
488
483
  }
489
484
  else {
490
485
  return this.send(command, optionsOrCb);
491
486
  }
492
- };
493
- Athena.prototype.untagResource = function (args, optionsOrCb, cb) {
494
- var command = new UntagResourceCommand(args);
487
+ }
488
+ untagResource(args, optionsOrCb, cb) {
489
+ const command = new UntagResourceCommand(args);
495
490
  if (typeof optionsOrCb === "function") {
496
491
  this.send(command, optionsOrCb);
497
492
  }
498
493
  else if (typeof cb === "function") {
499
494
  if (typeof optionsOrCb !== "object")
500
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
495
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
501
496
  this.send(command, optionsOrCb || {}, cb);
502
497
  }
503
498
  else {
504
499
  return this.send(command, optionsOrCb);
505
500
  }
506
- };
507
- Athena.prototype.updateDataCatalog = function (args, optionsOrCb, cb) {
508
- var command = new UpdateDataCatalogCommand(args);
501
+ }
502
+ updateDataCatalog(args, optionsOrCb, cb) {
503
+ const command = new UpdateDataCatalogCommand(args);
509
504
  if (typeof optionsOrCb === "function") {
510
505
  this.send(command, optionsOrCb);
511
506
  }
512
507
  else if (typeof cb === "function") {
513
508
  if (typeof optionsOrCb !== "object")
514
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
509
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
515
510
  this.send(command, optionsOrCb || {}, cb);
516
511
  }
517
512
  else {
518
513
  return this.send(command, optionsOrCb);
519
514
  }
520
- };
521
- Athena.prototype.updateNamedQuery = function (args, optionsOrCb, cb) {
522
- var command = new UpdateNamedQueryCommand(args);
515
+ }
516
+ updateNamedQuery(args, optionsOrCb, cb) {
517
+ const command = new UpdateNamedQueryCommand(args);
523
518
  if (typeof optionsOrCb === "function") {
524
519
  this.send(command, optionsOrCb);
525
520
  }
526
521
  else if (typeof cb === "function") {
527
522
  if (typeof optionsOrCb !== "object")
528
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
523
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
529
524
  this.send(command, optionsOrCb || {}, cb);
530
525
  }
531
526
  else {
532
527
  return this.send(command, optionsOrCb);
533
528
  }
534
- };
535
- Athena.prototype.updatePreparedStatement = function (args, optionsOrCb, cb) {
536
- var command = new UpdatePreparedStatementCommand(args);
529
+ }
530
+ updatePreparedStatement(args, optionsOrCb, cb) {
531
+ const command = new UpdatePreparedStatementCommand(args);
537
532
  if (typeof optionsOrCb === "function") {
538
533
  this.send(command, optionsOrCb);
539
534
  }
540
535
  else if (typeof cb === "function") {
541
536
  if (typeof optionsOrCb !== "object")
542
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
537
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
543
538
  this.send(command, optionsOrCb || {}, cb);
544
539
  }
545
540
  else {
546
541
  return this.send(command, optionsOrCb);
547
542
  }
548
- };
549
- Athena.prototype.updateWorkGroup = function (args, optionsOrCb, cb) {
550
- var command = new UpdateWorkGroupCommand(args);
543
+ }
544
+ updateWorkGroup(args, optionsOrCb, cb) {
545
+ const command = new UpdateWorkGroupCommand(args);
551
546
  if (typeof optionsOrCb === "function") {
552
547
  this.send(command, optionsOrCb);
553
548
  }
554
549
  else if (typeof cb === "function") {
555
550
  if (typeof optionsOrCb !== "object")
556
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
551
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
557
552
  this.send(command, optionsOrCb || {}, cb);
558
553
  }
559
554
  else {
560
555
  return this.send(command, optionsOrCb);
561
556
  }
562
- };
563
- return Athena;
564
- }(AthenaClient));
565
- export { Athena };
557
+ }
558
+ }