@aws-sdk/client-athena 3.218.0 → 3.222.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 +29 -28
package/dist-cjs/Athena.js
CHANGED
|
@@ -7,36 +7,59 @@ const BatchGetPreparedStatementCommand_1 = require("./commands/BatchGetPreparedS
|
|
|
7
7
|
const BatchGetQueryExecutionCommand_1 = require("./commands/BatchGetQueryExecutionCommand");
|
|
8
8
|
const CreateDataCatalogCommand_1 = require("./commands/CreateDataCatalogCommand");
|
|
9
9
|
const CreateNamedQueryCommand_1 = require("./commands/CreateNamedQueryCommand");
|
|
10
|
+
const CreateNotebookCommand_1 = require("./commands/CreateNotebookCommand");
|
|
10
11
|
const CreatePreparedStatementCommand_1 = require("./commands/CreatePreparedStatementCommand");
|
|
12
|
+
const CreatePresignedNotebookUrlCommand_1 = require("./commands/CreatePresignedNotebookUrlCommand");
|
|
11
13
|
const CreateWorkGroupCommand_1 = require("./commands/CreateWorkGroupCommand");
|
|
12
14
|
const DeleteDataCatalogCommand_1 = require("./commands/DeleteDataCatalogCommand");
|
|
13
15
|
const DeleteNamedQueryCommand_1 = require("./commands/DeleteNamedQueryCommand");
|
|
16
|
+
const DeleteNotebookCommand_1 = require("./commands/DeleteNotebookCommand");
|
|
14
17
|
const DeletePreparedStatementCommand_1 = require("./commands/DeletePreparedStatementCommand");
|
|
15
18
|
const DeleteWorkGroupCommand_1 = require("./commands/DeleteWorkGroupCommand");
|
|
19
|
+
const ExportNotebookCommand_1 = require("./commands/ExportNotebookCommand");
|
|
20
|
+
const GetCalculationExecutionCodeCommand_1 = require("./commands/GetCalculationExecutionCodeCommand");
|
|
21
|
+
const GetCalculationExecutionCommand_1 = require("./commands/GetCalculationExecutionCommand");
|
|
22
|
+
const GetCalculationExecutionStatusCommand_1 = require("./commands/GetCalculationExecutionStatusCommand");
|
|
16
23
|
const GetDatabaseCommand_1 = require("./commands/GetDatabaseCommand");
|
|
17
24
|
const GetDataCatalogCommand_1 = require("./commands/GetDataCatalogCommand");
|
|
18
25
|
const GetNamedQueryCommand_1 = require("./commands/GetNamedQueryCommand");
|
|
26
|
+
const GetNotebookMetadataCommand_1 = require("./commands/GetNotebookMetadataCommand");
|
|
19
27
|
const GetPreparedStatementCommand_1 = require("./commands/GetPreparedStatementCommand");
|
|
20
28
|
const GetQueryExecutionCommand_1 = require("./commands/GetQueryExecutionCommand");
|
|
21
29
|
const GetQueryResultsCommand_1 = require("./commands/GetQueryResultsCommand");
|
|
22
30
|
const GetQueryRuntimeStatisticsCommand_1 = require("./commands/GetQueryRuntimeStatisticsCommand");
|
|
31
|
+
const GetSessionCommand_1 = require("./commands/GetSessionCommand");
|
|
32
|
+
const GetSessionStatusCommand_1 = require("./commands/GetSessionStatusCommand");
|
|
23
33
|
const GetTableMetadataCommand_1 = require("./commands/GetTableMetadataCommand");
|
|
24
34
|
const GetWorkGroupCommand_1 = require("./commands/GetWorkGroupCommand");
|
|
35
|
+
const ImportNotebookCommand_1 = require("./commands/ImportNotebookCommand");
|
|
36
|
+
const ListApplicationDPUSizesCommand_1 = require("./commands/ListApplicationDPUSizesCommand");
|
|
37
|
+
const ListCalculationExecutionsCommand_1 = require("./commands/ListCalculationExecutionsCommand");
|
|
25
38
|
const ListDatabasesCommand_1 = require("./commands/ListDatabasesCommand");
|
|
26
39
|
const ListDataCatalogsCommand_1 = require("./commands/ListDataCatalogsCommand");
|
|
27
40
|
const ListEngineVersionsCommand_1 = require("./commands/ListEngineVersionsCommand");
|
|
41
|
+
const ListExecutorsCommand_1 = require("./commands/ListExecutorsCommand");
|
|
28
42
|
const ListNamedQueriesCommand_1 = require("./commands/ListNamedQueriesCommand");
|
|
43
|
+
const ListNotebookMetadataCommand_1 = require("./commands/ListNotebookMetadataCommand");
|
|
44
|
+
const ListNotebookSessionsCommand_1 = require("./commands/ListNotebookSessionsCommand");
|
|
29
45
|
const ListPreparedStatementsCommand_1 = require("./commands/ListPreparedStatementsCommand");
|
|
30
46
|
const ListQueryExecutionsCommand_1 = require("./commands/ListQueryExecutionsCommand");
|
|
47
|
+
const ListSessionsCommand_1 = require("./commands/ListSessionsCommand");
|
|
31
48
|
const ListTableMetadataCommand_1 = require("./commands/ListTableMetadataCommand");
|
|
32
49
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
33
50
|
const ListWorkGroupsCommand_1 = require("./commands/ListWorkGroupsCommand");
|
|
51
|
+
const StartCalculationExecutionCommand_1 = require("./commands/StartCalculationExecutionCommand");
|
|
34
52
|
const StartQueryExecutionCommand_1 = require("./commands/StartQueryExecutionCommand");
|
|
53
|
+
const StartSessionCommand_1 = require("./commands/StartSessionCommand");
|
|
54
|
+
const StopCalculationExecutionCommand_1 = require("./commands/StopCalculationExecutionCommand");
|
|
35
55
|
const StopQueryExecutionCommand_1 = require("./commands/StopQueryExecutionCommand");
|
|
36
56
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
57
|
+
const TerminateSessionCommand_1 = require("./commands/TerminateSessionCommand");
|
|
37
58
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
38
59
|
const UpdateDataCatalogCommand_1 = require("./commands/UpdateDataCatalogCommand");
|
|
39
60
|
const UpdateNamedQueryCommand_1 = require("./commands/UpdateNamedQueryCommand");
|
|
61
|
+
const UpdateNotebookCommand_1 = require("./commands/UpdateNotebookCommand");
|
|
62
|
+
const UpdateNotebookMetadataCommand_1 = require("./commands/UpdateNotebookMetadataCommand");
|
|
40
63
|
const UpdatePreparedStatementCommand_1 = require("./commands/UpdatePreparedStatementCommand");
|
|
41
64
|
const UpdateWorkGroupCommand_1 = require("./commands/UpdateWorkGroupCommand");
|
|
42
65
|
class Athena extends AthenaClient_1.AthenaClient {
|
|
@@ -110,6 +133,20 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
110
133
|
return this.send(command, optionsOrCb);
|
|
111
134
|
}
|
|
112
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
|
+
}
|
|
113
150
|
createPreparedStatement(args, optionsOrCb, cb) {
|
|
114
151
|
const command = new CreatePreparedStatementCommand_1.CreatePreparedStatementCommand(args);
|
|
115
152
|
if (typeof optionsOrCb === "function") {
|
|
@@ -124,6 +161,20 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
124
161
|
return this.send(command, optionsOrCb);
|
|
125
162
|
}
|
|
126
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
|
+
}
|
|
127
178
|
createWorkGroup(args, optionsOrCb, cb) {
|
|
128
179
|
const command = new CreateWorkGroupCommand_1.CreateWorkGroupCommand(args);
|
|
129
180
|
if (typeof optionsOrCb === "function") {
|
|
@@ -166,6 +217,20 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
166
217
|
return this.send(command, optionsOrCb);
|
|
167
218
|
}
|
|
168
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
|
+
}
|
|
169
234
|
deletePreparedStatement(args, optionsOrCb, cb) {
|
|
170
235
|
const command = new DeletePreparedStatementCommand_1.DeletePreparedStatementCommand(args);
|
|
171
236
|
if (typeof optionsOrCb === "function") {
|
|
@@ -194,6 +259,62 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
194
259
|
return this.send(command, optionsOrCb);
|
|
195
260
|
}
|
|
196
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
|
+
}
|
|
197
318
|
getDatabase(args, optionsOrCb, cb) {
|
|
198
319
|
const command = new GetDatabaseCommand_1.GetDatabaseCommand(args);
|
|
199
320
|
if (typeof optionsOrCb === "function") {
|
|
@@ -236,6 +357,20 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
236
357
|
return this.send(command, optionsOrCb);
|
|
237
358
|
}
|
|
238
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
|
+
}
|
|
239
374
|
getPreparedStatement(args, optionsOrCb, cb) {
|
|
240
375
|
const command = new GetPreparedStatementCommand_1.GetPreparedStatementCommand(args);
|
|
241
376
|
if (typeof optionsOrCb === "function") {
|
|
@@ -292,6 +427,34 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
292
427
|
return this.send(command, optionsOrCb);
|
|
293
428
|
}
|
|
294
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
|
+
}
|
|
295
458
|
getTableMetadata(args, optionsOrCb, cb) {
|
|
296
459
|
const command = new GetTableMetadataCommand_1.GetTableMetadataCommand(args);
|
|
297
460
|
if (typeof optionsOrCb === "function") {
|
|
@@ -320,6 +483,48 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
320
483
|
return this.send(command, optionsOrCb);
|
|
321
484
|
}
|
|
322
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
|
+
}
|
|
323
528
|
listDatabases(args, optionsOrCb, cb) {
|
|
324
529
|
const command = new ListDatabasesCommand_1.ListDatabasesCommand(args);
|
|
325
530
|
if (typeof optionsOrCb === "function") {
|
|
@@ -362,6 +567,20 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
362
567
|
return this.send(command, optionsOrCb);
|
|
363
568
|
}
|
|
364
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
|
+
}
|
|
365
584
|
listNamedQueries(args, optionsOrCb, cb) {
|
|
366
585
|
const command = new ListNamedQueriesCommand_1.ListNamedQueriesCommand(args);
|
|
367
586
|
if (typeof optionsOrCb === "function") {
|
|
@@ -376,6 +595,34 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
376
595
|
return this.send(command, optionsOrCb);
|
|
377
596
|
}
|
|
378
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
|
+
}
|
|
379
626
|
listPreparedStatements(args, optionsOrCb, cb) {
|
|
380
627
|
const command = new ListPreparedStatementsCommand_1.ListPreparedStatementsCommand(args);
|
|
381
628
|
if (typeof optionsOrCb === "function") {
|
|
@@ -404,6 +651,20 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
404
651
|
return this.send(command, optionsOrCb);
|
|
405
652
|
}
|
|
406
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
|
+
}
|
|
407
668
|
listTableMetadata(args, optionsOrCb, cb) {
|
|
408
669
|
const command = new ListTableMetadataCommand_1.ListTableMetadataCommand(args);
|
|
409
670
|
if (typeof optionsOrCb === "function") {
|
|
@@ -446,6 +707,20 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
446
707
|
return this.send(command, optionsOrCb);
|
|
447
708
|
}
|
|
448
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
|
+
}
|
|
449
724
|
startQueryExecution(args, optionsOrCb, cb) {
|
|
450
725
|
const command = new StartQueryExecutionCommand_1.StartQueryExecutionCommand(args);
|
|
451
726
|
if (typeof optionsOrCb === "function") {
|
|
@@ -460,6 +735,34 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
460
735
|
return this.send(command, optionsOrCb);
|
|
461
736
|
}
|
|
462
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
|
+
}
|
|
463
766
|
stopQueryExecution(args, optionsOrCb, cb) {
|
|
464
767
|
const command = new StopQueryExecutionCommand_1.StopQueryExecutionCommand(args);
|
|
465
768
|
if (typeof optionsOrCb === "function") {
|
|
@@ -488,6 +791,20 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
488
791
|
return this.send(command, optionsOrCb);
|
|
489
792
|
}
|
|
490
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
|
+
}
|
|
491
808
|
untagResource(args, optionsOrCb, cb) {
|
|
492
809
|
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
493
810
|
if (typeof optionsOrCb === "function") {
|
|
@@ -530,6 +847,34 @@ class Athena extends AthenaClient_1.AthenaClient {
|
|
|
530
847
|
return this.send(command, optionsOrCb);
|
|
531
848
|
}
|
|
532
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
|
+
}
|
|
533
878
|
updatePreparedStatement(args, optionsOrCb, cb) {
|
|
534
879
|
const command = new UpdatePreparedStatementCommand_1.UpdatePreparedStatementCommand(args);
|
|
535
880
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateNotebookCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class CreateNotebookCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateNotebookCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AthenaClient";
|
|
28
|
+
const commandName = "CreateNotebookCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateNotebookInputFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateNotebookOutputFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1CreateNotebookCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1CreateNotebookCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateNotebookCommand = CreateNotebookCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePresignedNotebookUrlCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class CreatePresignedNotebookUrlCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreatePresignedNotebookUrlCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AthenaClient";
|
|
28
|
+
const commandName = "CreatePresignedNotebookUrlCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreatePresignedNotebookUrlRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreatePresignedNotebookUrlResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1CreatePresignedNotebookUrlCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1CreatePresignedNotebookUrlCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreatePresignedNotebookUrlCommand = CreatePresignedNotebookUrlCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteNotebookCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class DeleteNotebookCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteNotebookCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AthenaClient";
|
|
28
|
+
const commandName = "DeleteNotebookCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteNotebookInputFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteNotebookOutputFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1DeleteNotebookCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteNotebookCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteNotebookCommand = DeleteNotebookCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExportNotebookCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class ExportNotebookCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ExportNotebookCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AthenaClient";
|
|
28
|
+
const commandName = "ExportNotebookCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ExportNotebookInputFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ExportNotebookOutputFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ExportNotebookCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ExportNotebookCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ExportNotebookCommand = ExportNotebookCommand;
|