@aws-sdk/client-athena 3.216.0 → 3.221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Athena.js +345 -0
- package/dist-cjs/commands/CreateNotebookCommand.js +46 -0
- package/dist-cjs/commands/CreatePresignedNotebookUrlCommand.js +46 -0
- package/dist-cjs/commands/DeleteNotebookCommand.js +46 -0
- package/dist-cjs/commands/ExportNotebookCommand.js +46 -0
- package/dist-cjs/commands/GetCalculationExecutionCodeCommand.js +46 -0
- package/dist-cjs/commands/GetCalculationExecutionCommand.js +46 -0
- package/dist-cjs/commands/GetCalculationExecutionStatusCommand.js +46 -0
- package/dist-cjs/commands/GetNotebookMetadataCommand.js +46 -0
- package/dist-cjs/commands/GetSessionCommand.js +46 -0
- package/dist-cjs/commands/GetSessionStatusCommand.js +46 -0
- package/dist-cjs/commands/ImportNotebookCommand.js +46 -0
- package/dist-cjs/commands/ListApplicationDPUSizesCommand.js +46 -0
- package/dist-cjs/commands/ListCalculationExecutionsCommand.js +46 -0
- package/dist-cjs/commands/ListExecutorsCommand.js +46 -0
- package/dist-cjs/commands/ListNotebookMetadataCommand.js +46 -0
- package/dist-cjs/commands/ListNotebookSessionsCommand.js +46 -0
- package/dist-cjs/commands/ListSessionsCommand.js +46 -0
- package/dist-cjs/commands/StartCalculationExecutionCommand.js +46 -0
- package/dist-cjs/commands/StartSessionCommand.js +46 -0
- package/dist-cjs/commands/StopCalculationExecutionCommand.js +46 -0
- package/dist-cjs/commands/TerminateSessionCommand.js +46 -0
- package/dist-cjs/commands/UpdateNotebookCommand.js +46 -0
- package/dist-cjs/commands/UpdateNotebookMetadataCommand.js +46 -0
- package/dist-cjs/commands/index.js +23 -0
- package/dist-cjs/models/models_0.js +322 -18
- package/dist-cjs/pagination/ListApplicationDPUSizesPaginator.js +36 -0
- package/dist-cjs/pagination/ListCalculationExecutionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListExecutorsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSessionsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1908 -183
- package/dist-es/Athena.js +345 -0
- package/dist-es/commands/CreateNotebookCommand.js +42 -0
- package/dist-es/commands/CreatePresignedNotebookUrlCommand.js +42 -0
- package/dist-es/commands/DeleteNotebookCommand.js +42 -0
- package/dist-es/commands/ExportNotebookCommand.js +42 -0
- package/dist-es/commands/GetCalculationExecutionCodeCommand.js +42 -0
- package/dist-es/commands/GetCalculationExecutionCommand.js +42 -0
- package/dist-es/commands/GetCalculationExecutionStatusCommand.js +42 -0
- package/dist-es/commands/GetNotebookMetadataCommand.js +42 -0
- package/dist-es/commands/GetSessionCommand.js +42 -0
- package/dist-es/commands/GetSessionStatusCommand.js +42 -0
- package/dist-es/commands/ImportNotebookCommand.js +42 -0
- package/dist-es/commands/ListApplicationDPUSizesCommand.js +42 -0
- package/dist-es/commands/ListCalculationExecutionsCommand.js +42 -0
- package/dist-es/commands/ListExecutorsCommand.js +42 -0
- package/dist-es/commands/ListNotebookMetadataCommand.js +42 -0
- package/dist-es/commands/ListNotebookSessionsCommand.js +42 -0
- package/dist-es/commands/ListSessionsCommand.js +42 -0
- package/dist-es/commands/StartCalculationExecutionCommand.js +42 -0
- package/dist-es/commands/StartSessionCommand.js +42 -0
- package/dist-es/commands/StopCalculationExecutionCommand.js +42 -0
- package/dist-es/commands/TerminateSessionCommand.js +42 -0
- package/dist-es/commands/UpdateNotebookCommand.js +42 -0
- package/dist-es/commands/UpdateNotebookMetadataCommand.js +42 -0
- package/dist-es/commands/index.js +23 -0
- package/dist-es/models/models_0.js +254 -14
- package/dist-es/pagination/ListApplicationDPUSizesPaginator.js +32 -0
- package/dist-es/pagination/ListCalculationExecutionsPaginator.js +32 -0
- package/dist-es/pagination/ListExecutorsPaginator.js +32 -0
- package/dist-es/pagination/ListSessionsPaginator.js +32 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +1835 -157
- package/dist-types/Athena.d.ts +212 -8
- package/dist-types/AthenaClient.d.ts +25 -2
- package/dist-types/commands/BatchGetPreparedStatementCommand.d.ts +5 -1
- package/dist-types/commands/CreateNotebookCommand.d.ts +39 -0
- package/dist-types/commands/CreatePresignedNotebookUrlCommand.d.ts +39 -0
- package/dist-types/commands/CreateWorkGroupCommand.d.ts +4 -1
- package/dist-types/commands/DeleteNotebookCommand.d.ts +37 -0
- package/dist-types/commands/ExportNotebookCommand.d.ts +37 -0
- package/dist-types/commands/GetCalculationExecutionCodeCommand.d.ts +38 -0
- package/dist-types/commands/GetCalculationExecutionCommand.d.ts +37 -0
- package/dist-types/commands/GetCalculationExecutionStatusCommand.d.ts +37 -0
- package/dist-types/commands/GetNotebookMetadataCommand.d.ts +37 -0
- package/dist-types/commands/GetQueryRuntimeStatisticsCommand.d.ts +4 -4
- package/dist-types/commands/GetSessionCommand.d.ts +38 -0
- package/dist-types/commands/GetSessionStatusCommand.d.ts +37 -0
- package/dist-types/commands/ImportNotebookCommand.d.ts +39 -0
- package/dist-types/commands/ListApplicationDPUSizesCommand.d.ts +38 -0
- package/dist-types/commands/ListCalculationExecutionsCommand.d.ts +38 -0
- package/dist-types/commands/ListExecutorsCommand.d.ts +39 -0
- package/dist-types/commands/ListNotebookMetadataCommand.d.ts +37 -0
- package/dist-types/commands/ListNotebookSessionsCommand.d.ts +40 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +40 -0
- package/dist-types/commands/StartCalculationExecutionCommand.d.ts +38 -0
- package/dist-types/commands/StartSessionCommand.d.ts +38 -0
- package/dist-types/commands/StopCalculationExecutionCommand.d.ts +46 -0
- package/dist-types/commands/TerminateSessionCommand.d.ts +41 -0
- package/dist-types/commands/UpdateNotebookCommand.d.ts +37 -0
- package/dist-types/commands/UpdateNotebookMetadataCommand.d.ts +37 -0
- package/dist-types/commands/UpdateWorkGroupCommand.d.ts +5 -2
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/models/models_0.d.ts +1511 -101
- package/dist-types/pagination/ListApplicationDPUSizesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCalculationExecutionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExecutorsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +69 -0
- package/dist-types/ts3.4/Athena.d.ts +391 -0
- package/dist-types/ts3.4/AthenaClient.d.ts +138 -0
- package/dist-types/ts3.4/commands/CreateNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreatePresignedNotebookUrlCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ExportNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetCalculationExecutionCodeCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetCalculationExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetCalculationExecutionStatusCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetNotebookMetadataCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetSessionStatusCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ImportNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListApplicationDPUSizesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListCalculationExecutionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListExecutorsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListNotebookMetadataCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListNotebookSessionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StartCalculationExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartSessionCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StopCalculationExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateNotebookMetadataCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/models/models_0.d.ts +538 -21
- package/dist-types/ts3.4/pagination/ListApplicationDPUSizesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCalculationExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExecutorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +276 -0
- package/package.json +3 -3
package/dist-es/Athena.js
CHANGED
|
@@ -4,36 +4,59 @@ import { BatchGetPreparedStatementCommand, } from "./commands/BatchGetPreparedSt
|
|
|
4
4
|
import { BatchGetQueryExecutionCommand, } from "./commands/BatchGetQueryExecutionCommand";
|
|
5
5
|
import { CreateDataCatalogCommand, } from "./commands/CreateDataCatalogCommand";
|
|
6
6
|
import { CreateNamedQueryCommand, } from "./commands/CreateNamedQueryCommand";
|
|
7
|
+
import { CreateNotebookCommand, } from "./commands/CreateNotebookCommand";
|
|
7
8
|
import { CreatePreparedStatementCommand, } from "./commands/CreatePreparedStatementCommand";
|
|
9
|
+
import { CreatePresignedNotebookUrlCommand, } from "./commands/CreatePresignedNotebookUrlCommand";
|
|
8
10
|
import { CreateWorkGroupCommand, } from "./commands/CreateWorkGroupCommand";
|
|
9
11
|
import { DeleteDataCatalogCommand, } from "./commands/DeleteDataCatalogCommand";
|
|
10
12
|
import { DeleteNamedQueryCommand, } from "./commands/DeleteNamedQueryCommand";
|
|
13
|
+
import { DeleteNotebookCommand, } from "./commands/DeleteNotebookCommand";
|
|
11
14
|
import { DeletePreparedStatementCommand, } from "./commands/DeletePreparedStatementCommand";
|
|
12
15
|
import { DeleteWorkGroupCommand, } from "./commands/DeleteWorkGroupCommand";
|
|
16
|
+
import { ExportNotebookCommand, } from "./commands/ExportNotebookCommand";
|
|
17
|
+
import { GetCalculationExecutionCodeCommand, } from "./commands/GetCalculationExecutionCodeCommand";
|
|
18
|
+
import { GetCalculationExecutionCommand, } from "./commands/GetCalculationExecutionCommand";
|
|
19
|
+
import { GetCalculationExecutionStatusCommand, } from "./commands/GetCalculationExecutionStatusCommand";
|
|
13
20
|
import { GetDatabaseCommand } from "./commands/GetDatabaseCommand";
|
|
14
21
|
import { GetDataCatalogCommand, } from "./commands/GetDataCatalogCommand";
|
|
15
22
|
import { GetNamedQueryCommand, } from "./commands/GetNamedQueryCommand";
|
|
23
|
+
import { GetNotebookMetadataCommand, } from "./commands/GetNotebookMetadataCommand";
|
|
16
24
|
import { GetPreparedStatementCommand, } from "./commands/GetPreparedStatementCommand";
|
|
17
25
|
import { GetQueryExecutionCommand, } from "./commands/GetQueryExecutionCommand";
|
|
18
26
|
import { GetQueryResultsCommand, } from "./commands/GetQueryResultsCommand";
|
|
19
27
|
import { GetQueryRuntimeStatisticsCommand, } from "./commands/GetQueryRuntimeStatisticsCommand";
|
|
28
|
+
import { GetSessionCommand } from "./commands/GetSessionCommand";
|
|
29
|
+
import { GetSessionStatusCommand, } from "./commands/GetSessionStatusCommand";
|
|
20
30
|
import { GetTableMetadataCommand, } from "./commands/GetTableMetadataCommand";
|
|
21
31
|
import { GetWorkGroupCommand, } from "./commands/GetWorkGroupCommand";
|
|
32
|
+
import { ImportNotebookCommand, } from "./commands/ImportNotebookCommand";
|
|
33
|
+
import { ListApplicationDPUSizesCommand, } from "./commands/ListApplicationDPUSizesCommand";
|
|
34
|
+
import { ListCalculationExecutionsCommand, } from "./commands/ListCalculationExecutionsCommand";
|
|
22
35
|
import { ListDatabasesCommand, } from "./commands/ListDatabasesCommand";
|
|
23
36
|
import { ListDataCatalogsCommand, } from "./commands/ListDataCatalogsCommand";
|
|
24
37
|
import { ListEngineVersionsCommand, } from "./commands/ListEngineVersionsCommand";
|
|
38
|
+
import { ListExecutorsCommand, } from "./commands/ListExecutorsCommand";
|
|
25
39
|
import { ListNamedQueriesCommand, } from "./commands/ListNamedQueriesCommand";
|
|
40
|
+
import { ListNotebookMetadataCommand, } from "./commands/ListNotebookMetadataCommand";
|
|
41
|
+
import { ListNotebookSessionsCommand, } from "./commands/ListNotebookSessionsCommand";
|
|
26
42
|
import { ListPreparedStatementsCommand, } from "./commands/ListPreparedStatementsCommand";
|
|
27
43
|
import { ListQueryExecutionsCommand, } from "./commands/ListQueryExecutionsCommand";
|
|
44
|
+
import { ListSessionsCommand, } from "./commands/ListSessionsCommand";
|
|
28
45
|
import { ListTableMetadataCommand, } from "./commands/ListTableMetadataCommand";
|
|
29
46
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
30
47
|
import { ListWorkGroupsCommand, } from "./commands/ListWorkGroupsCommand";
|
|
48
|
+
import { StartCalculationExecutionCommand, } from "./commands/StartCalculationExecutionCommand";
|
|
31
49
|
import { StartQueryExecutionCommand, } from "./commands/StartQueryExecutionCommand";
|
|
50
|
+
import { StartSessionCommand, } from "./commands/StartSessionCommand";
|
|
51
|
+
import { StopCalculationExecutionCommand, } from "./commands/StopCalculationExecutionCommand";
|
|
32
52
|
import { StopQueryExecutionCommand, } from "./commands/StopQueryExecutionCommand";
|
|
33
53
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
54
|
+
import { TerminateSessionCommand, } from "./commands/TerminateSessionCommand";
|
|
34
55
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
35
56
|
import { UpdateDataCatalogCommand, } from "./commands/UpdateDataCatalogCommand";
|
|
36
57
|
import { UpdateNamedQueryCommand, } from "./commands/UpdateNamedQueryCommand";
|
|
58
|
+
import { UpdateNotebookCommand, } from "./commands/UpdateNotebookCommand";
|
|
59
|
+
import { UpdateNotebookMetadataCommand, } from "./commands/UpdateNotebookMetadataCommand";
|
|
37
60
|
import { UpdatePreparedStatementCommand, } from "./commands/UpdatePreparedStatementCommand";
|
|
38
61
|
import { UpdateWorkGroupCommand, } from "./commands/UpdateWorkGroupCommand";
|
|
39
62
|
export class Athena extends AthenaClient {
|
|
@@ -107,6 +130,20 @@ export class Athena extends AthenaClient {
|
|
|
107
130
|
return this.send(command, optionsOrCb);
|
|
108
131
|
}
|
|
109
132
|
}
|
|
133
|
+
createNotebook(args, optionsOrCb, cb) {
|
|
134
|
+
const command = new CreateNotebookCommand(args);
|
|
135
|
+
if (typeof optionsOrCb === "function") {
|
|
136
|
+
this.send(command, optionsOrCb);
|
|
137
|
+
}
|
|
138
|
+
else if (typeof cb === "function") {
|
|
139
|
+
if (typeof optionsOrCb !== "object")
|
|
140
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
141
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
return this.send(command, optionsOrCb);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
110
147
|
createPreparedStatement(args, optionsOrCb, cb) {
|
|
111
148
|
const command = new CreatePreparedStatementCommand(args);
|
|
112
149
|
if (typeof optionsOrCb === "function") {
|
|
@@ -121,6 +158,20 @@ export class Athena extends AthenaClient {
|
|
|
121
158
|
return this.send(command, optionsOrCb);
|
|
122
159
|
}
|
|
123
160
|
}
|
|
161
|
+
createPresignedNotebookUrl(args, optionsOrCb, cb) {
|
|
162
|
+
const command = new CreatePresignedNotebookUrlCommand(args);
|
|
163
|
+
if (typeof optionsOrCb === "function") {
|
|
164
|
+
this.send(command, optionsOrCb);
|
|
165
|
+
}
|
|
166
|
+
else if (typeof cb === "function") {
|
|
167
|
+
if (typeof optionsOrCb !== "object")
|
|
168
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
169
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
return this.send(command, optionsOrCb);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
124
175
|
createWorkGroup(args, optionsOrCb, cb) {
|
|
125
176
|
const command = new CreateWorkGroupCommand(args);
|
|
126
177
|
if (typeof optionsOrCb === "function") {
|
|
@@ -163,6 +214,20 @@ export class Athena extends AthenaClient {
|
|
|
163
214
|
return this.send(command, optionsOrCb);
|
|
164
215
|
}
|
|
165
216
|
}
|
|
217
|
+
deleteNotebook(args, optionsOrCb, cb) {
|
|
218
|
+
const command = new DeleteNotebookCommand(args);
|
|
219
|
+
if (typeof optionsOrCb === "function") {
|
|
220
|
+
this.send(command, optionsOrCb);
|
|
221
|
+
}
|
|
222
|
+
else if (typeof cb === "function") {
|
|
223
|
+
if (typeof optionsOrCb !== "object")
|
|
224
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
225
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
return this.send(command, optionsOrCb);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
166
231
|
deletePreparedStatement(args, optionsOrCb, cb) {
|
|
167
232
|
const command = new DeletePreparedStatementCommand(args);
|
|
168
233
|
if (typeof optionsOrCb === "function") {
|
|
@@ -191,6 +256,62 @@ export class Athena extends AthenaClient {
|
|
|
191
256
|
return this.send(command, optionsOrCb);
|
|
192
257
|
}
|
|
193
258
|
}
|
|
259
|
+
exportNotebook(args, optionsOrCb, cb) {
|
|
260
|
+
const command = new ExportNotebookCommand(args);
|
|
261
|
+
if (typeof optionsOrCb === "function") {
|
|
262
|
+
this.send(command, optionsOrCb);
|
|
263
|
+
}
|
|
264
|
+
else if (typeof cb === "function") {
|
|
265
|
+
if (typeof optionsOrCb !== "object")
|
|
266
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
267
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
return this.send(command, optionsOrCb);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
getCalculationExecution(args, optionsOrCb, cb) {
|
|
274
|
+
const command = new GetCalculationExecutionCommand(args);
|
|
275
|
+
if (typeof optionsOrCb === "function") {
|
|
276
|
+
this.send(command, optionsOrCb);
|
|
277
|
+
}
|
|
278
|
+
else if (typeof cb === "function") {
|
|
279
|
+
if (typeof optionsOrCb !== "object")
|
|
280
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
281
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
return this.send(command, optionsOrCb);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
getCalculationExecutionCode(args, optionsOrCb, cb) {
|
|
288
|
+
const command = new GetCalculationExecutionCodeCommand(args);
|
|
289
|
+
if (typeof optionsOrCb === "function") {
|
|
290
|
+
this.send(command, optionsOrCb);
|
|
291
|
+
}
|
|
292
|
+
else if (typeof cb === "function") {
|
|
293
|
+
if (typeof optionsOrCb !== "object")
|
|
294
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
295
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
return this.send(command, optionsOrCb);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
getCalculationExecutionStatus(args, optionsOrCb, cb) {
|
|
302
|
+
const command = new GetCalculationExecutionStatusCommand(args);
|
|
303
|
+
if (typeof optionsOrCb === "function") {
|
|
304
|
+
this.send(command, optionsOrCb);
|
|
305
|
+
}
|
|
306
|
+
else if (typeof cb === "function") {
|
|
307
|
+
if (typeof optionsOrCb !== "object")
|
|
308
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
309
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
return this.send(command, optionsOrCb);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
194
315
|
getDatabase(args, optionsOrCb, cb) {
|
|
195
316
|
const command = new GetDatabaseCommand(args);
|
|
196
317
|
if (typeof optionsOrCb === "function") {
|
|
@@ -233,6 +354,20 @@ export class Athena extends AthenaClient {
|
|
|
233
354
|
return this.send(command, optionsOrCb);
|
|
234
355
|
}
|
|
235
356
|
}
|
|
357
|
+
getNotebookMetadata(args, optionsOrCb, cb) {
|
|
358
|
+
const command = new GetNotebookMetadataCommand(args);
|
|
359
|
+
if (typeof optionsOrCb === "function") {
|
|
360
|
+
this.send(command, optionsOrCb);
|
|
361
|
+
}
|
|
362
|
+
else if (typeof cb === "function") {
|
|
363
|
+
if (typeof optionsOrCb !== "object")
|
|
364
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
365
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
366
|
+
}
|
|
367
|
+
else {
|
|
368
|
+
return this.send(command, optionsOrCb);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
236
371
|
getPreparedStatement(args, optionsOrCb, cb) {
|
|
237
372
|
const command = new GetPreparedStatementCommand(args);
|
|
238
373
|
if (typeof optionsOrCb === "function") {
|
|
@@ -289,6 +424,34 @@ export class Athena extends AthenaClient {
|
|
|
289
424
|
return this.send(command, optionsOrCb);
|
|
290
425
|
}
|
|
291
426
|
}
|
|
427
|
+
getSession(args, optionsOrCb, cb) {
|
|
428
|
+
const command = new GetSessionCommand(args);
|
|
429
|
+
if (typeof optionsOrCb === "function") {
|
|
430
|
+
this.send(command, optionsOrCb);
|
|
431
|
+
}
|
|
432
|
+
else if (typeof cb === "function") {
|
|
433
|
+
if (typeof optionsOrCb !== "object")
|
|
434
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
435
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
436
|
+
}
|
|
437
|
+
else {
|
|
438
|
+
return this.send(command, optionsOrCb);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
getSessionStatus(args, optionsOrCb, cb) {
|
|
442
|
+
const command = new GetSessionStatusCommand(args);
|
|
443
|
+
if (typeof optionsOrCb === "function") {
|
|
444
|
+
this.send(command, optionsOrCb);
|
|
445
|
+
}
|
|
446
|
+
else if (typeof cb === "function") {
|
|
447
|
+
if (typeof optionsOrCb !== "object")
|
|
448
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
449
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
return this.send(command, optionsOrCb);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
292
455
|
getTableMetadata(args, optionsOrCb, cb) {
|
|
293
456
|
const command = new GetTableMetadataCommand(args);
|
|
294
457
|
if (typeof optionsOrCb === "function") {
|
|
@@ -317,6 +480,48 @@ export class Athena extends AthenaClient {
|
|
|
317
480
|
return this.send(command, optionsOrCb);
|
|
318
481
|
}
|
|
319
482
|
}
|
|
483
|
+
importNotebook(args, optionsOrCb, cb) {
|
|
484
|
+
const command = new ImportNotebookCommand(args);
|
|
485
|
+
if (typeof optionsOrCb === "function") {
|
|
486
|
+
this.send(command, optionsOrCb);
|
|
487
|
+
}
|
|
488
|
+
else if (typeof cb === "function") {
|
|
489
|
+
if (typeof optionsOrCb !== "object")
|
|
490
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
491
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
492
|
+
}
|
|
493
|
+
else {
|
|
494
|
+
return this.send(command, optionsOrCb);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
listApplicationDPUSizes(args, optionsOrCb, cb) {
|
|
498
|
+
const command = new ListApplicationDPUSizesCommand(args);
|
|
499
|
+
if (typeof optionsOrCb === "function") {
|
|
500
|
+
this.send(command, optionsOrCb);
|
|
501
|
+
}
|
|
502
|
+
else if (typeof cb === "function") {
|
|
503
|
+
if (typeof optionsOrCb !== "object")
|
|
504
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
505
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
506
|
+
}
|
|
507
|
+
else {
|
|
508
|
+
return this.send(command, optionsOrCb);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
listCalculationExecutions(args, optionsOrCb, cb) {
|
|
512
|
+
const command = new ListCalculationExecutionsCommand(args);
|
|
513
|
+
if (typeof optionsOrCb === "function") {
|
|
514
|
+
this.send(command, optionsOrCb);
|
|
515
|
+
}
|
|
516
|
+
else if (typeof cb === "function") {
|
|
517
|
+
if (typeof optionsOrCb !== "object")
|
|
518
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
519
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
520
|
+
}
|
|
521
|
+
else {
|
|
522
|
+
return this.send(command, optionsOrCb);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
320
525
|
listDatabases(args, optionsOrCb, cb) {
|
|
321
526
|
const command = new ListDatabasesCommand(args);
|
|
322
527
|
if (typeof optionsOrCb === "function") {
|
|
@@ -359,6 +564,20 @@ export class Athena extends AthenaClient {
|
|
|
359
564
|
return this.send(command, optionsOrCb);
|
|
360
565
|
}
|
|
361
566
|
}
|
|
567
|
+
listExecutors(args, optionsOrCb, cb) {
|
|
568
|
+
const command = new ListExecutorsCommand(args);
|
|
569
|
+
if (typeof optionsOrCb === "function") {
|
|
570
|
+
this.send(command, optionsOrCb);
|
|
571
|
+
}
|
|
572
|
+
else if (typeof cb === "function") {
|
|
573
|
+
if (typeof optionsOrCb !== "object")
|
|
574
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
575
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
576
|
+
}
|
|
577
|
+
else {
|
|
578
|
+
return this.send(command, optionsOrCb);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
362
581
|
listNamedQueries(args, optionsOrCb, cb) {
|
|
363
582
|
const command = new ListNamedQueriesCommand(args);
|
|
364
583
|
if (typeof optionsOrCb === "function") {
|
|
@@ -373,6 +592,34 @@ export class Athena extends AthenaClient {
|
|
|
373
592
|
return this.send(command, optionsOrCb);
|
|
374
593
|
}
|
|
375
594
|
}
|
|
595
|
+
listNotebookMetadata(args, optionsOrCb, cb) {
|
|
596
|
+
const command = new ListNotebookMetadataCommand(args);
|
|
597
|
+
if (typeof optionsOrCb === "function") {
|
|
598
|
+
this.send(command, optionsOrCb);
|
|
599
|
+
}
|
|
600
|
+
else if (typeof cb === "function") {
|
|
601
|
+
if (typeof optionsOrCb !== "object")
|
|
602
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
603
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
604
|
+
}
|
|
605
|
+
else {
|
|
606
|
+
return this.send(command, optionsOrCb);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
listNotebookSessions(args, optionsOrCb, cb) {
|
|
610
|
+
const command = new ListNotebookSessionsCommand(args);
|
|
611
|
+
if (typeof optionsOrCb === "function") {
|
|
612
|
+
this.send(command, optionsOrCb);
|
|
613
|
+
}
|
|
614
|
+
else if (typeof cb === "function") {
|
|
615
|
+
if (typeof optionsOrCb !== "object")
|
|
616
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
617
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
return this.send(command, optionsOrCb);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
376
623
|
listPreparedStatements(args, optionsOrCb, cb) {
|
|
377
624
|
const command = new ListPreparedStatementsCommand(args);
|
|
378
625
|
if (typeof optionsOrCb === "function") {
|
|
@@ -401,6 +648,20 @@ export class Athena extends AthenaClient {
|
|
|
401
648
|
return this.send(command, optionsOrCb);
|
|
402
649
|
}
|
|
403
650
|
}
|
|
651
|
+
listSessions(args, optionsOrCb, cb) {
|
|
652
|
+
const command = new ListSessionsCommand(args);
|
|
653
|
+
if (typeof optionsOrCb === "function") {
|
|
654
|
+
this.send(command, optionsOrCb);
|
|
655
|
+
}
|
|
656
|
+
else if (typeof cb === "function") {
|
|
657
|
+
if (typeof optionsOrCb !== "object")
|
|
658
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
659
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
660
|
+
}
|
|
661
|
+
else {
|
|
662
|
+
return this.send(command, optionsOrCb);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
404
665
|
listTableMetadata(args, optionsOrCb, cb) {
|
|
405
666
|
const command = new ListTableMetadataCommand(args);
|
|
406
667
|
if (typeof optionsOrCb === "function") {
|
|
@@ -443,6 +704,20 @@ export class Athena extends AthenaClient {
|
|
|
443
704
|
return this.send(command, optionsOrCb);
|
|
444
705
|
}
|
|
445
706
|
}
|
|
707
|
+
startCalculationExecution(args, optionsOrCb, cb) {
|
|
708
|
+
const command = new StartCalculationExecutionCommand(args);
|
|
709
|
+
if (typeof optionsOrCb === "function") {
|
|
710
|
+
this.send(command, optionsOrCb);
|
|
711
|
+
}
|
|
712
|
+
else if (typeof cb === "function") {
|
|
713
|
+
if (typeof optionsOrCb !== "object")
|
|
714
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
715
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
716
|
+
}
|
|
717
|
+
else {
|
|
718
|
+
return this.send(command, optionsOrCb);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
446
721
|
startQueryExecution(args, optionsOrCb, cb) {
|
|
447
722
|
const command = new StartQueryExecutionCommand(args);
|
|
448
723
|
if (typeof optionsOrCb === "function") {
|
|
@@ -457,6 +732,34 @@ export class Athena extends AthenaClient {
|
|
|
457
732
|
return this.send(command, optionsOrCb);
|
|
458
733
|
}
|
|
459
734
|
}
|
|
735
|
+
startSession(args, optionsOrCb, cb) {
|
|
736
|
+
const command = new StartSessionCommand(args);
|
|
737
|
+
if (typeof optionsOrCb === "function") {
|
|
738
|
+
this.send(command, optionsOrCb);
|
|
739
|
+
}
|
|
740
|
+
else if (typeof cb === "function") {
|
|
741
|
+
if (typeof optionsOrCb !== "object")
|
|
742
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
743
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
744
|
+
}
|
|
745
|
+
else {
|
|
746
|
+
return this.send(command, optionsOrCb);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
stopCalculationExecution(args, optionsOrCb, cb) {
|
|
750
|
+
const command = new StopCalculationExecutionCommand(args);
|
|
751
|
+
if (typeof optionsOrCb === "function") {
|
|
752
|
+
this.send(command, optionsOrCb);
|
|
753
|
+
}
|
|
754
|
+
else if (typeof cb === "function") {
|
|
755
|
+
if (typeof optionsOrCb !== "object")
|
|
756
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
757
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
758
|
+
}
|
|
759
|
+
else {
|
|
760
|
+
return this.send(command, optionsOrCb);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
460
763
|
stopQueryExecution(args, optionsOrCb, cb) {
|
|
461
764
|
const command = new StopQueryExecutionCommand(args);
|
|
462
765
|
if (typeof optionsOrCb === "function") {
|
|
@@ -485,6 +788,20 @@ export class Athena extends AthenaClient {
|
|
|
485
788
|
return this.send(command, optionsOrCb);
|
|
486
789
|
}
|
|
487
790
|
}
|
|
791
|
+
terminateSession(args, optionsOrCb, cb) {
|
|
792
|
+
const command = new TerminateSessionCommand(args);
|
|
793
|
+
if (typeof optionsOrCb === "function") {
|
|
794
|
+
this.send(command, optionsOrCb);
|
|
795
|
+
}
|
|
796
|
+
else if (typeof cb === "function") {
|
|
797
|
+
if (typeof optionsOrCb !== "object")
|
|
798
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
799
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
800
|
+
}
|
|
801
|
+
else {
|
|
802
|
+
return this.send(command, optionsOrCb);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
488
805
|
untagResource(args, optionsOrCb, cb) {
|
|
489
806
|
const command = new UntagResourceCommand(args);
|
|
490
807
|
if (typeof optionsOrCb === "function") {
|
|
@@ -527,6 +844,34 @@ export class Athena extends AthenaClient {
|
|
|
527
844
|
return this.send(command, optionsOrCb);
|
|
528
845
|
}
|
|
529
846
|
}
|
|
847
|
+
updateNotebook(args, optionsOrCb, cb) {
|
|
848
|
+
const command = new UpdateNotebookCommand(args);
|
|
849
|
+
if (typeof optionsOrCb === "function") {
|
|
850
|
+
this.send(command, optionsOrCb);
|
|
851
|
+
}
|
|
852
|
+
else if (typeof cb === "function") {
|
|
853
|
+
if (typeof optionsOrCb !== "object")
|
|
854
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
855
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
856
|
+
}
|
|
857
|
+
else {
|
|
858
|
+
return this.send(command, optionsOrCb);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
updateNotebookMetadata(args, optionsOrCb, cb) {
|
|
862
|
+
const command = new UpdateNotebookMetadataCommand(args);
|
|
863
|
+
if (typeof optionsOrCb === "function") {
|
|
864
|
+
this.send(command, optionsOrCb);
|
|
865
|
+
}
|
|
866
|
+
else if (typeof cb === "function") {
|
|
867
|
+
if (typeof optionsOrCb !== "object")
|
|
868
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
869
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
870
|
+
}
|
|
871
|
+
else {
|
|
872
|
+
return this.send(command, optionsOrCb);
|
|
873
|
+
}
|
|
874
|
+
}
|
|
530
875
|
updatePreparedStatement(args, optionsOrCb, cb) {
|
|
531
876
|
const command = new UpdatePreparedStatementCommand(args);
|
|
532
877
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateNotebookInputFilterSensitiveLog, CreateNotebookOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreateNotebookCommand, serializeAws_json1_1CreateNotebookCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class CreateNotebookCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateNotebookCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "AthenaClient";
|
|
25
|
+
const commandName = "CreateNotebookCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateNotebookInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateNotebookOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1CreateNotebookCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1CreateNotebookCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreatePresignedNotebookUrlRequestFilterSensitiveLog, CreatePresignedNotebookUrlResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreatePresignedNotebookUrlCommand, serializeAws_json1_1CreatePresignedNotebookUrlCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class CreatePresignedNotebookUrlCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreatePresignedNotebookUrlCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "AthenaClient";
|
|
25
|
+
const commandName = "CreatePresignedNotebookUrlCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreatePresignedNotebookUrlRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreatePresignedNotebookUrlResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1CreatePresignedNotebookUrlCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1CreatePresignedNotebookUrlCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteNotebookInputFilterSensitiveLog, DeleteNotebookOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DeleteNotebookCommand, serializeAws_json1_1DeleteNotebookCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class DeleteNotebookCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteNotebookCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "AthenaClient";
|
|
25
|
+
const commandName = "DeleteNotebookCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteNotebookInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DeleteNotebookOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1DeleteNotebookCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1DeleteNotebookCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ExportNotebookInputFilterSensitiveLog, ExportNotebookOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ExportNotebookCommand, serializeAws_json1_1ExportNotebookCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class ExportNotebookCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ExportNotebookCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "AthenaClient";
|
|
25
|
+
const commandName = "ExportNotebookCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ExportNotebookInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ExportNotebookOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1ExportNotebookCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1ExportNotebookCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|