@aws-sdk/client-athena 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +558 -2149
- package/dist-es/protocols/Aws_json1_1.js +559 -2150
- package/package.json +6 -6
|
@@ -9,602 +9,422 @@ const uuid_1 = require("uuid");
|
|
|
9
9
|
const AthenaServiceException_1 = require("../models/AthenaServiceException");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const se_BatchGetNamedQueryCommand = async (input, context) => {
|
|
12
|
-
const headers =
|
|
13
|
-
"content-type": "application/x-amz-json-1.1",
|
|
14
|
-
"x-amz-target": "AmazonAthena.BatchGetNamedQuery",
|
|
15
|
-
};
|
|
12
|
+
const headers = sharedHeaders("BatchGetNamedQuery");
|
|
16
13
|
let body;
|
|
17
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
18
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
19
16
|
};
|
|
20
17
|
exports.se_BatchGetNamedQueryCommand = se_BatchGetNamedQueryCommand;
|
|
21
18
|
const se_BatchGetPreparedStatementCommand = async (input, context) => {
|
|
22
|
-
const headers =
|
|
23
|
-
"content-type": "application/x-amz-json-1.1",
|
|
24
|
-
"x-amz-target": "AmazonAthena.BatchGetPreparedStatement",
|
|
25
|
-
};
|
|
19
|
+
const headers = sharedHeaders("BatchGetPreparedStatement");
|
|
26
20
|
let body;
|
|
27
|
-
body = JSON.stringify(
|
|
21
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
23
|
};
|
|
30
24
|
exports.se_BatchGetPreparedStatementCommand = se_BatchGetPreparedStatementCommand;
|
|
31
25
|
const se_BatchGetQueryExecutionCommand = async (input, context) => {
|
|
32
|
-
const headers =
|
|
33
|
-
"content-type": "application/x-amz-json-1.1",
|
|
34
|
-
"x-amz-target": "AmazonAthena.BatchGetQueryExecution",
|
|
35
|
-
};
|
|
26
|
+
const headers = sharedHeaders("BatchGetQueryExecution");
|
|
36
27
|
let body;
|
|
37
|
-
body = JSON.stringify(
|
|
28
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
38
29
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
39
30
|
};
|
|
40
31
|
exports.se_BatchGetQueryExecutionCommand = se_BatchGetQueryExecutionCommand;
|
|
41
32
|
const se_CreateDataCatalogCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AmazonAthena.CreateDataCatalog",
|
|
45
|
-
};
|
|
33
|
+
const headers = sharedHeaders("CreateDataCatalog");
|
|
46
34
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
35
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
37
|
};
|
|
50
38
|
exports.se_CreateDataCatalogCommand = se_CreateDataCatalogCommand;
|
|
51
39
|
const se_CreateNamedQueryCommand = async (input, context) => {
|
|
52
|
-
const headers =
|
|
53
|
-
"content-type": "application/x-amz-json-1.1",
|
|
54
|
-
"x-amz-target": "AmazonAthena.CreateNamedQuery",
|
|
55
|
-
};
|
|
40
|
+
const headers = sharedHeaders("CreateNamedQuery");
|
|
56
41
|
let body;
|
|
57
42
|
body = JSON.stringify(se_CreateNamedQueryInput(input, context));
|
|
58
43
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
44
|
};
|
|
60
45
|
exports.se_CreateNamedQueryCommand = se_CreateNamedQueryCommand;
|
|
61
46
|
const se_CreateNotebookCommand = async (input, context) => {
|
|
62
|
-
const headers =
|
|
63
|
-
"content-type": "application/x-amz-json-1.1",
|
|
64
|
-
"x-amz-target": "AmazonAthena.CreateNotebook",
|
|
65
|
-
};
|
|
47
|
+
const headers = sharedHeaders("CreateNotebook");
|
|
66
48
|
let body;
|
|
67
|
-
body = JSON.stringify(
|
|
49
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
50
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
51
|
};
|
|
70
52
|
exports.se_CreateNotebookCommand = se_CreateNotebookCommand;
|
|
71
53
|
const se_CreatePreparedStatementCommand = async (input, context) => {
|
|
72
|
-
const headers =
|
|
73
|
-
"content-type": "application/x-amz-json-1.1",
|
|
74
|
-
"x-amz-target": "AmazonAthena.CreatePreparedStatement",
|
|
75
|
-
};
|
|
54
|
+
const headers = sharedHeaders("CreatePreparedStatement");
|
|
76
55
|
let body;
|
|
77
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
78
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
58
|
};
|
|
80
59
|
exports.se_CreatePreparedStatementCommand = se_CreatePreparedStatementCommand;
|
|
81
60
|
const se_CreatePresignedNotebookUrlCommand = async (input, context) => {
|
|
82
|
-
const headers =
|
|
83
|
-
"content-type": "application/x-amz-json-1.1",
|
|
84
|
-
"x-amz-target": "AmazonAthena.CreatePresignedNotebookUrl",
|
|
85
|
-
};
|
|
61
|
+
const headers = sharedHeaders("CreatePresignedNotebookUrl");
|
|
86
62
|
let body;
|
|
87
|
-
body = JSON.stringify(
|
|
63
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
88
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
65
|
};
|
|
90
66
|
exports.se_CreatePresignedNotebookUrlCommand = se_CreatePresignedNotebookUrlCommand;
|
|
91
67
|
const se_CreateWorkGroupCommand = async (input, context) => {
|
|
92
|
-
const headers =
|
|
93
|
-
"content-type": "application/x-amz-json-1.1",
|
|
94
|
-
"x-amz-target": "AmazonAthena.CreateWorkGroup",
|
|
95
|
-
};
|
|
68
|
+
const headers = sharedHeaders("CreateWorkGroup");
|
|
96
69
|
let body;
|
|
97
|
-
body = JSON.stringify(
|
|
70
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
71
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
72
|
};
|
|
100
73
|
exports.se_CreateWorkGroupCommand = se_CreateWorkGroupCommand;
|
|
101
74
|
const se_DeleteDataCatalogCommand = async (input, context) => {
|
|
102
|
-
const headers =
|
|
103
|
-
"content-type": "application/x-amz-json-1.1",
|
|
104
|
-
"x-amz-target": "AmazonAthena.DeleteDataCatalog",
|
|
105
|
-
};
|
|
75
|
+
const headers = sharedHeaders("DeleteDataCatalog");
|
|
106
76
|
let body;
|
|
107
|
-
body = JSON.stringify(
|
|
77
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
108
78
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
109
79
|
};
|
|
110
80
|
exports.se_DeleteDataCatalogCommand = se_DeleteDataCatalogCommand;
|
|
111
81
|
const se_DeleteNamedQueryCommand = async (input, context) => {
|
|
112
|
-
const headers =
|
|
113
|
-
"content-type": "application/x-amz-json-1.1",
|
|
114
|
-
"x-amz-target": "AmazonAthena.DeleteNamedQuery",
|
|
115
|
-
};
|
|
82
|
+
const headers = sharedHeaders("DeleteNamedQuery");
|
|
116
83
|
let body;
|
|
117
84
|
body = JSON.stringify(se_DeleteNamedQueryInput(input, context));
|
|
118
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
86
|
};
|
|
120
87
|
exports.se_DeleteNamedQueryCommand = se_DeleteNamedQueryCommand;
|
|
121
88
|
const se_DeleteNotebookCommand = async (input, context) => {
|
|
122
|
-
const headers =
|
|
123
|
-
"content-type": "application/x-amz-json-1.1",
|
|
124
|
-
"x-amz-target": "AmazonAthena.DeleteNotebook",
|
|
125
|
-
};
|
|
89
|
+
const headers = sharedHeaders("DeleteNotebook");
|
|
126
90
|
let body;
|
|
127
|
-
body = JSON.stringify(
|
|
91
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
128
92
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
129
93
|
};
|
|
130
94
|
exports.se_DeleteNotebookCommand = se_DeleteNotebookCommand;
|
|
131
95
|
const se_DeletePreparedStatementCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "AmazonAthena.DeletePreparedStatement",
|
|
135
|
-
};
|
|
96
|
+
const headers = sharedHeaders("DeletePreparedStatement");
|
|
136
97
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
138
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
100
|
};
|
|
140
101
|
exports.se_DeletePreparedStatementCommand = se_DeletePreparedStatementCommand;
|
|
141
102
|
const se_DeleteWorkGroupCommand = async (input, context) => {
|
|
142
|
-
const headers =
|
|
143
|
-
"content-type": "application/x-amz-json-1.1",
|
|
144
|
-
"x-amz-target": "AmazonAthena.DeleteWorkGroup",
|
|
145
|
-
};
|
|
103
|
+
const headers = sharedHeaders("DeleteWorkGroup");
|
|
146
104
|
let body;
|
|
147
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
148
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
107
|
};
|
|
150
108
|
exports.se_DeleteWorkGroupCommand = se_DeleteWorkGroupCommand;
|
|
151
109
|
const se_ExportNotebookCommand = async (input, context) => {
|
|
152
|
-
const headers =
|
|
153
|
-
"content-type": "application/x-amz-json-1.1",
|
|
154
|
-
"x-amz-target": "AmazonAthena.ExportNotebook",
|
|
155
|
-
};
|
|
110
|
+
const headers = sharedHeaders("ExportNotebook");
|
|
156
111
|
let body;
|
|
157
|
-
body = JSON.stringify(
|
|
112
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
158
113
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
159
114
|
};
|
|
160
115
|
exports.se_ExportNotebookCommand = se_ExportNotebookCommand;
|
|
161
116
|
const se_GetCalculationExecutionCommand = async (input, context) => {
|
|
162
|
-
const headers =
|
|
163
|
-
"content-type": "application/x-amz-json-1.1",
|
|
164
|
-
"x-amz-target": "AmazonAthena.GetCalculationExecution",
|
|
165
|
-
};
|
|
117
|
+
const headers = sharedHeaders("GetCalculationExecution");
|
|
166
118
|
let body;
|
|
167
|
-
body = JSON.stringify(
|
|
119
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
168
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
121
|
};
|
|
170
122
|
exports.se_GetCalculationExecutionCommand = se_GetCalculationExecutionCommand;
|
|
171
123
|
const se_GetCalculationExecutionCodeCommand = async (input, context) => {
|
|
172
|
-
const headers =
|
|
173
|
-
"content-type": "application/x-amz-json-1.1",
|
|
174
|
-
"x-amz-target": "AmazonAthena.GetCalculationExecutionCode",
|
|
175
|
-
};
|
|
124
|
+
const headers = sharedHeaders("GetCalculationExecutionCode");
|
|
176
125
|
let body;
|
|
177
|
-
body = JSON.stringify(
|
|
126
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
178
127
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
128
|
};
|
|
180
129
|
exports.se_GetCalculationExecutionCodeCommand = se_GetCalculationExecutionCodeCommand;
|
|
181
130
|
const se_GetCalculationExecutionStatusCommand = async (input, context) => {
|
|
182
|
-
const headers =
|
|
183
|
-
"content-type": "application/x-amz-json-1.1",
|
|
184
|
-
"x-amz-target": "AmazonAthena.GetCalculationExecutionStatus",
|
|
185
|
-
};
|
|
131
|
+
const headers = sharedHeaders("GetCalculationExecutionStatus");
|
|
186
132
|
let body;
|
|
187
|
-
body = JSON.stringify(
|
|
133
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
188
134
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
135
|
};
|
|
190
136
|
exports.se_GetCalculationExecutionStatusCommand = se_GetCalculationExecutionStatusCommand;
|
|
191
137
|
const se_GetDatabaseCommand = async (input, context) => {
|
|
192
|
-
const headers =
|
|
193
|
-
"content-type": "application/x-amz-json-1.1",
|
|
194
|
-
"x-amz-target": "AmazonAthena.GetDatabase",
|
|
195
|
-
};
|
|
138
|
+
const headers = sharedHeaders("GetDatabase");
|
|
196
139
|
let body;
|
|
197
|
-
body = JSON.stringify(
|
|
140
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
198
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
199
142
|
};
|
|
200
143
|
exports.se_GetDatabaseCommand = se_GetDatabaseCommand;
|
|
201
144
|
const se_GetDataCatalogCommand = async (input, context) => {
|
|
202
|
-
const headers =
|
|
203
|
-
"content-type": "application/x-amz-json-1.1",
|
|
204
|
-
"x-amz-target": "AmazonAthena.GetDataCatalog",
|
|
205
|
-
};
|
|
145
|
+
const headers = sharedHeaders("GetDataCatalog");
|
|
206
146
|
let body;
|
|
207
|
-
body = JSON.stringify(
|
|
147
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
208
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
149
|
};
|
|
210
150
|
exports.se_GetDataCatalogCommand = se_GetDataCatalogCommand;
|
|
211
151
|
const se_GetNamedQueryCommand = async (input, context) => {
|
|
212
|
-
const headers =
|
|
213
|
-
"content-type": "application/x-amz-json-1.1",
|
|
214
|
-
"x-amz-target": "AmazonAthena.GetNamedQuery",
|
|
215
|
-
};
|
|
152
|
+
const headers = sharedHeaders("GetNamedQuery");
|
|
216
153
|
let body;
|
|
217
|
-
body = JSON.stringify(
|
|
154
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
218
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
156
|
};
|
|
220
157
|
exports.se_GetNamedQueryCommand = se_GetNamedQueryCommand;
|
|
221
158
|
const se_GetNotebookMetadataCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.1",
|
|
224
|
-
"x-amz-target": "AmazonAthena.GetNotebookMetadata",
|
|
225
|
-
};
|
|
159
|
+
const headers = sharedHeaders("GetNotebookMetadata");
|
|
226
160
|
let body;
|
|
227
|
-
body = JSON.stringify(
|
|
161
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
228
162
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
163
|
};
|
|
230
164
|
exports.se_GetNotebookMetadataCommand = se_GetNotebookMetadataCommand;
|
|
231
165
|
const se_GetPreparedStatementCommand = async (input, context) => {
|
|
232
|
-
const headers =
|
|
233
|
-
"content-type": "application/x-amz-json-1.1",
|
|
234
|
-
"x-amz-target": "AmazonAthena.GetPreparedStatement",
|
|
235
|
-
};
|
|
166
|
+
const headers = sharedHeaders("GetPreparedStatement");
|
|
236
167
|
let body;
|
|
237
|
-
body = JSON.stringify(
|
|
168
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
238
169
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
170
|
};
|
|
240
171
|
exports.se_GetPreparedStatementCommand = se_GetPreparedStatementCommand;
|
|
241
172
|
const se_GetQueryExecutionCommand = async (input, context) => {
|
|
242
|
-
const headers =
|
|
243
|
-
"content-type": "application/x-amz-json-1.1",
|
|
244
|
-
"x-amz-target": "AmazonAthena.GetQueryExecution",
|
|
245
|
-
};
|
|
173
|
+
const headers = sharedHeaders("GetQueryExecution");
|
|
246
174
|
let body;
|
|
247
|
-
body = JSON.stringify(
|
|
175
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
248
176
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
249
177
|
};
|
|
250
178
|
exports.se_GetQueryExecutionCommand = se_GetQueryExecutionCommand;
|
|
251
179
|
const se_GetQueryResultsCommand = async (input, context) => {
|
|
252
|
-
const headers =
|
|
253
|
-
"content-type": "application/x-amz-json-1.1",
|
|
254
|
-
"x-amz-target": "AmazonAthena.GetQueryResults",
|
|
255
|
-
};
|
|
180
|
+
const headers = sharedHeaders("GetQueryResults");
|
|
256
181
|
let body;
|
|
257
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
258
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
184
|
};
|
|
260
185
|
exports.se_GetQueryResultsCommand = se_GetQueryResultsCommand;
|
|
261
186
|
const se_GetQueryRuntimeStatisticsCommand = async (input, context) => {
|
|
262
|
-
const headers =
|
|
263
|
-
"content-type": "application/x-amz-json-1.1",
|
|
264
|
-
"x-amz-target": "AmazonAthena.GetQueryRuntimeStatistics",
|
|
265
|
-
};
|
|
187
|
+
const headers = sharedHeaders("GetQueryRuntimeStatistics");
|
|
266
188
|
let body;
|
|
267
|
-
body = JSON.stringify(
|
|
189
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
268
190
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
191
|
};
|
|
270
192
|
exports.se_GetQueryRuntimeStatisticsCommand = se_GetQueryRuntimeStatisticsCommand;
|
|
271
193
|
const se_GetSessionCommand = async (input, context) => {
|
|
272
|
-
const headers =
|
|
273
|
-
"content-type": "application/x-amz-json-1.1",
|
|
274
|
-
"x-amz-target": "AmazonAthena.GetSession",
|
|
275
|
-
};
|
|
194
|
+
const headers = sharedHeaders("GetSession");
|
|
276
195
|
let body;
|
|
277
|
-
body = JSON.stringify(
|
|
196
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
278
197
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
279
198
|
};
|
|
280
199
|
exports.se_GetSessionCommand = se_GetSessionCommand;
|
|
281
200
|
const se_GetSessionStatusCommand = async (input, context) => {
|
|
282
|
-
const headers =
|
|
283
|
-
"content-type": "application/x-amz-json-1.1",
|
|
284
|
-
"x-amz-target": "AmazonAthena.GetSessionStatus",
|
|
285
|
-
};
|
|
201
|
+
const headers = sharedHeaders("GetSessionStatus");
|
|
286
202
|
let body;
|
|
287
|
-
body = JSON.stringify(
|
|
203
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
204
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
205
|
};
|
|
290
206
|
exports.se_GetSessionStatusCommand = se_GetSessionStatusCommand;
|
|
291
207
|
const se_GetTableMetadataCommand = async (input, context) => {
|
|
292
|
-
const headers =
|
|
293
|
-
"content-type": "application/x-amz-json-1.1",
|
|
294
|
-
"x-amz-target": "AmazonAthena.GetTableMetadata",
|
|
295
|
-
};
|
|
208
|
+
const headers = sharedHeaders("GetTableMetadata");
|
|
296
209
|
let body;
|
|
297
|
-
body = JSON.stringify(
|
|
210
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
298
211
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
212
|
};
|
|
300
213
|
exports.se_GetTableMetadataCommand = se_GetTableMetadataCommand;
|
|
301
214
|
const se_GetWorkGroupCommand = async (input, context) => {
|
|
302
|
-
const headers =
|
|
303
|
-
"content-type": "application/x-amz-json-1.1",
|
|
304
|
-
"x-amz-target": "AmazonAthena.GetWorkGroup",
|
|
305
|
-
};
|
|
215
|
+
const headers = sharedHeaders("GetWorkGroup");
|
|
306
216
|
let body;
|
|
307
|
-
body = JSON.stringify(
|
|
217
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
308
218
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
309
219
|
};
|
|
310
220
|
exports.se_GetWorkGroupCommand = se_GetWorkGroupCommand;
|
|
311
221
|
const se_ImportNotebookCommand = async (input, context) => {
|
|
312
|
-
const headers =
|
|
313
|
-
"content-type": "application/x-amz-json-1.1",
|
|
314
|
-
"x-amz-target": "AmazonAthena.ImportNotebook",
|
|
315
|
-
};
|
|
222
|
+
const headers = sharedHeaders("ImportNotebook");
|
|
316
223
|
let body;
|
|
317
|
-
body = JSON.stringify(
|
|
224
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
318
225
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
226
|
};
|
|
320
227
|
exports.se_ImportNotebookCommand = se_ImportNotebookCommand;
|
|
321
228
|
const se_ListApplicationDPUSizesCommand = async (input, context) => {
|
|
322
|
-
const headers =
|
|
323
|
-
"content-type": "application/x-amz-json-1.1",
|
|
324
|
-
"x-amz-target": "AmazonAthena.ListApplicationDPUSizes",
|
|
325
|
-
};
|
|
229
|
+
const headers = sharedHeaders("ListApplicationDPUSizes");
|
|
326
230
|
let body;
|
|
327
|
-
body = JSON.stringify(
|
|
231
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
328
232
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
233
|
};
|
|
330
234
|
exports.se_ListApplicationDPUSizesCommand = se_ListApplicationDPUSizesCommand;
|
|
331
235
|
const se_ListCalculationExecutionsCommand = async (input, context) => {
|
|
332
|
-
const headers =
|
|
333
|
-
"content-type": "application/x-amz-json-1.1",
|
|
334
|
-
"x-amz-target": "AmazonAthena.ListCalculationExecutions",
|
|
335
|
-
};
|
|
236
|
+
const headers = sharedHeaders("ListCalculationExecutions");
|
|
336
237
|
let body;
|
|
337
|
-
body = JSON.stringify(
|
|
238
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
338
239
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
339
240
|
};
|
|
340
241
|
exports.se_ListCalculationExecutionsCommand = se_ListCalculationExecutionsCommand;
|
|
341
242
|
const se_ListDatabasesCommand = async (input, context) => {
|
|
342
|
-
const headers =
|
|
343
|
-
"content-type": "application/x-amz-json-1.1",
|
|
344
|
-
"x-amz-target": "AmazonAthena.ListDatabases",
|
|
345
|
-
};
|
|
243
|
+
const headers = sharedHeaders("ListDatabases");
|
|
346
244
|
let body;
|
|
347
|
-
body = JSON.stringify(
|
|
245
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
348
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
349
247
|
};
|
|
350
248
|
exports.se_ListDatabasesCommand = se_ListDatabasesCommand;
|
|
351
249
|
const se_ListDataCatalogsCommand = async (input, context) => {
|
|
352
|
-
const headers =
|
|
353
|
-
"content-type": "application/x-amz-json-1.1",
|
|
354
|
-
"x-amz-target": "AmazonAthena.ListDataCatalogs",
|
|
355
|
-
};
|
|
250
|
+
const headers = sharedHeaders("ListDataCatalogs");
|
|
356
251
|
let body;
|
|
357
|
-
body = JSON.stringify(
|
|
252
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
253
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
254
|
};
|
|
360
255
|
exports.se_ListDataCatalogsCommand = se_ListDataCatalogsCommand;
|
|
361
256
|
const se_ListEngineVersionsCommand = async (input, context) => {
|
|
362
|
-
const headers =
|
|
363
|
-
"content-type": "application/x-amz-json-1.1",
|
|
364
|
-
"x-amz-target": "AmazonAthena.ListEngineVersions",
|
|
365
|
-
};
|
|
257
|
+
const headers = sharedHeaders("ListEngineVersions");
|
|
366
258
|
let body;
|
|
367
|
-
body = JSON.stringify(
|
|
259
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
368
260
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
369
261
|
};
|
|
370
262
|
exports.se_ListEngineVersionsCommand = se_ListEngineVersionsCommand;
|
|
371
263
|
const se_ListExecutorsCommand = async (input, context) => {
|
|
372
|
-
const headers =
|
|
373
|
-
"content-type": "application/x-amz-json-1.1",
|
|
374
|
-
"x-amz-target": "AmazonAthena.ListExecutors",
|
|
375
|
-
};
|
|
264
|
+
const headers = sharedHeaders("ListExecutors");
|
|
376
265
|
let body;
|
|
377
|
-
body = JSON.stringify(
|
|
266
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
378
267
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
379
268
|
};
|
|
380
269
|
exports.se_ListExecutorsCommand = se_ListExecutorsCommand;
|
|
381
270
|
const se_ListNamedQueriesCommand = async (input, context) => {
|
|
382
|
-
const headers =
|
|
383
|
-
"content-type": "application/x-amz-json-1.1",
|
|
384
|
-
"x-amz-target": "AmazonAthena.ListNamedQueries",
|
|
385
|
-
};
|
|
271
|
+
const headers = sharedHeaders("ListNamedQueries");
|
|
386
272
|
let body;
|
|
387
|
-
body = JSON.stringify(
|
|
273
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
388
274
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
389
275
|
};
|
|
390
276
|
exports.se_ListNamedQueriesCommand = se_ListNamedQueriesCommand;
|
|
391
277
|
const se_ListNotebookMetadataCommand = async (input, context) => {
|
|
392
|
-
const headers =
|
|
393
|
-
"content-type": "application/x-amz-json-1.1",
|
|
394
|
-
"x-amz-target": "AmazonAthena.ListNotebookMetadata",
|
|
395
|
-
};
|
|
278
|
+
const headers = sharedHeaders("ListNotebookMetadata");
|
|
396
279
|
let body;
|
|
397
|
-
body = JSON.stringify(
|
|
280
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
398
281
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
399
282
|
};
|
|
400
283
|
exports.se_ListNotebookMetadataCommand = se_ListNotebookMetadataCommand;
|
|
401
284
|
const se_ListNotebookSessionsCommand = async (input, context) => {
|
|
402
|
-
const headers =
|
|
403
|
-
"content-type": "application/x-amz-json-1.1",
|
|
404
|
-
"x-amz-target": "AmazonAthena.ListNotebookSessions",
|
|
405
|
-
};
|
|
285
|
+
const headers = sharedHeaders("ListNotebookSessions");
|
|
406
286
|
let body;
|
|
407
|
-
body = JSON.stringify(
|
|
287
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
408
288
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
289
|
};
|
|
410
290
|
exports.se_ListNotebookSessionsCommand = se_ListNotebookSessionsCommand;
|
|
411
291
|
const se_ListPreparedStatementsCommand = async (input, context) => {
|
|
412
|
-
const headers =
|
|
413
|
-
"content-type": "application/x-amz-json-1.1",
|
|
414
|
-
"x-amz-target": "AmazonAthena.ListPreparedStatements",
|
|
415
|
-
};
|
|
292
|
+
const headers = sharedHeaders("ListPreparedStatements");
|
|
416
293
|
let body;
|
|
417
|
-
body = JSON.stringify(
|
|
294
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
418
295
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
419
296
|
};
|
|
420
297
|
exports.se_ListPreparedStatementsCommand = se_ListPreparedStatementsCommand;
|
|
421
298
|
const se_ListQueryExecutionsCommand = async (input, context) => {
|
|
422
|
-
const headers =
|
|
423
|
-
"content-type": "application/x-amz-json-1.1",
|
|
424
|
-
"x-amz-target": "AmazonAthena.ListQueryExecutions",
|
|
425
|
-
};
|
|
299
|
+
const headers = sharedHeaders("ListQueryExecutions");
|
|
426
300
|
let body;
|
|
427
|
-
body = JSON.stringify(
|
|
301
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
428
302
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
303
|
};
|
|
430
304
|
exports.se_ListQueryExecutionsCommand = se_ListQueryExecutionsCommand;
|
|
431
305
|
const se_ListSessionsCommand = async (input, context) => {
|
|
432
|
-
const headers =
|
|
433
|
-
"content-type": "application/x-amz-json-1.1",
|
|
434
|
-
"x-amz-target": "AmazonAthena.ListSessions",
|
|
435
|
-
};
|
|
306
|
+
const headers = sharedHeaders("ListSessions");
|
|
436
307
|
let body;
|
|
437
|
-
body = JSON.stringify(
|
|
308
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
438
309
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
439
310
|
};
|
|
440
311
|
exports.se_ListSessionsCommand = se_ListSessionsCommand;
|
|
441
312
|
const se_ListTableMetadataCommand = async (input, context) => {
|
|
442
|
-
const headers =
|
|
443
|
-
"content-type": "application/x-amz-json-1.1",
|
|
444
|
-
"x-amz-target": "AmazonAthena.ListTableMetadata",
|
|
445
|
-
};
|
|
313
|
+
const headers = sharedHeaders("ListTableMetadata");
|
|
446
314
|
let body;
|
|
447
|
-
body = JSON.stringify(
|
|
315
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
448
316
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
449
317
|
};
|
|
450
318
|
exports.se_ListTableMetadataCommand = se_ListTableMetadataCommand;
|
|
451
319
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
452
|
-
const headers =
|
|
453
|
-
"content-type": "application/x-amz-json-1.1",
|
|
454
|
-
"x-amz-target": "AmazonAthena.ListTagsForResource",
|
|
455
|
-
};
|
|
320
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
456
321
|
let body;
|
|
457
|
-
body = JSON.stringify(
|
|
322
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
458
323
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
459
324
|
};
|
|
460
325
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
461
326
|
const se_ListWorkGroupsCommand = async (input, context) => {
|
|
462
|
-
const headers =
|
|
463
|
-
"content-type": "application/x-amz-json-1.1",
|
|
464
|
-
"x-amz-target": "AmazonAthena.ListWorkGroups",
|
|
465
|
-
};
|
|
327
|
+
const headers = sharedHeaders("ListWorkGroups");
|
|
466
328
|
let body;
|
|
467
|
-
body = JSON.stringify(
|
|
329
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
468
330
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
469
331
|
};
|
|
470
332
|
exports.se_ListWorkGroupsCommand = se_ListWorkGroupsCommand;
|
|
471
333
|
const se_StartCalculationExecutionCommand = async (input, context) => {
|
|
472
|
-
const headers =
|
|
473
|
-
"content-type": "application/x-amz-json-1.1",
|
|
474
|
-
"x-amz-target": "AmazonAthena.StartCalculationExecution",
|
|
475
|
-
};
|
|
334
|
+
const headers = sharedHeaders("StartCalculationExecution");
|
|
476
335
|
let body;
|
|
477
|
-
body = JSON.stringify(
|
|
336
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
478
337
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
479
338
|
};
|
|
480
339
|
exports.se_StartCalculationExecutionCommand = se_StartCalculationExecutionCommand;
|
|
481
340
|
const se_StartQueryExecutionCommand = async (input, context) => {
|
|
482
|
-
const headers =
|
|
483
|
-
"content-type": "application/x-amz-json-1.1",
|
|
484
|
-
"x-amz-target": "AmazonAthena.StartQueryExecution",
|
|
485
|
-
};
|
|
341
|
+
const headers = sharedHeaders("StartQueryExecution");
|
|
486
342
|
let body;
|
|
487
343
|
body = JSON.stringify(se_StartQueryExecutionInput(input, context));
|
|
488
344
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
489
345
|
};
|
|
490
346
|
exports.se_StartQueryExecutionCommand = se_StartQueryExecutionCommand;
|
|
491
347
|
const se_StartSessionCommand = async (input, context) => {
|
|
492
|
-
const headers =
|
|
493
|
-
"content-type": "application/x-amz-json-1.1",
|
|
494
|
-
"x-amz-target": "AmazonAthena.StartSession",
|
|
495
|
-
};
|
|
348
|
+
const headers = sharedHeaders("StartSession");
|
|
496
349
|
let body;
|
|
497
|
-
body = JSON.stringify(
|
|
350
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
498
351
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
499
352
|
};
|
|
500
353
|
exports.se_StartSessionCommand = se_StartSessionCommand;
|
|
501
354
|
const se_StopCalculationExecutionCommand = async (input, context) => {
|
|
502
|
-
const headers =
|
|
503
|
-
"content-type": "application/x-amz-json-1.1",
|
|
504
|
-
"x-amz-target": "AmazonAthena.StopCalculationExecution",
|
|
505
|
-
};
|
|
355
|
+
const headers = sharedHeaders("StopCalculationExecution");
|
|
506
356
|
let body;
|
|
507
|
-
body = JSON.stringify(
|
|
357
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
508
358
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
509
359
|
};
|
|
510
360
|
exports.se_StopCalculationExecutionCommand = se_StopCalculationExecutionCommand;
|
|
511
361
|
const se_StopQueryExecutionCommand = async (input, context) => {
|
|
512
|
-
const headers =
|
|
513
|
-
"content-type": "application/x-amz-json-1.1",
|
|
514
|
-
"x-amz-target": "AmazonAthena.StopQueryExecution",
|
|
515
|
-
};
|
|
362
|
+
const headers = sharedHeaders("StopQueryExecution");
|
|
516
363
|
let body;
|
|
517
364
|
body = JSON.stringify(se_StopQueryExecutionInput(input, context));
|
|
518
365
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
519
366
|
};
|
|
520
367
|
exports.se_StopQueryExecutionCommand = se_StopQueryExecutionCommand;
|
|
521
368
|
const se_TagResourceCommand = async (input, context) => {
|
|
522
|
-
const headers =
|
|
523
|
-
"content-type": "application/x-amz-json-1.1",
|
|
524
|
-
"x-amz-target": "AmazonAthena.TagResource",
|
|
525
|
-
};
|
|
369
|
+
const headers = sharedHeaders("TagResource");
|
|
526
370
|
let body;
|
|
527
|
-
body = JSON.stringify(
|
|
371
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
528
372
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
529
373
|
};
|
|
530
374
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
531
375
|
const se_TerminateSessionCommand = async (input, context) => {
|
|
532
|
-
const headers =
|
|
533
|
-
"content-type": "application/x-amz-json-1.1",
|
|
534
|
-
"x-amz-target": "AmazonAthena.TerminateSession",
|
|
535
|
-
};
|
|
376
|
+
const headers = sharedHeaders("TerminateSession");
|
|
536
377
|
let body;
|
|
537
|
-
body = JSON.stringify(
|
|
378
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
538
379
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
539
380
|
};
|
|
540
381
|
exports.se_TerminateSessionCommand = se_TerminateSessionCommand;
|
|
541
382
|
const se_UntagResourceCommand = async (input, context) => {
|
|
542
|
-
const headers =
|
|
543
|
-
"content-type": "application/x-amz-json-1.1",
|
|
544
|
-
"x-amz-target": "AmazonAthena.UntagResource",
|
|
545
|
-
};
|
|
383
|
+
const headers = sharedHeaders("UntagResource");
|
|
546
384
|
let body;
|
|
547
|
-
body = JSON.stringify(
|
|
385
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
548
386
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
549
387
|
};
|
|
550
388
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
551
389
|
const se_UpdateDataCatalogCommand = async (input, context) => {
|
|
552
|
-
const headers =
|
|
553
|
-
"content-type": "application/x-amz-json-1.1",
|
|
554
|
-
"x-amz-target": "AmazonAthena.UpdateDataCatalog",
|
|
555
|
-
};
|
|
390
|
+
const headers = sharedHeaders("UpdateDataCatalog");
|
|
556
391
|
let body;
|
|
557
|
-
body = JSON.stringify(
|
|
392
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
558
393
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
559
394
|
};
|
|
560
395
|
exports.se_UpdateDataCatalogCommand = se_UpdateDataCatalogCommand;
|
|
561
396
|
const se_UpdateNamedQueryCommand = async (input, context) => {
|
|
562
|
-
const headers =
|
|
563
|
-
"content-type": "application/x-amz-json-1.1",
|
|
564
|
-
"x-amz-target": "AmazonAthena.UpdateNamedQuery",
|
|
565
|
-
};
|
|
397
|
+
const headers = sharedHeaders("UpdateNamedQuery");
|
|
566
398
|
let body;
|
|
567
|
-
body = JSON.stringify(
|
|
399
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
568
400
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
569
401
|
};
|
|
570
402
|
exports.se_UpdateNamedQueryCommand = se_UpdateNamedQueryCommand;
|
|
571
403
|
const se_UpdateNotebookCommand = async (input, context) => {
|
|
572
|
-
const headers =
|
|
573
|
-
"content-type": "application/x-amz-json-1.1",
|
|
574
|
-
"x-amz-target": "AmazonAthena.UpdateNotebook",
|
|
575
|
-
};
|
|
404
|
+
const headers = sharedHeaders("UpdateNotebook");
|
|
576
405
|
let body;
|
|
577
|
-
body = JSON.stringify(
|
|
406
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
578
407
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
579
408
|
};
|
|
580
409
|
exports.se_UpdateNotebookCommand = se_UpdateNotebookCommand;
|
|
581
410
|
const se_UpdateNotebookMetadataCommand = async (input, context) => {
|
|
582
|
-
const headers =
|
|
583
|
-
"content-type": "application/x-amz-json-1.1",
|
|
584
|
-
"x-amz-target": "AmazonAthena.UpdateNotebookMetadata",
|
|
585
|
-
};
|
|
411
|
+
const headers = sharedHeaders("UpdateNotebookMetadata");
|
|
586
412
|
let body;
|
|
587
|
-
body = JSON.stringify(
|
|
413
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
588
414
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
589
415
|
};
|
|
590
416
|
exports.se_UpdateNotebookMetadataCommand = se_UpdateNotebookMetadataCommand;
|
|
591
417
|
const se_UpdatePreparedStatementCommand = async (input, context) => {
|
|
592
|
-
const headers =
|
|
593
|
-
"content-type": "application/x-amz-json-1.1",
|
|
594
|
-
"x-amz-target": "AmazonAthena.UpdatePreparedStatement",
|
|
595
|
-
};
|
|
418
|
+
const headers = sharedHeaders("UpdatePreparedStatement");
|
|
596
419
|
let body;
|
|
597
|
-
body = JSON.stringify(
|
|
420
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
598
421
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
599
422
|
};
|
|
600
423
|
exports.se_UpdatePreparedStatementCommand = se_UpdatePreparedStatementCommand;
|
|
601
424
|
const se_UpdateWorkGroupCommand = async (input, context) => {
|
|
602
|
-
const headers =
|
|
603
|
-
"content-type": "application/x-amz-json-1.1",
|
|
604
|
-
"x-amz-target": "AmazonAthena.UpdateWorkGroup",
|
|
605
|
-
};
|
|
425
|
+
const headers = sharedHeaders("UpdateWorkGroup");
|
|
606
426
|
let body;
|
|
607
|
-
body = JSON.stringify(
|
|
427
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
608
428
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
609
429
|
};
|
|
610
430
|
exports.se_UpdateWorkGroupCommand = se_UpdateWorkGroupCommand;
|
|
@@ -614,12 +434,12 @@ const de_BatchGetNamedQueryCommand = async (output, context) => {
|
|
|
614
434
|
}
|
|
615
435
|
const data = await parseBody(output.body, context);
|
|
616
436
|
let contents = {};
|
|
617
|
-
contents =
|
|
437
|
+
contents = (0, smithy_client_1._json)(data);
|
|
618
438
|
const response = {
|
|
619
439
|
$metadata: deserializeMetadata(output),
|
|
620
440
|
...contents,
|
|
621
441
|
};
|
|
622
|
-
return
|
|
442
|
+
return response;
|
|
623
443
|
};
|
|
624
444
|
exports.de_BatchGetNamedQueryCommand = de_BatchGetNamedQueryCommand;
|
|
625
445
|
const de_BatchGetNamedQueryCommandError = async (output, context) => {
|
|
@@ -637,10 +457,9 @@ const de_BatchGetNamedQueryCommandError = async (output, context) => {
|
|
|
637
457
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
638
458
|
default:
|
|
639
459
|
const parsedBody = parsedOutput.body;
|
|
640
|
-
|
|
460
|
+
return throwDefaultError({
|
|
641
461
|
output,
|
|
642
462
|
parsedBody,
|
|
643
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
644
463
|
errorCode,
|
|
645
464
|
});
|
|
646
465
|
}
|
|
@@ -656,7 +475,7 @@ const de_BatchGetPreparedStatementCommand = async (output, context) => {
|
|
|
656
475
|
$metadata: deserializeMetadata(output),
|
|
657
476
|
...contents,
|
|
658
477
|
};
|
|
659
|
-
return
|
|
478
|
+
return response;
|
|
660
479
|
};
|
|
661
480
|
exports.de_BatchGetPreparedStatementCommand = de_BatchGetPreparedStatementCommand;
|
|
662
481
|
const de_BatchGetPreparedStatementCommandError = async (output, context) => {
|
|
@@ -674,10 +493,9 @@ const de_BatchGetPreparedStatementCommandError = async (output, context) => {
|
|
|
674
493
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
675
494
|
default:
|
|
676
495
|
const parsedBody = parsedOutput.body;
|
|
677
|
-
|
|
496
|
+
return throwDefaultError({
|
|
678
497
|
output,
|
|
679
498
|
parsedBody,
|
|
680
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
681
499
|
errorCode,
|
|
682
500
|
});
|
|
683
501
|
}
|
|
@@ -693,7 +511,7 @@ const de_BatchGetQueryExecutionCommand = async (output, context) => {
|
|
|
693
511
|
$metadata: deserializeMetadata(output),
|
|
694
512
|
...contents,
|
|
695
513
|
};
|
|
696
|
-
return
|
|
514
|
+
return response;
|
|
697
515
|
};
|
|
698
516
|
exports.de_BatchGetQueryExecutionCommand = de_BatchGetQueryExecutionCommand;
|
|
699
517
|
const de_BatchGetQueryExecutionCommandError = async (output, context) => {
|
|
@@ -711,10 +529,9 @@ const de_BatchGetQueryExecutionCommandError = async (output, context) => {
|
|
|
711
529
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
712
530
|
default:
|
|
713
531
|
const parsedBody = parsedOutput.body;
|
|
714
|
-
|
|
532
|
+
return throwDefaultError({
|
|
715
533
|
output,
|
|
716
534
|
parsedBody,
|
|
717
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
718
535
|
errorCode,
|
|
719
536
|
});
|
|
720
537
|
}
|
|
@@ -725,12 +542,12 @@ const de_CreateDataCatalogCommand = async (output, context) => {
|
|
|
725
542
|
}
|
|
726
543
|
const data = await parseBody(output.body, context);
|
|
727
544
|
let contents = {};
|
|
728
|
-
contents =
|
|
545
|
+
contents = (0, smithy_client_1._json)(data);
|
|
729
546
|
const response = {
|
|
730
547
|
$metadata: deserializeMetadata(output),
|
|
731
548
|
...contents,
|
|
732
549
|
};
|
|
733
|
-
return
|
|
550
|
+
return response;
|
|
734
551
|
};
|
|
735
552
|
exports.de_CreateDataCatalogCommand = de_CreateDataCatalogCommand;
|
|
736
553
|
const de_CreateDataCatalogCommandError = async (output, context) => {
|
|
@@ -748,10 +565,9 @@ const de_CreateDataCatalogCommandError = async (output, context) => {
|
|
|
748
565
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
749
566
|
default:
|
|
750
567
|
const parsedBody = parsedOutput.body;
|
|
751
|
-
|
|
568
|
+
return throwDefaultError({
|
|
752
569
|
output,
|
|
753
570
|
parsedBody,
|
|
754
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
755
571
|
errorCode,
|
|
756
572
|
});
|
|
757
573
|
}
|
|
@@ -762,12 +578,12 @@ const de_CreateNamedQueryCommand = async (output, context) => {
|
|
|
762
578
|
}
|
|
763
579
|
const data = await parseBody(output.body, context);
|
|
764
580
|
let contents = {};
|
|
765
|
-
contents =
|
|
581
|
+
contents = (0, smithy_client_1._json)(data);
|
|
766
582
|
const response = {
|
|
767
583
|
$metadata: deserializeMetadata(output),
|
|
768
584
|
...contents,
|
|
769
585
|
};
|
|
770
|
-
return
|
|
586
|
+
return response;
|
|
771
587
|
};
|
|
772
588
|
exports.de_CreateNamedQueryCommand = de_CreateNamedQueryCommand;
|
|
773
589
|
const de_CreateNamedQueryCommandError = async (output, context) => {
|
|
@@ -785,10 +601,9 @@ const de_CreateNamedQueryCommandError = async (output, context) => {
|
|
|
785
601
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
786
602
|
default:
|
|
787
603
|
const parsedBody = parsedOutput.body;
|
|
788
|
-
|
|
604
|
+
return throwDefaultError({
|
|
789
605
|
output,
|
|
790
606
|
parsedBody,
|
|
791
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
792
607
|
errorCode,
|
|
793
608
|
});
|
|
794
609
|
}
|
|
@@ -799,12 +614,12 @@ const de_CreateNotebookCommand = async (output, context) => {
|
|
|
799
614
|
}
|
|
800
615
|
const data = await parseBody(output.body, context);
|
|
801
616
|
let contents = {};
|
|
802
|
-
contents =
|
|
617
|
+
contents = (0, smithy_client_1._json)(data);
|
|
803
618
|
const response = {
|
|
804
619
|
$metadata: deserializeMetadata(output),
|
|
805
620
|
...contents,
|
|
806
621
|
};
|
|
807
|
-
return
|
|
622
|
+
return response;
|
|
808
623
|
};
|
|
809
624
|
exports.de_CreateNotebookCommand = de_CreateNotebookCommand;
|
|
810
625
|
const de_CreateNotebookCommandError = async (output, context) => {
|
|
@@ -825,10 +640,9 @@ const de_CreateNotebookCommandError = async (output, context) => {
|
|
|
825
640
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
826
641
|
default:
|
|
827
642
|
const parsedBody = parsedOutput.body;
|
|
828
|
-
|
|
643
|
+
return throwDefaultError({
|
|
829
644
|
output,
|
|
830
645
|
parsedBody,
|
|
831
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
832
646
|
errorCode,
|
|
833
647
|
});
|
|
834
648
|
}
|
|
@@ -839,12 +653,12 @@ const de_CreatePreparedStatementCommand = async (output, context) => {
|
|
|
839
653
|
}
|
|
840
654
|
const data = await parseBody(output.body, context);
|
|
841
655
|
let contents = {};
|
|
842
|
-
contents =
|
|
656
|
+
contents = (0, smithy_client_1._json)(data);
|
|
843
657
|
const response = {
|
|
844
658
|
$metadata: deserializeMetadata(output),
|
|
845
659
|
...contents,
|
|
846
660
|
};
|
|
847
|
-
return
|
|
661
|
+
return response;
|
|
848
662
|
};
|
|
849
663
|
exports.de_CreatePreparedStatementCommand = de_CreatePreparedStatementCommand;
|
|
850
664
|
const de_CreatePreparedStatementCommandError = async (output, context) => {
|
|
@@ -862,10 +676,9 @@ const de_CreatePreparedStatementCommandError = async (output, context) => {
|
|
|
862
676
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
863
677
|
default:
|
|
864
678
|
const parsedBody = parsedOutput.body;
|
|
865
|
-
|
|
679
|
+
return throwDefaultError({
|
|
866
680
|
output,
|
|
867
681
|
parsedBody,
|
|
868
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
869
682
|
errorCode,
|
|
870
683
|
});
|
|
871
684
|
}
|
|
@@ -876,12 +689,12 @@ const de_CreatePresignedNotebookUrlCommand = async (output, context) => {
|
|
|
876
689
|
}
|
|
877
690
|
const data = await parseBody(output.body, context);
|
|
878
691
|
let contents = {};
|
|
879
|
-
contents =
|
|
692
|
+
contents = (0, smithy_client_1._json)(data);
|
|
880
693
|
const response = {
|
|
881
694
|
$metadata: deserializeMetadata(output),
|
|
882
695
|
...contents,
|
|
883
696
|
};
|
|
884
|
-
return
|
|
697
|
+
return response;
|
|
885
698
|
};
|
|
886
699
|
exports.de_CreatePresignedNotebookUrlCommand = de_CreatePresignedNotebookUrlCommand;
|
|
887
700
|
const de_CreatePresignedNotebookUrlCommandError = async (output, context) => {
|
|
@@ -902,10 +715,9 @@ const de_CreatePresignedNotebookUrlCommandError = async (output, context) => {
|
|
|
902
715
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
903
716
|
default:
|
|
904
717
|
const parsedBody = parsedOutput.body;
|
|
905
|
-
|
|
718
|
+
return throwDefaultError({
|
|
906
719
|
output,
|
|
907
720
|
parsedBody,
|
|
908
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
909
721
|
errorCode,
|
|
910
722
|
});
|
|
911
723
|
}
|
|
@@ -916,12 +728,12 @@ const de_CreateWorkGroupCommand = async (output, context) => {
|
|
|
916
728
|
}
|
|
917
729
|
const data = await parseBody(output.body, context);
|
|
918
730
|
let contents = {};
|
|
919
|
-
contents =
|
|
731
|
+
contents = (0, smithy_client_1._json)(data);
|
|
920
732
|
const response = {
|
|
921
733
|
$metadata: deserializeMetadata(output),
|
|
922
734
|
...contents,
|
|
923
735
|
};
|
|
924
|
-
return
|
|
736
|
+
return response;
|
|
925
737
|
};
|
|
926
738
|
exports.de_CreateWorkGroupCommand = de_CreateWorkGroupCommand;
|
|
927
739
|
const de_CreateWorkGroupCommandError = async (output, context) => {
|
|
@@ -939,10 +751,9 @@ const de_CreateWorkGroupCommandError = async (output, context) => {
|
|
|
939
751
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
940
752
|
default:
|
|
941
753
|
const parsedBody = parsedOutput.body;
|
|
942
|
-
|
|
754
|
+
return throwDefaultError({
|
|
943
755
|
output,
|
|
944
756
|
parsedBody,
|
|
945
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
946
757
|
errorCode,
|
|
947
758
|
});
|
|
948
759
|
}
|
|
@@ -953,12 +764,12 @@ const de_DeleteDataCatalogCommand = async (output, context) => {
|
|
|
953
764
|
}
|
|
954
765
|
const data = await parseBody(output.body, context);
|
|
955
766
|
let contents = {};
|
|
956
|
-
contents =
|
|
767
|
+
contents = (0, smithy_client_1._json)(data);
|
|
957
768
|
const response = {
|
|
958
769
|
$metadata: deserializeMetadata(output),
|
|
959
770
|
...contents,
|
|
960
771
|
};
|
|
961
|
-
return
|
|
772
|
+
return response;
|
|
962
773
|
};
|
|
963
774
|
exports.de_DeleteDataCatalogCommand = de_DeleteDataCatalogCommand;
|
|
964
775
|
const de_DeleteDataCatalogCommandError = async (output, context) => {
|
|
@@ -976,10 +787,9 @@ const de_DeleteDataCatalogCommandError = async (output, context) => {
|
|
|
976
787
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
977
788
|
default:
|
|
978
789
|
const parsedBody = parsedOutput.body;
|
|
979
|
-
|
|
790
|
+
return throwDefaultError({
|
|
980
791
|
output,
|
|
981
792
|
parsedBody,
|
|
982
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
983
793
|
errorCode,
|
|
984
794
|
});
|
|
985
795
|
}
|
|
@@ -990,12 +800,12 @@ const de_DeleteNamedQueryCommand = async (output, context) => {
|
|
|
990
800
|
}
|
|
991
801
|
const data = await parseBody(output.body, context);
|
|
992
802
|
let contents = {};
|
|
993
|
-
contents =
|
|
803
|
+
contents = (0, smithy_client_1._json)(data);
|
|
994
804
|
const response = {
|
|
995
805
|
$metadata: deserializeMetadata(output),
|
|
996
806
|
...contents,
|
|
997
807
|
};
|
|
998
|
-
return
|
|
808
|
+
return response;
|
|
999
809
|
};
|
|
1000
810
|
exports.de_DeleteNamedQueryCommand = de_DeleteNamedQueryCommand;
|
|
1001
811
|
const de_DeleteNamedQueryCommandError = async (output, context) => {
|
|
@@ -1013,10 +823,9 @@ const de_DeleteNamedQueryCommandError = async (output, context) => {
|
|
|
1013
823
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1014
824
|
default:
|
|
1015
825
|
const parsedBody = parsedOutput.body;
|
|
1016
|
-
|
|
826
|
+
return throwDefaultError({
|
|
1017
827
|
output,
|
|
1018
828
|
parsedBody,
|
|
1019
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1020
829
|
errorCode,
|
|
1021
830
|
});
|
|
1022
831
|
}
|
|
@@ -1027,12 +836,12 @@ const de_DeleteNotebookCommand = async (output, context) => {
|
|
|
1027
836
|
}
|
|
1028
837
|
const data = await parseBody(output.body, context);
|
|
1029
838
|
let contents = {};
|
|
1030
|
-
contents =
|
|
839
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1031
840
|
const response = {
|
|
1032
841
|
$metadata: deserializeMetadata(output),
|
|
1033
842
|
...contents,
|
|
1034
843
|
};
|
|
1035
|
-
return
|
|
844
|
+
return response;
|
|
1036
845
|
};
|
|
1037
846
|
exports.de_DeleteNotebookCommand = de_DeleteNotebookCommand;
|
|
1038
847
|
const de_DeleteNotebookCommandError = async (output, context) => {
|
|
@@ -1053,10 +862,9 @@ const de_DeleteNotebookCommandError = async (output, context) => {
|
|
|
1053
862
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1054
863
|
default:
|
|
1055
864
|
const parsedBody = parsedOutput.body;
|
|
1056
|
-
|
|
865
|
+
return throwDefaultError({
|
|
1057
866
|
output,
|
|
1058
867
|
parsedBody,
|
|
1059
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1060
868
|
errorCode,
|
|
1061
869
|
});
|
|
1062
870
|
}
|
|
@@ -1067,12 +875,12 @@ const de_DeletePreparedStatementCommand = async (output, context) => {
|
|
|
1067
875
|
}
|
|
1068
876
|
const data = await parseBody(output.body, context);
|
|
1069
877
|
let contents = {};
|
|
1070
|
-
contents =
|
|
878
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1071
879
|
const response = {
|
|
1072
880
|
$metadata: deserializeMetadata(output),
|
|
1073
881
|
...contents,
|
|
1074
882
|
};
|
|
1075
|
-
return
|
|
883
|
+
return response;
|
|
1076
884
|
};
|
|
1077
885
|
exports.de_DeletePreparedStatementCommand = de_DeletePreparedStatementCommand;
|
|
1078
886
|
const de_DeletePreparedStatementCommandError = async (output, context) => {
|
|
@@ -1093,10 +901,9 @@ const de_DeletePreparedStatementCommandError = async (output, context) => {
|
|
|
1093
901
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1094
902
|
default:
|
|
1095
903
|
const parsedBody = parsedOutput.body;
|
|
1096
|
-
|
|
904
|
+
return throwDefaultError({
|
|
1097
905
|
output,
|
|
1098
906
|
parsedBody,
|
|
1099
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1100
907
|
errorCode,
|
|
1101
908
|
});
|
|
1102
909
|
}
|
|
@@ -1107,12 +914,12 @@ const de_DeleteWorkGroupCommand = async (output, context) => {
|
|
|
1107
914
|
}
|
|
1108
915
|
const data = await parseBody(output.body, context);
|
|
1109
916
|
let contents = {};
|
|
1110
|
-
contents =
|
|
917
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1111
918
|
const response = {
|
|
1112
919
|
$metadata: deserializeMetadata(output),
|
|
1113
920
|
...contents,
|
|
1114
921
|
};
|
|
1115
|
-
return
|
|
922
|
+
return response;
|
|
1116
923
|
};
|
|
1117
924
|
exports.de_DeleteWorkGroupCommand = de_DeleteWorkGroupCommand;
|
|
1118
925
|
const de_DeleteWorkGroupCommandError = async (output, context) => {
|
|
@@ -1130,10 +937,9 @@ const de_DeleteWorkGroupCommandError = async (output, context) => {
|
|
|
1130
937
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1131
938
|
default:
|
|
1132
939
|
const parsedBody = parsedOutput.body;
|
|
1133
|
-
|
|
940
|
+
return throwDefaultError({
|
|
1134
941
|
output,
|
|
1135
942
|
parsedBody,
|
|
1136
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1137
943
|
errorCode,
|
|
1138
944
|
});
|
|
1139
945
|
}
|
|
@@ -1149,7 +955,7 @@ const de_ExportNotebookCommand = async (output, context) => {
|
|
|
1149
955
|
$metadata: deserializeMetadata(output),
|
|
1150
956
|
...contents,
|
|
1151
957
|
};
|
|
1152
|
-
return
|
|
958
|
+
return response;
|
|
1153
959
|
};
|
|
1154
960
|
exports.de_ExportNotebookCommand = de_ExportNotebookCommand;
|
|
1155
961
|
const de_ExportNotebookCommandError = async (output, context) => {
|
|
@@ -1170,10 +976,9 @@ const de_ExportNotebookCommandError = async (output, context) => {
|
|
|
1170
976
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1171
977
|
default:
|
|
1172
978
|
const parsedBody = parsedOutput.body;
|
|
1173
|
-
|
|
979
|
+
return throwDefaultError({
|
|
1174
980
|
output,
|
|
1175
981
|
parsedBody,
|
|
1176
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1177
982
|
errorCode,
|
|
1178
983
|
});
|
|
1179
984
|
}
|
|
@@ -1189,7 +994,7 @@ const de_GetCalculationExecutionCommand = async (output, context) => {
|
|
|
1189
994
|
$metadata: deserializeMetadata(output),
|
|
1190
995
|
...contents,
|
|
1191
996
|
};
|
|
1192
|
-
return
|
|
997
|
+
return response;
|
|
1193
998
|
};
|
|
1194
999
|
exports.de_GetCalculationExecutionCommand = de_GetCalculationExecutionCommand;
|
|
1195
1000
|
const de_GetCalculationExecutionCommandError = async (output, context) => {
|
|
@@ -1210,10 +1015,9 @@ const de_GetCalculationExecutionCommandError = async (output, context) => {
|
|
|
1210
1015
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1211
1016
|
default:
|
|
1212
1017
|
const parsedBody = parsedOutput.body;
|
|
1213
|
-
|
|
1018
|
+
return throwDefaultError({
|
|
1214
1019
|
output,
|
|
1215
1020
|
parsedBody,
|
|
1216
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1217
1021
|
errorCode,
|
|
1218
1022
|
});
|
|
1219
1023
|
}
|
|
@@ -1224,12 +1028,12 @@ const de_GetCalculationExecutionCodeCommand = async (output, context) => {
|
|
|
1224
1028
|
}
|
|
1225
1029
|
const data = await parseBody(output.body, context);
|
|
1226
1030
|
let contents = {};
|
|
1227
|
-
contents =
|
|
1031
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1228
1032
|
const response = {
|
|
1229
1033
|
$metadata: deserializeMetadata(output),
|
|
1230
1034
|
...contents,
|
|
1231
1035
|
};
|
|
1232
|
-
return
|
|
1036
|
+
return response;
|
|
1233
1037
|
};
|
|
1234
1038
|
exports.de_GetCalculationExecutionCodeCommand = de_GetCalculationExecutionCodeCommand;
|
|
1235
1039
|
const de_GetCalculationExecutionCodeCommandError = async (output, context) => {
|
|
@@ -1250,10 +1054,9 @@ const de_GetCalculationExecutionCodeCommandError = async (output, context) => {
|
|
|
1250
1054
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1251
1055
|
default:
|
|
1252
1056
|
const parsedBody = parsedOutput.body;
|
|
1253
|
-
|
|
1057
|
+
return throwDefaultError({
|
|
1254
1058
|
output,
|
|
1255
1059
|
parsedBody,
|
|
1256
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1257
1060
|
errorCode,
|
|
1258
1061
|
});
|
|
1259
1062
|
}
|
|
@@ -1269,7 +1072,7 @@ const de_GetCalculationExecutionStatusCommand = async (output, context) => {
|
|
|
1269
1072
|
$metadata: deserializeMetadata(output),
|
|
1270
1073
|
...contents,
|
|
1271
1074
|
};
|
|
1272
|
-
return
|
|
1075
|
+
return response;
|
|
1273
1076
|
};
|
|
1274
1077
|
exports.de_GetCalculationExecutionStatusCommand = de_GetCalculationExecutionStatusCommand;
|
|
1275
1078
|
const de_GetCalculationExecutionStatusCommandError = async (output, context) => {
|
|
@@ -1290,10 +1093,9 @@ const de_GetCalculationExecutionStatusCommandError = async (output, context) =>
|
|
|
1290
1093
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1291
1094
|
default:
|
|
1292
1095
|
const parsedBody = parsedOutput.body;
|
|
1293
|
-
|
|
1096
|
+
return throwDefaultError({
|
|
1294
1097
|
output,
|
|
1295
1098
|
parsedBody,
|
|
1296
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1297
1099
|
errorCode,
|
|
1298
1100
|
});
|
|
1299
1101
|
}
|
|
@@ -1304,12 +1106,12 @@ const de_GetDatabaseCommand = async (output, context) => {
|
|
|
1304
1106
|
}
|
|
1305
1107
|
const data = await parseBody(output.body, context);
|
|
1306
1108
|
let contents = {};
|
|
1307
|
-
contents =
|
|
1109
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1308
1110
|
const response = {
|
|
1309
1111
|
$metadata: deserializeMetadata(output),
|
|
1310
1112
|
...contents,
|
|
1311
1113
|
};
|
|
1312
|
-
return
|
|
1114
|
+
return response;
|
|
1313
1115
|
};
|
|
1314
1116
|
exports.de_GetDatabaseCommand = de_GetDatabaseCommand;
|
|
1315
1117
|
const de_GetDatabaseCommandError = async (output, context) => {
|
|
@@ -1330,10 +1132,9 @@ const de_GetDatabaseCommandError = async (output, context) => {
|
|
|
1330
1132
|
throw await de_MetadataExceptionRes(parsedOutput, context);
|
|
1331
1133
|
default:
|
|
1332
1134
|
const parsedBody = parsedOutput.body;
|
|
1333
|
-
|
|
1135
|
+
return throwDefaultError({
|
|
1334
1136
|
output,
|
|
1335
1137
|
parsedBody,
|
|
1336
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1337
1138
|
errorCode,
|
|
1338
1139
|
});
|
|
1339
1140
|
}
|
|
@@ -1344,12 +1145,12 @@ const de_GetDataCatalogCommand = async (output, context) => {
|
|
|
1344
1145
|
}
|
|
1345
1146
|
const data = await parseBody(output.body, context);
|
|
1346
1147
|
let contents = {};
|
|
1347
|
-
contents =
|
|
1148
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1348
1149
|
const response = {
|
|
1349
1150
|
$metadata: deserializeMetadata(output),
|
|
1350
1151
|
...contents,
|
|
1351
1152
|
};
|
|
1352
|
-
return
|
|
1153
|
+
return response;
|
|
1353
1154
|
};
|
|
1354
1155
|
exports.de_GetDataCatalogCommand = de_GetDataCatalogCommand;
|
|
1355
1156
|
const de_GetDataCatalogCommandError = async (output, context) => {
|
|
@@ -1367,10 +1168,9 @@ const de_GetDataCatalogCommandError = async (output, context) => {
|
|
|
1367
1168
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1368
1169
|
default:
|
|
1369
1170
|
const parsedBody = parsedOutput.body;
|
|
1370
|
-
|
|
1171
|
+
return throwDefaultError({
|
|
1371
1172
|
output,
|
|
1372
1173
|
parsedBody,
|
|
1373
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1374
1174
|
errorCode,
|
|
1375
1175
|
});
|
|
1376
1176
|
}
|
|
@@ -1381,12 +1181,12 @@ const de_GetNamedQueryCommand = async (output, context) => {
|
|
|
1381
1181
|
}
|
|
1382
1182
|
const data = await parseBody(output.body, context);
|
|
1383
1183
|
let contents = {};
|
|
1384
|
-
contents =
|
|
1184
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1385
1185
|
const response = {
|
|
1386
1186
|
$metadata: deserializeMetadata(output),
|
|
1387
1187
|
...contents,
|
|
1388
1188
|
};
|
|
1389
|
-
return
|
|
1189
|
+
return response;
|
|
1390
1190
|
};
|
|
1391
1191
|
exports.de_GetNamedQueryCommand = de_GetNamedQueryCommand;
|
|
1392
1192
|
const de_GetNamedQueryCommandError = async (output, context) => {
|
|
@@ -1404,10 +1204,9 @@ const de_GetNamedQueryCommandError = async (output, context) => {
|
|
|
1404
1204
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1405
1205
|
default:
|
|
1406
1206
|
const parsedBody = parsedOutput.body;
|
|
1407
|
-
|
|
1207
|
+
return throwDefaultError({
|
|
1408
1208
|
output,
|
|
1409
1209
|
parsedBody,
|
|
1410
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1411
1210
|
errorCode,
|
|
1412
1211
|
});
|
|
1413
1212
|
}
|
|
@@ -1423,7 +1222,7 @@ const de_GetNotebookMetadataCommand = async (output, context) => {
|
|
|
1423
1222
|
$metadata: deserializeMetadata(output),
|
|
1424
1223
|
...contents,
|
|
1425
1224
|
};
|
|
1426
|
-
return
|
|
1225
|
+
return response;
|
|
1427
1226
|
};
|
|
1428
1227
|
exports.de_GetNotebookMetadataCommand = de_GetNotebookMetadataCommand;
|
|
1429
1228
|
const de_GetNotebookMetadataCommandError = async (output, context) => {
|
|
@@ -1444,10 +1243,9 @@ const de_GetNotebookMetadataCommandError = async (output, context) => {
|
|
|
1444
1243
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1445
1244
|
default:
|
|
1446
1245
|
const parsedBody = parsedOutput.body;
|
|
1447
|
-
|
|
1246
|
+
return throwDefaultError({
|
|
1448
1247
|
output,
|
|
1449
1248
|
parsedBody,
|
|
1450
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1451
1249
|
errorCode,
|
|
1452
1250
|
});
|
|
1453
1251
|
}
|
|
@@ -1463,7 +1261,7 @@ const de_GetPreparedStatementCommand = async (output, context) => {
|
|
|
1463
1261
|
$metadata: deserializeMetadata(output),
|
|
1464
1262
|
...contents,
|
|
1465
1263
|
};
|
|
1466
|
-
return
|
|
1264
|
+
return response;
|
|
1467
1265
|
};
|
|
1468
1266
|
exports.de_GetPreparedStatementCommand = de_GetPreparedStatementCommand;
|
|
1469
1267
|
const de_GetPreparedStatementCommandError = async (output, context) => {
|
|
@@ -1484,10 +1282,9 @@ const de_GetPreparedStatementCommandError = async (output, context) => {
|
|
|
1484
1282
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1485
1283
|
default:
|
|
1486
1284
|
const parsedBody = parsedOutput.body;
|
|
1487
|
-
|
|
1285
|
+
return throwDefaultError({
|
|
1488
1286
|
output,
|
|
1489
1287
|
parsedBody,
|
|
1490
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1491
1288
|
errorCode,
|
|
1492
1289
|
});
|
|
1493
1290
|
}
|
|
@@ -1503,7 +1300,7 @@ const de_GetQueryExecutionCommand = async (output, context) => {
|
|
|
1503
1300
|
$metadata: deserializeMetadata(output),
|
|
1504
1301
|
...contents,
|
|
1505
1302
|
};
|
|
1506
|
-
return
|
|
1303
|
+
return response;
|
|
1507
1304
|
};
|
|
1508
1305
|
exports.de_GetQueryExecutionCommand = de_GetQueryExecutionCommand;
|
|
1509
1306
|
const de_GetQueryExecutionCommandError = async (output, context) => {
|
|
@@ -1521,10 +1318,9 @@ const de_GetQueryExecutionCommandError = async (output, context) => {
|
|
|
1521
1318
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1522
1319
|
default:
|
|
1523
1320
|
const parsedBody = parsedOutput.body;
|
|
1524
|
-
|
|
1321
|
+
return throwDefaultError({
|
|
1525
1322
|
output,
|
|
1526
1323
|
parsedBody,
|
|
1527
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1528
1324
|
errorCode,
|
|
1529
1325
|
});
|
|
1530
1326
|
}
|
|
@@ -1535,12 +1331,12 @@ const de_GetQueryResultsCommand = async (output, context) => {
|
|
|
1535
1331
|
}
|
|
1536
1332
|
const data = await parseBody(output.body, context);
|
|
1537
1333
|
let contents = {};
|
|
1538
|
-
contents =
|
|
1334
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1539
1335
|
const response = {
|
|
1540
1336
|
$metadata: deserializeMetadata(output),
|
|
1541
1337
|
...contents,
|
|
1542
1338
|
};
|
|
1543
|
-
return
|
|
1339
|
+
return response;
|
|
1544
1340
|
};
|
|
1545
1341
|
exports.de_GetQueryResultsCommand = de_GetQueryResultsCommand;
|
|
1546
1342
|
const de_GetQueryResultsCommandError = async (output, context) => {
|
|
@@ -1561,10 +1357,9 @@ const de_GetQueryResultsCommandError = async (output, context) => {
|
|
|
1561
1357
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1562
1358
|
default:
|
|
1563
1359
|
const parsedBody = parsedOutput.body;
|
|
1564
|
-
|
|
1360
|
+
return throwDefaultError({
|
|
1565
1361
|
output,
|
|
1566
1362
|
parsedBody,
|
|
1567
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1568
1363
|
errorCode,
|
|
1569
1364
|
});
|
|
1570
1365
|
}
|
|
@@ -1580,7 +1375,7 @@ const de_GetQueryRuntimeStatisticsCommand = async (output, context) => {
|
|
|
1580
1375
|
$metadata: deserializeMetadata(output),
|
|
1581
1376
|
...contents,
|
|
1582
1377
|
};
|
|
1583
|
-
return
|
|
1378
|
+
return response;
|
|
1584
1379
|
};
|
|
1585
1380
|
exports.de_GetQueryRuntimeStatisticsCommand = de_GetQueryRuntimeStatisticsCommand;
|
|
1586
1381
|
const de_GetQueryRuntimeStatisticsCommandError = async (output, context) => {
|
|
@@ -1598,10 +1393,9 @@ const de_GetQueryRuntimeStatisticsCommandError = async (output, context) => {
|
|
|
1598
1393
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1599
1394
|
default:
|
|
1600
1395
|
const parsedBody = parsedOutput.body;
|
|
1601
|
-
|
|
1396
|
+
return throwDefaultError({
|
|
1602
1397
|
output,
|
|
1603
1398
|
parsedBody,
|
|
1604
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1605
1399
|
errorCode,
|
|
1606
1400
|
});
|
|
1607
1401
|
}
|
|
@@ -1617,7 +1411,7 @@ const de_GetSessionCommand = async (output, context) => {
|
|
|
1617
1411
|
$metadata: deserializeMetadata(output),
|
|
1618
1412
|
...contents,
|
|
1619
1413
|
};
|
|
1620
|
-
return
|
|
1414
|
+
return response;
|
|
1621
1415
|
};
|
|
1622
1416
|
exports.de_GetSessionCommand = de_GetSessionCommand;
|
|
1623
1417
|
const de_GetSessionCommandError = async (output, context) => {
|
|
@@ -1638,10 +1432,9 @@ const de_GetSessionCommandError = async (output, context) => {
|
|
|
1638
1432
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1639
1433
|
default:
|
|
1640
1434
|
const parsedBody = parsedOutput.body;
|
|
1641
|
-
|
|
1435
|
+
return throwDefaultError({
|
|
1642
1436
|
output,
|
|
1643
1437
|
parsedBody,
|
|
1644
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1645
1438
|
errorCode,
|
|
1646
1439
|
});
|
|
1647
1440
|
}
|
|
@@ -1657,7 +1450,7 @@ const de_GetSessionStatusCommand = async (output, context) => {
|
|
|
1657
1450
|
$metadata: deserializeMetadata(output),
|
|
1658
1451
|
...contents,
|
|
1659
1452
|
};
|
|
1660
|
-
return
|
|
1453
|
+
return response;
|
|
1661
1454
|
};
|
|
1662
1455
|
exports.de_GetSessionStatusCommand = de_GetSessionStatusCommand;
|
|
1663
1456
|
const de_GetSessionStatusCommandError = async (output, context) => {
|
|
@@ -1678,10 +1471,9 @@ const de_GetSessionStatusCommandError = async (output, context) => {
|
|
|
1678
1471
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1679
1472
|
default:
|
|
1680
1473
|
const parsedBody = parsedOutput.body;
|
|
1681
|
-
|
|
1474
|
+
return throwDefaultError({
|
|
1682
1475
|
output,
|
|
1683
1476
|
parsedBody,
|
|
1684
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1685
1477
|
errorCode,
|
|
1686
1478
|
});
|
|
1687
1479
|
}
|
|
@@ -1697,7 +1489,7 @@ const de_GetTableMetadataCommand = async (output, context) => {
|
|
|
1697
1489
|
$metadata: deserializeMetadata(output),
|
|
1698
1490
|
...contents,
|
|
1699
1491
|
};
|
|
1700
|
-
return
|
|
1492
|
+
return response;
|
|
1701
1493
|
};
|
|
1702
1494
|
exports.de_GetTableMetadataCommand = de_GetTableMetadataCommand;
|
|
1703
1495
|
const de_GetTableMetadataCommandError = async (output, context) => {
|
|
@@ -1718,10 +1510,9 @@ const de_GetTableMetadataCommandError = async (output, context) => {
|
|
|
1718
1510
|
throw await de_MetadataExceptionRes(parsedOutput, context);
|
|
1719
1511
|
default:
|
|
1720
1512
|
const parsedBody = parsedOutput.body;
|
|
1721
|
-
|
|
1513
|
+
return throwDefaultError({
|
|
1722
1514
|
output,
|
|
1723
1515
|
parsedBody,
|
|
1724
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1725
1516
|
errorCode,
|
|
1726
1517
|
});
|
|
1727
1518
|
}
|
|
@@ -1737,7 +1528,7 @@ const de_GetWorkGroupCommand = async (output, context) => {
|
|
|
1737
1528
|
$metadata: deserializeMetadata(output),
|
|
1738
1529
|
...contents,
|
|
1739
1530
|
};
|
|
1740
|
-
return
|
|
1531
|
+
return response;
|
|
1741
1532
|
};
|
|
1742
1533
|
exports.de_GetWorkGroupCommand = de_GetWorkGroupCommand;
|
|
1743
1534
|
const de_GetWorkGroupCommandError = async (output, context) => {
|
|
@@ -1755,10 +1546,9 @@ const de_GetWorkGroupCommandError = async (output, context) => {
|
|
|
1755
1546
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1756
1547
|
default:
|
|
1757
1548
|
const parsedBody = parsedOutput.body;
|
|
1758
|
-
|
|
1549
|
+
return throwDefaultError({
|
|
1759
1550
|
output,
|
|
1760
1551
|
parsedBody,
|
|
1761
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1762
1552
|
errorCode,
|
|
1763
1553
|
});
|
|
1764
1554
|
}
|
|
@@ -1769,12 +1559,12 @@ const de_ImportNotebookCommand = async (output, context) => {
|
|
|
1769
1559
|
}
|
|
1770
1560
|
const data = await parseBody(output.body, context);
|
|
1771
1561
|
let contents = {};
|
|
1772
|
-
contents =
|
|
1562
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1773
1563
|
const response = {
|
|
1774
1564
|
$metadata: deserializeMetadata(output),
|
|
1775
1565
|
...contents,
|
|
1776
1566
|
};
|
|
1777
|
-
return
|
|
1567
|
+
return response;
|
|
1778
1568
|
};
|
|
1779
1569
|
exports.de_ImportNotebookCommand = de_ImportNotebookCommand;
|
|
1780
1570
|
const de_ImportNotebookCommandError = async (output, context) => {
|
|
@@ -1795,10 +1585,9 @@ const de_ImportNotebookCommandError = async (output, context) => {
|
|
|
1795
1585
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1796
1586
|
default:
|
|
1797
1587
|
const parsedBody = parsedOutput.body;
|
|
1798
|
-
|
|
1588
|
+
return throwDefaultError({
|
|
1799
1589
|
output,
|
|
1800
1590
|
parsedBody,
|
|
1801
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1802
1591
|
errorCode,
|
|
1803
1592
|
});
|
|
1804
1593
|
}
|
|
@@ -1809,12 +1598,12 @@ const de_ListApplicationDPUSizesCommand = async (output, context) => {
|
|
|
1809
1598
|
}
|
|
1810
1599
|
const data = await parseBody(output.body, context);
|
|
1811
1600
|
let contents = {};
|
|
1812
|
-
contents =
|
|
1601
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1813
1602
|
const response = {
|
|
1814
1603
|
$metadata: deserializeMetadata(output),
|
|
1815
1604
|
...contents,
|
|
1816
1605
|
};
|
|
1817
|
-
return
|
|
1606
|
+
return response;
|
|
1818
1607
|
};
|
|
1819
1608
|
exports.de_ListApplicationDPUSizesCommand = de_ListApplicationDPUSizesCommand;
|
|
1820
1609
|
const de_ListApplicationDPUSizesCommandError = async (output, context) => {
|
|
@@ -1835,10 +1624,9 @@ const de_ListApplicationDPUSizesCommandError = async (output, context) => {
|
|
|
1835
1624
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1836
1625
|
default:
|
|
1837
1626
|
const parsedBody = parsedOutput.body;
|
|
1838
|
-
|
|
1627
|
+
return throwDefaultError({
|
|
1839
1628
|
output,
|
|
1840
1629
|
parsedBody,
|
|
1841
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1842
1630
|
errorCode,
|
|
1843
1631
|
});
|
|
1844
1632
|
}
|
|
@@ -1854,7 +1642,7 @@ const de_ListCalculationExecutionsCommand = async (output, context) => {
|
|
|
1854
1642
|
$metadata: deserializeMetadata(output),
|
|
1855
1643
|
...contents,
|
|
1856
1644
|
};
|
|
1857
|
-
return
|
|
1645
|
+
return response;
|
|
1858
1646
|
};
|
|
1859
1647
|
exports.de_ListCalculationExecutionsCommand = de_ListCalculationExecutionsCommand;
|
|
1860
1648
|
const de_ListCalculationExecutionsCommandError = async (output, context) => {
|
|
@@ -1875,10 +1663,9 @@ const de_ListCalculationExecutionsCommandError = async (output, context) => {
|
|
|
1875
1663
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1876
1664
|
default:
|
|
1877
1665
|
const parsedBody = parsedOutput.body;
|
|
1878
|
-
|
|
1666
|
+
return throwDefaultError({
|
|
1879
1667
|
output,
|
|
1880
1668
|
parsedBody,
|
|
1881
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1882
1669
|
errorCode,
|
|
1883
1670
|
});
|
|
1884
1671
|
}
|
|
@@ -1889,12 +1676,12 @@ const de_ListDatabasesCommand = async (output, context) => {
|
|
|
1889
1676
|
}
|
|
1890
1677
|
const data = await parseBody(output.body, context);
|
|
1891
1678
|
let contents = {};
|
|
1892
|
-
contents =
|
|
1679
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1893
1680
|
const response = {
|
|
1894
1681
|
$metadata: deserializeMetadata(output),
|
|
1895
1682
|
...contents,
|
|
1896
1683
|
};
|
|
1897
|
-
return
|
|
1684
|
+
return response;
|
|
1898
1685
|
};
|
|
1899
1686
|
exports.de_ListDatabasesCommand = de_ListDatabasesCommand;
|
|
1900
1687
|
const de_ListDatabasesCommandError = async (output, context) => {
|
|
@@ -1915,10 +1702,9 @@ const de_ListDatabasesCommandError = async (output, context) => {
|
|
|
1915
1702
|
throw await de_MetadataExceptionRes(parsedOutput, context);
|
|
1916
1703
|
default:
|
|
1917
1704
|
const parsedBody = parsedOutput.body;
|
|
1918
|
-
|
|
1705
|
+
return throwDefaultError({
|
|
1919
1706
|
output,
|
|
1920
1707
|
parsedBody,
|
|
1921
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1922
1708
|
errorCode,
|
|
1923
1709
|
});
|
|
1924
1710
|
}
|
|
@@ -1929,12 +1715,12 @@ const de_ListDataCatalogsCommand = async (output, context) => {
|
|
|
1929
1715
|
}
|
|
1930
1716
|
const data = await parseBody(output.body, context);
|
|
1931
1717
|
let contents = {};
|
|
1932
|
-
contents =
|
|
1718
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1933
1719
|
const response = {
|
|
1934
1720
|
$metadata: deserializeMetadata(output),
|
|
1935
1721
|
...contents,
|
|
1936
1722
|
};
|
|
1937
|
-
return
|
|
1723
|
+
return response;
|
|
1938
1724
|
};
|
|
1939
1725
|
exports.de_ListDataCatalogsCommand = de_ListDataCatalogsCommand;
|
|
1940
1726
|
const de_ListDataCatalogsCommandError = async (output, context) => {
|
|
@@ -1952,10 +1738,9 @@ const de_ListDataCatalogsCommandError = async (output, context) => {
|
|
|
1952
1738
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1953
1739
|
default:
|
|
1954
1740
|
const parsedBody = parsedOutput.body;
|
|
1955
|
-
|
|
1741
|
+
return throwDefaultError({
|
|
1956
1742
|
output,
|
|
1957
1743
|
parsedBody,
|
|
1958
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1959
1744
|
errorCode,
|
|
1960
1745
|
});
|
|
1961
1746
|
}
|
|
@@ -1966,12 +1751,12 @@ const de_ListEngineVersionsCommand = async (output, context) => {
|
|
|
1966
1751
|
}
|
|
1967
1752
|
const data = await parseBody(output.body, context);
|
|
1968
1753
|
let contents = {};
|
|
1969
|
-
contents =
|
|
1754
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1970
1755
|
const response = {
|
|
1971
1756
|
$metadata: deserializeMetadata(output),
|
|
1972
1757
|
...contents,
|
|
1973
1758
|
};
|
|
1974
|
-
return
|
|
1759
|
+
return response;
|
|
1975
1760
|
};
|
|
1976
1761
|
exports.de_ListEngineVersionsCommand = de_ListEngineVersionsCommand;
|
|
1977
1762
|
const de_ListEngineVersionsCommandError = async (output, context) => {
|
|
@@ -1989,10 +1774,9 @@ const de_ListEngineVersionsCommandError = async (output, context) => {
|
|
|
1989
1774
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1990
1775
|
default:
|
|
1991
1776
|
const parsedBody = parsedOutput.body;
|
|
1992
|
-
|
|
1777
|
+
return throwDefaultError({
|
|
1993
1778
|
output,
|
|
1994
1779
|
parsedBody,
|
|
1995
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1996
1780
|
errorCode,
|
|
1997
1781
|
});
|
|
1998
1782
|
}
|
|
@@ -2003,12 +1787,12 @@ const de_ListExecutorsCommand = async (output, context) => {
|
|
|
2003
1787
|
}
|
|
2004
1788
|
const data = await parseBody(output.body, context);
|
|
2005
1789
|
let contents = {};
|
|
2006
|
-
contents =
|
|
1790
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2007
1791
|
const response = {
|
|
2008
1792
|
$metadata: deserializeMetadata(output),
|
|
2009
1793
|
...contents,
|
|
2010
1794
|
};
|
|
2011
|
-
return
|
|
1795
|
+
return response;
|
|
2012
1796
|
};
|
|
2013
1797
|
exports.de_ListExecutorsCommand = de_ListExecutorsCommand;
|
|
2014
1798
|
const de_ListExecutorsCommandError = async (output, context) => {
|
|
@@ -2029,10 +1813,9 @@ const de_ListExecutorsCommandError = async (output, context) => {
|
|
|
2029
1813
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2030
1814
|
default:
|
|
2031
1815
|
const parsedBody = parsedOutput.body;
|
|
2032
|
-
|
|
1816
|
+
return throwDefaultError({
|
|
2033
1817
|
output,
|
|
2034
1818
|
parsedBody,
|
|
2035
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2036
1819
|
errorCode,
|
|
2037
1820
|
});
|
|
2038
1821
|
}
|
|
@@ -2043,12 +1826,12 @@ const de_ListNamedQueriesCommand = async (output, context) => {
|
|
|
2043
1826
|
}
|
|
2044
1827
|
const data = await parseBody(output.body, context);
|
|
2045
1828
|
let contents = {};
|
|
2046
|
-
contents =
|
|
1829
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2047
1830
|
const response = {
|
|
2048
1831
|
$metadata: deserializeMetadata(output),
|
|
2049
1832
|
...contents,
|
|
2050
1833
|
};
|
|
2051
|
-
return
|
|
1834
|
+
return response;
|
|
2052
1835
|
};
|
|
2053
1836
|
exports.de_ListNamedQueriesCommand = de_ListNamedQueriesCommand;
|
|
2054
1837
|
const de_ListNamedQueriesCommandError = async (output, context) => {
|
|
@@ -2066,10 +1849,9 @@ const de_ListNamedQueriesCommandError = async (output, context) => {
|
|
|
2066
1849
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2067
1850
|
default:
|
|
2068
1851
|
const parsedBody = parsedOutput.body;
|
|
2069
|
-
|
|
1852
|
+
return throwDefaultError({
|
|
2070
1853
|
output,
|
|
2071
1854
|
parsedBody,
|
|
2072
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2073
1855
|
errorCode,
|
|
2074
1856
|
});
|
|
2075
1857
|
}
|
|
@@ -2085,7 +1867,7 @@ const de_ListNotebookMetadataCommand = async (output, context) => {
|
|
|
2085
1867
|
$metadata: deserializeMetadata(output),
|
|
2086
1868
|
...contents,
|
|
2087
1869
|
};
|
|
2088
|
-
return
|
|
1870
|
+
return response;
|
|
2089
1871
|
};
|
|
2090
1872
|
exports.de_ListNotebookMetadataCommand = de_ListNotebookMetadataCommand;
|
|
2091
1873
|
const de_ListNotebookMetadataCommandError = async (output, context) => {
|
|
@@ -2106,10 +1888,9 @@ const de_ListNotebookMetadataCommandError = async (output, context) => {
|
|
|
2106
1888
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2107
1889
|
default:
|
|
2108
1890
|
const parsedBody = parsedOutput.body;
|
|
2109
|
-
|
|
1891
|
+
return throwDefaultError({
|
|
2110
1892
|
output,
|
|
2111
1893
|
parsedBody,
|
|
2112
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2113
1894
|
errorCode,
|
|
2114
1895
|
});
|
|
2115
1896
|
}
|
|
@@ -2125,7 +1906,7 @@ const de_ListNotebookSessionsCommand = async (output, context) => {
|
|
|
2125
1906
|
$metadata: deserializeMetadata(output),
|
|
2126
1907
|
...contents,
|
|
2127
1908
|
};
|
|
2128
|
-
return
|
|
1909
|
+
return response;
|
|
2129
1910
|
};
|
|
2130
1911
|
exports.de_ListNotebookSessionsCommand = de_ListNotebookSessionsCommand;
|
|
2131
1912
|
const de_ListNotebookSessionsCommandError = async (output, context) => {
|
|
@@ -2146,10 +1927,9 @@ const de_ListNotebookSessionsCommandError = async (output, context) => {
|
|
|
2146
1927
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2147
1928
|
default:
|
|
2148
1929
|
const parsedBody = parsedOutput.body;
|
|
2149
|
-
|
|
1930
|
+
return throwDefaultError({
|
|
2150
1931
|
output,
|
|
2151
1932
|
parsedBody,
|
|
2152
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2153
1933
|
errorCode,
|
|
2154
1934
|
});
|
|
2155
1935
|
}
|
|
@@ -2165,7 +1945,7 @@ const de_ListPreparedStatementsCommand = async (output, context) => {
|
|
|
2165
1945
|
$metadata: deserializeMetadata(output),
|
|
2166
1946
|
...contents,
|
|
2167
1947
|
};
|
|
2168
|
-
return
|
|
1948
|
+
return response;
|
|
2169
1949
|
};
|
|
2170
1950
|
exports.de_ListPreparedStatementsCommand = de_ListPreparedStatementsCommand;
|
|
2171
1951
|
const de_ListPreparedStatementsCommandError = async (output, context) => {
|
|
@@ -2183,10 +1963,9 @@ const de_ListPreparedStatementsCommandError = async (output, context) => {
|
|
|
2183
1963
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2184
1964
|
default:
|
|
2185
1965
|
const parsedBody = parsedOutput.body;
|
|
2186
|
-
|
|
1966
|
+
return throwDefaultError({
|
|
2187
1967
|
output,
|
|
2188
1968
|
parsedBody,
|
|
2189
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2190
1969
|
errorCode,
|
|
2191
1970
|
});
|
|
2192
1971
|
}
|
|
@@ -2197,12 +1976,12 @@ const de_ListQueryExecutionsCommand = async (output, context) => {
|
|
|
2197
1976
|
}
|
|
2198
1977
|
const data = await parseBody(output.body, context);
|
|
2199
1978
|
let contents = {};
|
|
2200
|
-
contents =
|
|
1979
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2201
1980
|
const response = {
|
|
2202
1981
|
$metadata: deserializeMetadata(output),
|
|
2203
1982
|
...contents,
|
|
2204
1983
|
};
|
|
2205
|
-
return
|
|
1984
|
+
return response;
|
|
2206
1985
|
};
|
|
2207
1986
|
exports.de_ListQueryExecutionsCommand = de_ListQueryExecutionsCommand;
|
|
2208
1987
|
const de_ListQueryExecutionsCommandError = async (output, context) => {
|
|
@@ -2220,10 +1999,9 @@ const de_ListQueryExecutionsCommandError = async (output, context) => {
|
|
|
2220
1999
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2221
2000
|
default:
|
|
2222
2001
|
const parsedBody = parsedOutput.body;
|
|
2223
|
-
|
|
2002
|
+
return throwDefaultError({
|
|
2224
2003
|
output,
|
|
2225
2004
|
parsedBody,
|
|
2226
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2227
2005
|
errorCode,
|
|
2228
2006
|
});
|
|
2229
2007
|
}
|
|
@@ -2239,7 +2017,7 @@ const de_ListSessionsCommand = async (output, context) => {
|
|
|
2239
2017
|
$metadata: deserializeMetadata(output),
|
|
2240
2018
|
...contents,
|
|
2241
2019
|
};
|
|
2242
|
-
return
|
|
2020
|
+
return response;
|
|
2243
2021
|
};
|
|
2244
2022
|
exports.de_ListSessionsCommand = de_ListSessionsCommand;
|
|
2245
2023
|
const de_ListSessionsCommandError = async (output, context) => {
|
|
@@ -2260,10 +2038,9 @@ const de_ListSessionsCommandError = async (output, context) => {
|
|
|
2260
2038
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2261
2039
|
default:
|
|
2262
2040
|
const parsedBody = parsedOutput.body;
|
|
2263
|
-
|
|
2041
|
+
return throwDefaultError({
|
|
2264
2042
|
output,
|
|
2265
2043
|
parsedBody,
|
|
2266
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2267
2044
|
errorCode,
|
|
2268
2045
|
});
|
|
2269
2046
|
}
|
|
@@ -2279,7 +2056,7 @@ const de_ListTableMetadataCommand = async (output, context) => {
|
|
|
2279
2056
|
$metadata: deserializeMetadata(output),
|
|
2280
2057
|
...contents,
|
|
2281
2058
|
};
|
|
2282
|
-
return
|
|
2059
|
+
return response;
|
|
2283
2060
|
};
|
|
2284
2061
|
exports.de_ListTableMetadataCommand = de_ListTableMetadataCommand;
|
|
2285
2062
|
const de_ListTableMetadataCommandError = async (output, context) => {
|
|
@@ -2300,10 +2077,9 @@ const de_ListTableMetadataCommandError = async (output, context) => {
|
|
|
2300
2077
|
throw await de_MetadataExceptionRes(parsedOutput, context);
|
|
2301
2078
|
default:
|
|
2302
2079
|
const parsedBody = parsedOutput.body;
|
|
2303
|
-
|
|
2080
|
+
return throwDefaultError({
|
|
2304
2081
|
output,
|
|
2305
2082
|
parsedBody,
|
|
2306
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2307
2083
|
errorCode,
|
|
2308
2084
|
});
|
|
2309
2085
|
}
|
|
@@ -2314,12 +2090,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2314
2090
|
}
|
|
2315
2091
|
const data = await parseBody(output.body, context);
|
|
2316
2092
|
let contents = {};
|
|
2317
|
-
contents =
|
|
2093
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2318
2094
|
const response = {
|
|
2319
2095
|
$metadata: deserializeMetadata(output),
|
|
2320
2096
|
...contents,
|
|
2321
2097
|
};
|
|
2322
|
-
return
|
|
2098
|
+
return response;
|
|
2323
2099
|
};
|
|
2324
2100
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2325
2101
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2340,10 +2116,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2340
2116
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2341
2117
|
default:
|
|
2342
2118
|
const parsedBody = parsedOutput.body;
|
|
2343
|
-
|
|
2119
|
+
return throwDefaultError({
|
|
2344
2120
|
output,
|
|
2345
2121
|
parsedBody,
|
|
2346
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2347
2122
|
errorCode,
|
|
2348
2123
|
});
|
|
2349
2124
|
}
|
|
@@ -2359,7 +2134,7 @@ const de_ListWorkGroupsCommand = async (output, context) => {
|
|
|
2359
2134
|
$metadata: deserializeMetadata(output),
|
|
2360
2135
|
...contents,
|
|
2361
2136
|
};
|
|
2362
|
-
return
|
|
2137
|
+
return response;
|
|
2363
2138
|
};
|
|
2364
2139
|
exports.de_ListWorkGroupsCommand = de_ListWorkGroupsCommand;
|
|
2365
2140
|
const de_ListWorkGroupsCommandError = async (output, context) => {
|
|
@@ -2377,10 +2152,9 @@ const de_ListWorkGroupsCommandError = async (output, context) => {
|
|
|
2377
2152
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2378
2153
|
default:
|
|
2379
2154
|
const parsedBody = parsedOutput.body;
|
|
2380
|
-
|
|
2155
|
+
return throwDefaultError({
|
|
2381
2156
|
output,
|
|
2382
2157
|
parsedBody,
|
|
2383
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2384
2158
|
errorCode,
|
|
2385
2159
|
});
|
|
2386
2160
|
}
|
|
@@ -2391,12 +2165,12 @@ const de_StartCalculationExecutionCommand = async (output, context) => {
|
|
|
2391
2165
|
}
|
|
2392
2166
|
const data = await parseBody(output.body, context);
|
|
2393
2167
|
let contents = {};
|
|
2394
|
-
contents =
|
|
2168
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2395
2169
|
const response = {
|
|
2396
2170
|
$metadata: deserializeMetadata(output),
|
|
2397
2171
|
...contents,
|
|
2398
2172
|
};
|
|
2399
|
-
return
|
|
2173
|
+
return response;
|
|
2400
2174
|
};
|
|
2401
2175
|
exports.de_StartCalculationExecutionCommand = de_StartCalculationExecutionCommand;
|
|
2402
2176
|
const de_StartCalculationExecutionCommandError = async (output, context) => {
|
|
@@ -2417,10 +2191,9 @@ const de_StartCalculationExecutionCommandError = async (output, context) => {
|
|
|
2417
2191
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2418
2192
|
default:
|
|
2419
2193
|
const parsedBody = parsedOutput.body;
|
|
2420
|
-
|
|
2194
|
+
return throwDefaultError({
|
|
2421
2195
|
output,
|
|
2422
2196
|
parsedBody,
|
|
2423
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2424
2197
|
errorCode,
|
|
2425
2198
|
});
|
|
2426
2199
|
}
|
|
@@ -2431,12 +2204,12 @@ const de_StartQueryExecutionCommand = async (output, context) => {
|
|
|
2431
2204
|
}
|
|
2432
2205
|
const data = await parseBody(output.body, context);
|
|
2433
2206
|
let contents = {};
|
|
2434
|
-
contents =
|
|
2207
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2435
2208
|
const response = {
|
|
2436
2209
|
$metadata: deserializeMetadata(output),
|
|
2437
2210
|
...contents,
|
|
2438
2211
|
};
|
|
2439
|
-
return
|
|
2212
|
+
return response;
|
|
2440
2213
|
};
|
|
2441
2214
|
exports.de_StartQueryExecutionCommand = de_StartQueryExecutionCommand;
|
|
2442
2215
|
const de_StartQueryExecutionCommandError = async (output, context) => {
|
|
@@ -2457,10 +2230,9 @@ const de_StartQueryExecutionCommandError = async (output, context) => {
|
|
|
2457
2230
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2458
2231
|
default:
|
|
2459
2232
|
const parsedBody = parsedOutput.body;
|
|
2460
|
-
|
|
2233
|
+
return throwDefaultError({
|
|
2461
2234
|
output,
|
|
2462
2235
|
parsedBody,
|
|
2463
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2464
2236
|
errorCode,
|
|
2465
2237
|
});
|
|
2466
2238
|
}
|
|
@@ -2471,12 +2243,12 @@ const de_StartSessionCommand = async (output, context) => {
|
|
|
2471
2243
|
}
|
|
2472
2244
|
const data = await parseBody(output.body, context);
|
|
2473
2245
|
let contents = {};
|
|
2474
|
-
contents =
|
|
2246
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2475
2247
|
const response = {
|
|
2476
2248
|
$metadata: deserializeMetadata(output),
|
|
2477
2249
|
...contents,
|
|
2478
2250
|
};
|
|
2479
|
-
return
|
|
2251
|
+
return response;
|
|
2480
2252
|
};
|
|
2481
2253
|
exports.de_StartSessionCommand = de_StartSessionCommand;
|
|
2482
2254
|
const de_StartSessionCommandError = async (output, context) => {
|
|
@@ -2503,10 +2275,9 @@ const de_StartSessionCommandError = async (output, context) => {
|
|
|
2503
2275
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2504
2276
|
default:
|
|
2505
2277
|
const parsedBody = parsedOutput.body;
|
|
2506
|
-
|
|
2278
|
+
return throwDefaultError({
|
|
2507
2279
|
output,
|
|
2508
2280
|
parsedBody,
|
|
2509
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2510
2281
|
errorCode,
|
|
2511
2282
|
});
|
|
2512
2283
|
}
|
|
@@ -2517,12 +2288,12 @@ const de_StopCalculationExecutionCommand = async (output, context) => {
|
|
|
2517
2288
|
}
|
|
2518
2289
|
const data = await parseBody(output.body, context);
|
|
2519
2290
|
let contents = {};
|
|
2520
|
-
contents =
|
|
2291
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2521
2292
|
const response = {
|
|
2522
2293
|
$metadata: deserializeMetadata(output),
|
|
2523
2294
|
...contents,
|
|
2524
2295
|
};
|
|
2525
|
-
return
|
|
2296
|
+
return response;
|
|
2526
2297
|
};
|
|
2527
2298
|
exports.de_StopCalculationExecutionCommand = de_StopCalculationExecutionCommand;
|
|
2528
2299
|
const de_StopCalculationExecutionCommandError = async (output, context) => {
|
|
@@ -2543,10 +2314,9 @@ const de_StopCalculationExecutionCommandError = async (output, context) => {
|
|
|
2543
2314
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2544
2315
|
default:
|
|
2545
2316
|
const parsedBody = parsedOutput.body;
|
|
2546
|
-
|
|
2317
|
+
return throwDefaultError({
|
|
2547
2318
|
output,
|
|
2548
2319
|
parsedBody,
|
|
2549
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2550
2320
|
errorCode,
|
|
2551
2321
|
});
|
|
2552
2322
|
}
|
|
@@ -2557,12 +2327,12 @@ const de_StopQueryExecutionCommand = async (output, context) => {
|
|
|
2557
2327
|
}
|
|
2558
2328
|
const data = await parseBody(output.body, context);
|
|
2559
2329
|
let contents = {};
|
|
2560
|
-
contents =
|
|
2330
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2561
2331
|
const response = {
|
|
2562
2332
|
$metadata: deserializeMetadata(output),
|
|
2563
2333
|
...contents,
|
|
2564
2334
|
};
|
|
2565
|
-
return
|
|
2335
|
+
return response;
|
|
2566
2336
|
};
|
|
2567
2337
|
exports.de_StopQueryExecutionCommand = de_StopQueryExecutionCommand;
|
|
2568
2338
|
const de_StopQueryExecutionCommandError = async (output, context) => {
|
|
@@ -2580,10 +2350,9 @@ const de_StopQueryExecutionCommandError = async (output, context) => {
|
|
|
2580
2350
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2581
2351
|
default:
|
|
2582
2352
|
const parsedBody = parsedOutput.body;
|
|
2583
|
-
|
|
2353
|
+
return throwDefaultError({
|
|
2584
2354
|
output,
|
|
2585
2355
|
parsedBody,
|
|
2586
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2587
2356
|
errorCode,
|
|
2588
2357
|
});
|
|
2589
2358
|
}
|
|
@@ -2594,12 +2363,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2594
2363
|
}
|
|
2595
2364
|
const data = await parseBody(output.body, context);
|
|
2596
2365
|
let contents = {};
|
|
2597
|
-
contents =
|
|
2366
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2598
2367
|
const response = {
|
|
2599
2368
|
$metadata: deserializeMetadata(output),
|
|
2600
2369
|
...contents,
|
|
2601
2370
|
};
|
|
2602
|
-
return
|
|
2371
|
+
return response;
|
|
2603
2372
|
};
|
|
2604
2373
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2605
2374
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -2620,10 +2389,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2620
2389
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2621
2390
|
default:
|
|
2622
2391
|
const parsedBody = parsedOutput.body;
|
|
2623
|
-
|
|
2392
|
+
return throwDefaultError({
|
|
2624
2393
|
output,
|
|
2625
2394
|
parsedBody,
|
|
2626
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2627
2395
|
errorCode,
|
|
2628
2396
|
});
|
|
2629
2397
|
}
|
|
@@ -2634,12 +2402,12 @@ const de_TerminateSessionCommand = async (output, context) => {
|
|
|
2634
2402
|
}
|
|
2635
2403
|
const data = await parseBody(output.body, context);
|
|
2636
2404
|
let contents = {};
|
|
2637
|
-
contents =
|
|
2405
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2638
2406
|
const response = {
|
|
2639
2407
|
$metadata: deserializeMetadata(output),
|
|
2640
2408
|
...contents,
|
|
2641
2409
|
};
|
|
2642
|
-
return
|
|
2410
|
+
return response;
|
|
2643
2411
|
};
|
|
2644
2412
|
exports.de_TerminateSessionCommand = de_TerminateSessionCommand;
|
|
2645
2413
|
const de_TerminateSessionCommandError = async (output, context) => {
|
|
@@ -2660,10 +2428,9 @@ const de_TerminateSessionCommandError = async (output, context) => {
|
|
|
2660
2428
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2661
2429
|
default:
|
|
2662
2430
|
const parsedBody = parsedOutput.body;
|
|
2663
|
-
|
|
2431
|
+
return throwDefaultError({
|
|
2664
2432
|
output,
|
|
2665
2433
|
parsedBody,
|
|
2666
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2667
2434
|
errorCode,
|
|
2668
2435
|
});
|
|
2669
2436
|
}
|
|
@@ -2674,12 +2441,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2674
2441
|
}
|
|
2675
2442
|
const data = await parseBody(output.body, context);
|
|
2676
2443
|
let contents = {};
|
|
2677
|
-
contents =
|
|
2444
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2678
2445
|
const response = {
|
|
2679
2446
|
$metadata: deserializeMetadata(output),
|
|
2680
2447
|
...contents,
|
|
2681
2448
|
};
|
|
2682
|
-
return
|
|
2449
|
+
return response;
|
|
2683
2450
|
};
|
|
2684
2451
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2685
2452
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -2700,10 +2467,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2700
2467
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2701
2468
|
default:
|
|
2702
2469
|
const parsedBody = parsedOutput.body;
|
|
2703
|
-
|
|
2470
|
+
return throwDefaultError({
|
|
2704
2471
|
output,
|
|
2705
2472
|
parsedBody,
|
|
2706
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2707
2473
|
errorCode,
|
|
2708
2474
|
});
|
|
2709
2475
|
}
|
|
@@ -2714,12 +2480,12 @@ const de_UpdateDataCatalogCommand = async (output, context) => {
|
|
|
2714
2480
|
}
|
|
2715
2481
|
const data = await parseBody(output.body, context);
|
|
2716
2482
|
let contents = {};
|
|
2717
|
-
contents =
|
|
2483
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2718
2484
|
const response = {
|
|
2719
2485
|
$metadata: deserializeMetadata(output),
|
|
2720
2486
|
...contents,
|
|
2721
2487
|
};
|
|
2722
|
-
return
|
|
2488
|
+
return response;
|
|
2723
2489
|
};
|
|
2724
2490
|
exports.de_UpdateDataCatalogCommand = de_UpdateDataCatalogCommand;
|
|
2725
2491
|
const de_UpdateDataCatalogCommandError = async (output, context) => {
|
|
@@ -2737,10 +2503,9 @@ const de_UpdateDataCatalogCommandError = async (output, context) => {
|
|
|
2737
2503
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2738
2504
|
default:
|
|
2739
2505
|
const parsedBody = parsedOutput.body;
|
|
2740
|
-
|
|
2506
|
+
return throwDefaultError({
|
|
2741
2507
|
output,
|
|
2742
2508
|
parsedBody,
|
|
2743
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2744
2509
|
errorCode,
|
|
2745
2510
|
});
|
|
2746
2511
|
}
|
|
@@ -2751,12 +2516,12 @@ const de_UpdateNamedQueryCommand = async (output, context) => {
|
|
|
2751
2516
|
}
|
|
2752
2517
|
const data = await parseBody(output.body, context);
|
|
2753
2518
|
let contents = {};
|
|
2754
|
-
contents =
|
|
2519
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2755
2520
|
const response = {
|
|
2756
2521
|
$metadata: deserializeMetadata(output),
|
|
2757
2522
|
...contents,
|
|
2758
2523
|
};
|
|
2759
|
-
return
|
|
2524
|
+
return response;
|
|
2760
2525
|
};
|
|
2761
2526
|
exports.de_UpdateNamedQueryCommand = de_UpdateNamedQueryCommand;
|
|
2762
2527
|
const de_UpdateNamedQueryCommandError = async (output, context) => {
|
|
@@ -2774,10 +2539,9 @@ const de_UpdateNamedQueryCommandError = async (output, context) => {
|
|
|
2774
2539
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2775
2540
|
default:
|
|
2776
2541
|
const parsedBody = parsedOutput.body;
|
|
2777
|
-
|
|
2542
|
+
return throwDefaultError({
|
|
2778
2543
|
output,
|
|
2779
2544
|
parsedBody,
|
|
2780
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2781
2545
|
errorCode,
|
|
2782
2546
|
});
|
|
2783
2547
|
}
|
|
@@ -2788,12 +2552,12 @@ const de_UpdateNotebookCommand = async (output, context) => {
|
|
|
2788
2552
|
}
|
|
2789
2553
|
const data = await parseBody(output.body, context);
|
|
2790
2554
|
let contents = {};
|
|
2791
|
-
contents =
|
|
2555
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2792
2556
|
const response = {
|
|
2793
2557
|
$metadata: deserializeMetadata(output),
|
|
2794
2558
|
...contents,
|
|
2795
2559
|
};
|
|
2796
|
-
return
|
|
2560
|
+
return response;
|
|
2797
2561
|
};
|
|
2798
2562
|
exports.de_UpdateNotebookCommand = de_UpdateNotebookCommand;
|
|
2799
2563
|
const de_UpdateNotebookCommandError = async (output, context) => {
|
|
@@ -2814,10 +2578,9 @@ const de_UpdateNotebookCommandError = async (output, context) => {
|
|
|
2814
2578
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2815
2579
|
default:
|
|
2816
2580
|
const parsedBody = parsedOutput.body;
|
|
2817
|
-
|
|
2581
|
+
return throwDefaultError({
|
|
2818
2582
|
output,
|
|
2819
2583
|
parsedBody,
|
|
2820
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2821
2584
|
errorCode,
|
|
2822
2585
|
});
|
|
2823
2586
|
}
|
|
@@ -2828,12 +2591,12 @@ const de_UpdateNotebookMetadataCommand = async (output, context) => {
|
|
|
2828
2591
|
}
|
|
2829
2592
|
const data = await parseBody(output.body, context);
|
|
2830
2593
|
let contents = {};
|
|
2831
|
-
contents =
|
|
2594
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2832
2595
|
const response = {
|
|
2833
2596
|
$metadata: deserializeMetadata(output),
|
|
2834
2597
|
...contents,
|
|
2835
2598
|
};
|
|
2836
|
-
return
|
|
2599
|
+
return response;
|
|
2837
2600
|
};
|
|
2838
2601
|
exports.de_UpdateNotebookMetadataCommand = de_UpdateNotebookMetadataCommand;
|
|
2839
2602
|
const de_UpdateNotebookMetadataCommandError = async (output, context) => {
|
|
@@ -2854,10 +2617,9 @@ const de_UpdateNotebookMetadataCommandError = async (output, context) => {
|
|
|
2854
2617
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2855
2618
|
default:
|
|
2856
2619
|
const parsedBody = parsedOutput.body;
|
|
2857
|
-
|
|
2620
|
+
return throwDefaultError({
|
|
2858
2621
|
output,
|
|
2859
2622
|
parsedBody,
|
|
2860
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2861
2623
|
errorCode,
|
|
2862
2624
|
});
|
|
2863
2625
|
}
|
|
@@ -2868,12 +2630,12 @@ const de_UpdatePreparedStatementCommand = async (output, context) => {
|
|
|
2868
2630
|
}
|
|
2869
2631
|
const data = await parseBody(output.body, context);
|
|
2870
2632
|
let contents = {};
|
|
2871
|
-
contents =
|
|
2633
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2872
2634
|
const response = {
|
|
2873
2635
|
$metadata: deserializeMetadata(output),
|
|
2874
2636
|
...contents,
|
|
2875
2637
|
};
|
|
2876
|
-
return
|
|
2638
|
+
return response;
|
|
2877
2639
|
};
|
|
2878
2640
|
exports.de_UpdatePreparedStatementCommand = de_UpdatePreparedStatementCommand;
|
|
2879
2641
|
const de_UpdatePreparedStatementCommandError = async (output, context) => {
|
|
@@ -2894,10 +2656,9 @@ const de_UpdatePreparedStatementCommandError = async (output, context) => {
|
|
|
2894
2656
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2895
2657
|
default:
|
|
2896
2658
|
const parsedBody = parsedOutput.body;
|
|
2897
|
-
|
|
2659
|
+
return throwDefaultError({
|
|
2898
2660
|
output,
|
|
2899
2661
|
parsedBody,
|
|
2900
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2901
2662
|
errorCode,
|
|
2902
2663
|
});
|
|
2903
2664
|
}
|
|
@@ -2908,12 +2669,12 @@ const de_UpdateWorkGroupCommand = async (output, context) => {
|
|
|
2908
2669
|
}
|
|
2909
2670
|
const data = await parseBody(output.body, context);
|
|
2910
2671
|
let contents = {};
|
|
2911
|
-
contents =
|
|
2672
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2912
2673
|
const response = {
|
|
2913
2674
|
$metadata: deserializeMetadata(output),
|
|
2914
2675
|
...contents,
|
|
2915
2676
|
};
|
|
2916
|
-
return
|
|
2677
|
+
return response;
|
|
2917
2678
|
};
|
|
2918
2679
|
exports.de_UpdateWorkGroupCommand = de_UpdateWorkGroupCommand;
|
|
2919
2680
|
const de_UpdateWorkGroupCommandError = async (output, context) => {
|
|
@@ -2931,17 +2692,16 @@ const de_UpdateWorkGroupCommandError = async (output, context) => {
|
|
|
2931
2692
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2932
2693
|
default:
|
|
2933
2694
|
const parsedBody = parsedOutput.body;
|
|
2934
|
-
|
|
2695
|
+
return throwDefaultError({
|
|
2935
2696
|
output,
|
|
2936
2697
|
parsedBody,
|
|
2937
|
-
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2938
2698
|
errorCode,
|
|
2939
2699
|
});
|
|
2940
2700
|
}
|
|
2941
2701
|
};
|
|
2942
2702
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2943
2703
|
const body = parsedOutput.body;
|
|
2944
|
-
const deserialized =
|
|
2704
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2945
2705
|
const exception = new models_0_1.InternalServerException({
|
|
2946
2706
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2947
2707
|
...deserialized,
|
|
@@ -2950,7 +2710,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2950
2710
|
};
|
|
2951
2711
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
2952
2712
|
const body = parsedOutput.body;
|
|
2953
|
-
const deserialized =
|
|
2713
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2954
2714
|
const exception = new models_0_1.InvalidRequestException({
|
|
2955
2715
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2956
2716
|
...deserialized,
|
|
@@ -2959,7 +2719,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2959
2719
|
};
|
|
2960
2720
|
const de_MetadataExceptionRes = async (parsedOutput, context) => {
|
|
2961
2721
|
const body = parsedOutput.body;
|
|
2962
|
-
const deserialized =
|
|
2722
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2963
2723
|
const exception = new models_0_1.MetadataException({
|
|
2964
2724
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2965
2725
|
...deserialized,
|
|
@@ -2968,7 +2728,7 @@ const de_MetadataExceptionRes = async (parsedOutput, context) => {
|
|
|
2968
2728
|
};
|
|
2969
2729
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2970
2730
|
const body = parsedOutput.body;
|
|
2971
|
-
const deserialized =
|
|
2731
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2972
2732
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2973
2733
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2974
2734
|
...deserialized,
|
|
@@ -2977,7 +2737,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2977
2737
|
};
|
|
2978
2738
|
const de_SessionAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2979
2739
|
const body = parsedOutput.body;
|
|
2980
|
-
const deserialized =
|
|
2740
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2981
2741
|
const exception = new models_0_1.SessionAlreadyExistsException({
|
|
2982
2742
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2983
2743
|
...deserialized,
|
|
@@ -2986,1253 +2746,238 @@ const de_SessionAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
2986
2746
|
};
|
|
2987
2747
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2988
2748
|
const body = parsedOutput.body;
|
|
2989
|
-
const deserialized =
|
|
2749
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2990
2750
|
const exception = new models_0_1.TooManyRequestsException({
|
|
2991
2751
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2992
2752
|
...deserialized,
|
|
2993
2753
|
});
|
|
2994
2754
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2995
2755
|
};
|
|
2996
|
-
const
|
|
2997
|
-
return {
|
|
2998
|
-
|
|
2999
|
-
|
|
2756
|
+
const se_CreateNamedQueryInput = (input, context) => {
|
|
2757
|
+
return (0, smithy_client_1.take)(input, {
|
|
2758
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
2759
|
+
Database: [],
|
|
2760
|
+
Description: [],
|
|
2761
|
+
Name: [],
|
|
2762
|
+
QueryString: [],
|
|
2763
|
+
WorkGroup: [],
|
|
2764
|
+
});
|
|
3000
2765
|
};
|
|
3001
|
-
const
|
|
3002
|
-
return {
|
|
3003
|
-
|
|
3004
|
-
};
|
|
2766
|
+
const se_DeleteNamedQueryInput = (input, context) => {
|
|
2767
|
+
return (0, smithy_client_1.take)(input, {
|
|
2768
|
+
NamedQueryId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
2769
|
+
});
|
|
3005
2770
|
};
|
|
3006
|
-
const
|
|
3007
|
-
return {
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
2771
|
+
const se_StartQueryExecutionInput = (input, context) => {
|
|
2772
|
+
return (0, smithy_client_1.take)(input, {
|
|
2773
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
2774
|
+
ExecutionParameters: smithy_client_1._json,
|
|
2775
|
+
QueryExecutionContext: smithy_client_1._json,
|
|
2776
|
+
QueryString: [],
|
|
2777
|
+
ResultConfiguration: smithy_client_1._json,
|
|
2778
|
+
ResultReuseConfiguration: smithy_client_1._json,
|
|
2779
|
+
WorkGroup: [],
|
|
2780
|
+
});
|
|
3013
2781
|
};
|
|
3014
|
-
const
|
|
3015
|
-
return {
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
}),
|
|
3019
|
-
};
|
|
2782
|
+
const se_StopQueryExecutionInput = (input, context) => {
|
|
2783
|
+
return (0, smithy_client_1.take)(input, {
|
|
2784
|
+
QueryExecutionId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
2785
|
+
});
|
|
3020
2786
|
};
|
|
3021
|
-
const
|
|
3022
|
-
return {
|
|
3023
|
-
|
|
3024
|
-
|
|
2787
|
+
const de_BatchGetPreparedStatementOutput = (output, context) => {
|
|
2788
|
+
return (0, smithy_client_1.take)(output, {
|
|
2789
|
+
PreparedStatements: (_) => de_PreparedStatementDetailsList(_, context),
|
|
2790
|
+
UnprocessedPreparedStatementNames: smithy_client_1._json,
|
|
2791
|
+
});
|
|
3025
2792
|
};
|
|
3026
|
-
const
|
|
3027
|
-
return {
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3032
|
-
...(input.Type != null && { Type: input.Type }),
|
|
3033
|
-
};
|
|
2793
|
+
const de_BatchGetQueryExecutionOutput = (output, context) => {
|
|
2794
|
+
return (0, smithy_client_1.take)(output, {
|
|
2795
|
+
QueryExecutions: (_) => de_QueryExecutionList(_, context),
|
|
2796
|
+
UnprocessedQueryExecutionIds: smithy_client_1._json,
|
|
2797
|
+
});
|
|
3034
2798
|
};
|
|
3035
|
-
const
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3043
|
-
};
|
|
2799
|
+
const de_CalculationsList = (output, context) => {
|
|
2800
|
+
const retVal = (output || [])
|
|
2801
|
+
.filter((e) => e != null)
|
|
2802
|
+
.map((entry) => {
|
|
2803
|
+
return de_CalculationSummary(entry, context);
|
|
2804
|
+
});
|
|
2805
|
+
return retVal;
|
|
3044
2806
|
};
|
|
3045
|
-
const
|
|
3046
|
-
return {
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
2807
|
+
const de_CalculationStatus = (output, context) => {
|
|
2808
|
+
return (0, smithy_client_1.take)(output, {
|
|
2809
|
+
CompletionDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2810
|
+
State: smithy_client_1.expectString,
|
|
2811
|
+
StateChangeReason: smithy_client_1.expectString,
|
|
2812
|
+
SubmissionDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2813
|
+
});
|
|
3051
2814
|
};
|
|
3052
|
-
const
|
|
3053
|
-
return {
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
};
|
|
2815
|
+
const de_CalculationSummary = (output, context) => {
|
|
2816
|
+
return (0, smithy_client_1.take)(output, {
|
|
2817
|
+
CalculationExecutionId: smithy_client_1.expectString,
|
|
2818
|
+
Description: smithy_client_1.expectString,
|
|
2819
|
+
Status: (_) => de_CalculationStatus(_, context),
|
|
2820
|
+
});
|
|
3059
2821
|
};
|
|
3060
|
-
const
|
|
3061
|
-
return {
|
|
3062
|
-
|
|
3063
|
-
|
|
2822
|
+
const de_ExportNotebookOutput = (output, context) => {
|
|
2823
|
+
return (0, smithy_client_1.take)(output, {
|
|
2824
|
+
NotebookMetadata: (_) => de_NotebookMetadata(_, context),
|
|
2825
|
+
Payload: smithy_client_1.expectString,
|
|
2826
|
+
});
|
|
3064
2827
|
};
|
|
3065
|
-
const
|
|
3066
|
-
return {
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
2828
|
+
const de_GetCalculationExecutionResponse = (output, context) => {
|
|
2829
|
+
return (0, smithy_client_1.take)(output, {
|
|
2830
|
+
CalculationExecutionId: smithy_client_1.expectString,
|
|
2831
|
+
Description: smithy_client_1.expectString,
|
|
2832
|
+
Result: smithy_client_1._json,
|
|
2833
|
+
SessionId: smithy_client_1.expectString,
|
|
2834
|
+
Statistics: smithy_client_1._json,
|
|
2835
|
+
Status: (_) => de_CalculationStatus(_, context),
|
|
2836
|
+
WorkingDirectory: smithy_client_1.expectString,
|
|
2837
|
+
});
|
|
3072
2838
|
};
|
|
3073
|
-
const
|
|
3074
|
-
return {
|
|
3075
|
-
|
|
3076
|
-
|
|
2839
|
+
const de_GetCalculationExecutionStatusResponse = (output, context) => {
|
|
2840
|
+
return (0, smithy_client_1.take)(output, {
|
|
2841
|
+
Statistics: smithy_client_1._json,
|
|
2842
|
+
Status: (_) => de_CalculationStatus(_, context),
|
|
2843
|
+
});
|
|
3077
2844
|
};
|
|
3078
|
-
const
|
|
3079
|
-
return {
|
|
3080
|
-
|
|
3081
|
-
};
|
|
2845
|
+
const de_GetNotebookMetadataOutput = (output, context) => {
|
|
2846
|
+
return (0, smithy_client_1.take)(output, {
|
|
2847
|
+
NotebookMetadata: (_) => de_NotebookMetadata(_, context),
|
|
2848
|
+
});
|
|
3082
2849
|
};
|
|
3083
|
-
const
|
|
3084
|
-
return {
|
|
3085
|
-
|
|
3086
|
-
};
|
|
2850
|
+
const de_GetPreparedStatementOutput = (output, context) => {
|
|
2851
|
+
return (0, smithy_client_1.take)(output, {
|
|
2852
|
+
PreparedStatement: (_) => de_PreparedStatement(_, context),
|
|
2853
|
+
});
|
|
3087
2854
|
};
|
|
3088
|
-
const
|
|
3089
|
-
return {
|
|
3090
|
-
|
|
3091
|
-
};
|
|
2855
|
+
const de_GetQueryExecutionOutput = (output, context) => {
|
|
2856
|
+
return (0, smithy_client_1.take)(output, {
|
|
2857
|
+
QueryExecution: (_) => de_QueryExecution(_, context),
|
|
2858
|
+
});
|
|
3092
2859
|
};
|
|
3093
|
-
const
|
|
3094
|
-
return {
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
};
|
|
2860
|
+
const de_GetQueryRuntimeStatisticsOutput = (output, context) => {
|
|
2861
|
+
return (0, smithy_client_1.take)(output, {
|
|
2862
|
+
QueryRuntimeStatistics: (_) => de_QueryRuntimeStatistics(_, context),
|
|
2863
|
+
});
|
|
3098
2864
|
};
|
|
3099
|
-
const
|
|
3100
|
-
return {
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
2865
|
+
const de_GetSessionResponse = (output, context) => {
|
|
2866
|
+
return (0, smithy_client_1.take)(output, {
|
|
2867
|
+
Description: smithy_client_1.expectString,
|
|
2868
|
+
EngineConfiguration: smithy_client_1._json,
|
|
2869
|
+
EngineVersion: smithy_client_1.expectString,
|
|
2870
|
+
NotebookVersion: smithy_client_1.expectString,
|
|
2871
|
+
SessionConfiguration: smithy_client_1._json,
|
|
2872
|
+
SessionId: smithy_client_1.expectString,
|
|
2873
|
+
Statistics: smithy_client_1._json,
|
|
2874
|
+
Status: (_) => de_SessionStatus(_, context),
|
|
2875
|
+
WorkGroup: smithy_client_1.expectString,
|
|
2876
|
+
});
|
|
3104
2877
|
};
|
|
3105
|
-
const
|
|
3106
|
-
return {
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
};
|
|
2878
|
+
const de_GetSessionStatusResponse = (output, context) => {
|
|
2879
|
+
return (0, smithy_client_1.take)(output, {
|
|
2880
|
+
SessionId: smithy_client_1.expectString,
|
|
2881
|
+
Status: (_) => de_SessionStatus(_, context),
|
|
2882
|
+
});
|
|
3110
2883
|
};
|
|
3111
|
-
const
|
|
3112
|
-
return {
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
...(input.DefaultExecutorDpuSize != null && { DefaultExecutorDpuSize: input.DefaultExecutorDpuSize }),
|
|
3116
|
-
...(input.MaxConcurrentDpus != null && { MaxConcurrentDpus: input.MaxConcurrentDpus }),
|
|
3117
|
-
};
|
|
2884
|
+
const de_GetTableMetadataOutput = (output, context) => {
|
|
2885
|
+
return (0, smithy_client_1.take)(output, {
|
|
2886
|
+
TableMetadata: (_) => de_TableMetadata(_, context),
|
|
2887
|
+
});
|
|
3118
2888
|
};
|
|
3119
|
-
const
|
|
3120
|
-
return {
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
};
|
|
2889
|
+
const de_GetWorkGroupOutput = (output, context) => {
|
|
2890
|
+
return (0, smithy_client_1.take)(output, {
|
|
2891
|
+
WorkGroup: (_) => de_WorkGroup(_, context),
|
|
2892
|
+
});
|
|
3124
2893
|
};
|
|
3125
|
-
const
|
|
3126
|
-
return
|
|
3127
|
-
|
|
3128
|
-
.
|
|
3129
|
-
return entry;
|
|
2894
|
+
const de_ListCalculationExecutionsResponse = (output, context) => {
|
|
2895
|
+
return (0, smithy_client_1.take)(output, {
|
|
2896
|
+
Calculations: (_) => de_CalculationsList(_, context),
|
|
2897
|
+
NextToken: smithy_client_1.expectString,
|
|
3130
2898
|
});
|
|
3131
2899
|
};
|
|
3132
|
-
const
|
|
3133
|
-
return {
|
|
3134
|
-
|
|
3135
|
-
|
|
2900
|
+
const de_ListNotebookMetadataOutput = (output, context) => {
|
|
2901
|
+
return (0, smithy_client_1.take)(output, {
|
|
2902
|
+
NextToken: smithy_client_1.expectString,
|
|
2903
|
+
NotebookMetadataList: (_) => de_NotebookMetadataArray(_, context),
|
|
2904
|
+
});
|
|
3136
2905
|
};
|
|
3137
|
-
const
|
|
3138
|
-
return {
|
|
3139
|
-
|
|
3140
|
-
|
|
2906
|
+
const de_ListNotebookSessionsResponse = (output, context) => {
|
|
2907
|
+
return (0, smithy_client_1.take)(output, {
|
|
2908
|
+
NextToken: smithy_client_1.expectString,
|
|
2909
|
+
NotebookSessionsList: (_) => de_NotebookSessionsList(_, context),
|
|
2910
|
+
});
|
|
3141
2911
|
};
|
|
3142
|
-
const
|
|
3143
|
-
return {
|
|
3144
|
-
|
|
3145
|
-
|
|
2912
|
+
const de_ListPreparedStatementsOutput = (output, context) => {
|
|
2913
|
+
return (0, smithy_client_1.take)(output, {
|
|
2914
|
+
NextToken: smithy_client_1.expectString,
|
|
2915
|
+
PreparedStatements: (_) => de_PreparedStatementsList(_, context),
|
|
2916
|
+
});
|
|
3146
2917
|
};
|
|
3147
|
-
const
|
|
3148
|
-
return {
|
|
3149
|
-
|
|
3150
|
-
|
|
2918
|
+
const de_ListSessionsResponse = (output, context) => {
|
|
2919
|
+
return (0, smithy_client_1.take)(output, {
|
|
2920
|
+
NextToken: smithy_client_1.expectString,
|
|
2921
|
+
Sessions: (_) => de_SessionsList(_, context),
|
|
2922
|
+
});
|
|
3151
2923
|
};
|
|
3152
|
-
const
|
|
3153
|
-
return {
|
|
3154
|
-
|
|
3155
|
-
|
|
2924
|
+
const de_ListTableMetadataOutput = (output, context) => {
|
|
2925
|
+
return (0, smithy_client_1.take)(output, {
|
|
2926
|
+
NextToken: smithy_client_1.expectString,
|
|
2927
|
+
TableMetadataList: (_) => de_TableMetadataList(_, context),
|
|
2928
|
+
});
|
|
3156
2929
|
};
|
|
3157
|
-
const
|
|
3158
|
-
return {
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
};
|
|
2930
|
+
const de_ListWorkGroupsOutput = (output, context) => {
|
|
2931
|
+
return (0, smithy_client_1.take)(output, {
|
|
2932
|
+
NextToken: smithy_client_1.expectString,
|
|
2933
|
+
WorkGroups: (_) => de_WorkGroupsList(_, context),
|
|
2934
|
+
});
|
|
3162
2935
|
};
|
|
3163
|
-
const
|
|
3164
|
-
return {
|
|
3165
|
-
|
|
3166
|
-
|
|
2936
|
+
const de_NotebookMetadata = (output, context) => {
|
|
2937
|
+
return (0, smithy_client_1.take)(output, {
|
|
2938
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2939
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2940
|
+
Name: smithy_client_1.expectString,
|
|
2941
|
+
NotebookId: smithy_client_1.expectString,
|
|
2942
|
+
Type: smithy_client_1.expectString,
|
|
2943
|
+
WorkGroup: smithy_client_1.expectString,
|
|
2944
|
+
});
|
|
3167
2945
|
};
|
|
3168
|
-
const
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
2946
|
+
const de_NotebookMetadataArray = (output, context) => {
|
|
2947
|
+
const retVal = (output || [])
|
|
2948
|
+
.filter((e) => e != null)
|
|
2949
|
+
.map((entry) => {
|
|
2950
|
+
return de_NotebookMetadata(entry, context);
|
|
2951
|
+
});
|
|
2952
|
+
return retVal;
|
|
3172
2953
|
};
|
|
3173
|
-
const
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
return
|
|
3180
|
-
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
3181
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3182
|
-
};
|
|
3183
|
-
};
|
|
3184
|
-
const se_GetQueryExecutionInput = (input, context) => {
|
|
3185
|
-
return {
|
|
3186
|
-
...(input.QueryExecutionId != null && { QueryExecutionId: input.QueryExecutionId }),
|
|
3187
|
-
};
|
|
3188
|
-
};
|
|
3189
|
-
const se_GetQueryResultsInput = (input, context) => {
|
|
3190
|
-
return {
|
|
3191
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3192
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3193
|
-
...(input.QueryExecutionId != null && { QueryExecutionId: input.QueryExecutionId }),
|
|
3194
|
-
};
|
|
3195
|
-
};
|
|
3196
|
-
const se_GetQueryRuntimeStatisticsInput = (input, context) => {
|
|
3197
|
-
return {
|
|
3198
|
-
...(input.QueryExecutionId != null && { QueryExecutionId: input.QueryExecutionId }),
|
|
3199
|
-
};
|
|
3200
|
-
};
|
|
3201
|
-
const se_GetSessionRequest = (input, context) => {
|
|
3202
|
-
return {
|
|
3203
|
-
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3204
|
-
};
|
|
3205
|
-
};
|
|
3206
|
-
const se_GetSessionStatusRequest = (input, context) => {
|
|
3207
|
-
return {
|
|
3208
|
-
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3209
|
-
};
|
|
3210
|
-
};
|
|
3211
|
-
const se_GetTableMetadataInput = (input, context) => {
|
|
3212
|
-
return {
|
|
3213
|
-
...(input.CatalogName != null && { CatalogName: input.CatalogName }),
|
|
3214
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
3215
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
3216
|
-
};
|
|
3217
|
-
};
|
|
3218
|
-
const se_GetWorkGroupInput = (input, context) => {
|
|
3219
|
-
return {
|
|
3220
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3221
|
-
};
|
|
3222
|
-
};
|
|
3223
|
-
const se_ImportNotebookInput = (input, context) => {
|
|
3224
|
-
return {
|
|
3225
|
-
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3226
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3227
|
-
...(input.Payload != null && { Payload: input.Payload }),
|
|
3228
|
-
...(input.Type != null && { Type: input.Type }),
|
|
3229
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3230
|
-
};
|
|
3231
|
-
};
|
|
3232
|
-
const se_ListApplicationDPUSizesInput = (input, context) => {
|
|
3233
|
-
return {
|
|
3234
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3235
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3236
|
-
};
|
|
3237
|
-
};
|
|
3238
|
-
const se_ListCalculationExecutionsRequest = (input, context) => {
|
|
3239
|
-
return {
|
|
3240
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3241
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3242
|
-
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3243
|
-
...(input.StateFilter != null && { StateFilter: input.StateFilter }),
|
|
3244
|
-
};
|
|
3245
|
-
};
|
|
3246
|
-
const se_ListDatabasesInput = (input, context) => {
|
|
3247
|
-
return {
|
|
3248
|
-
...(input.CatalogName != null && { CatalogName: input.CatalogName }),
|
|
3249
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3250
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3251
|
-
};
|
|
3252
|
-
};
|
|
3253
|
-
const se_ListDataCatalogsInput = (input, context) => {
|
|
3254
|
-
return {
|
|
3255
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3256
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3257
|
-
};
|
|
3258
|
-
};
|
|
3259
|
-
const se_ListEngineVersionsInput = (input, context) => {
|
|
3260
|
-
return {
|
|
3261
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3262
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3263
|
-
};
|
|
3264
|
-
};
|
|
3265
|
-
const se_ListExecutorsRequest = (input, context) => {
|
|
3266
|
-
return {
|
|
3267
|
-
...(input.ExecutorStateFilter != null && { ExecutorStateFilter: input.ExecutorStateFilter }),
|
|
3268
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3269
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3270
|
-
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3271
|
-
};
|
|
3272
|
-
};
|
|
3273
|
-
const se_ListNamedQueriesInput = (input, context) => {
|
|
3274
|
-
return {
|
|
3275
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3276
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3277
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3278
|
-
};
|
|
3279
|
-
};
|
|
3280
|
-
const se_ListNotebookMetadataInput = (input, context) => {
|
|
3281
|
-
return {
|
|
3282
|
-
...(input.Filters != null && { Filters: se_FilterDefinition(input.Filters, context) }),
|
|
3283
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3284
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3285
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3286
|
-
};
|
|
3287
|
-
};
|
|
3288
|
-
const se_ListNotebookSessionsRequest = (input, context) => {
|
|
3289
|
-
return {
|
|
3290
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3291
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3292
|
-
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3293
|
-
};
|
|
3294
|
-
};
|
|
3295
|
-
const se_ListPreparedStatementsInput = (input, context) => {
|
|
3296
|
-
return {
|
|
3297
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3298
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3299
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3300
|
-
};
|
|
3301
|
-
};
|
|
3302
|
-
const se_ListQueryExecutionsInput = (input, context) => {
|
|
3303
|
-
return {
|
|
3304
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3305
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3306
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3307
|
-
};
|
|
3308
|
-
};
|
|
3309
|
-
const se_ListSessionsRequest = (input, context) => {
|
|
3310
|
-
return {
|
|
3311
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3312
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3313
|
-
...(input.StateFilter != null && { StateFilter: input.StateFilter }),
|
|
3314
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3315
|
-
};
|
|
3316
|
-
};
|
|
3317
|
-
const se_ListTableMetadataInput = (input, context) => {
|
|
3318
|
-
return {
|
|
3319
|
-
...(input.CatalogName != null && { CatalogName: input.CatalogName }),
|
|
3320
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
3321
|
-
...(input.Expression != null && { Expression: input.Expression }),
|
|
3322
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3323
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3324
|
-
};
|
|
3325
|
-
};
|
|
3326
|
-
const se_ListTagsForResourceInput = (input, context) => {
|
|
3327
|
-
return {
|
|
3328
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3329
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3330
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
3331
|
-
};
|
|
3332
|
-
};
|
|
3333
|
-
const se_ListWorkGroupsInput = (input, context) => {
|
|
3334
|
-
return {
|
|
3335
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3336
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3337
|
-
};
|
|
3338
|
-
};
|
|
3339
|
-
const se_NamedQueryIdList = (input, context) => {
|
|
3340
|
-
return input
|
|
3341
|
-
.filter((e) => e != null)
|
|
3342
|
-
.map((entry) => {
|
|
3343
|
-
return entry;
|
|
3344
|
-
});
|
|
3345
|
-
};
|
|
3346
|
-
const se_ParametersMap = (input, context) => {
|
|
3347
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3348
|
-
if (value === null) {
|
|
3349
|
-
return acc;
|
|
3350
|
-
}
|
|
3351
|
-
acc[key] = value;
|
|
3352
|
-
return acc;
|
|
3353
|
-
}, {});
|
|
3354
|
-
};
|
|
3355
|
-
const se_PreparedStatementNameList = (input, context) => {
|
|
3356
|
-
return input
|
|
3357
|
-
.filter((e) => e != null)
|
|
3358
|
-
.map((entry) => {
|
|
3359
|
-
return entry;
|
|
3360
|
-
});
|
|
3361
|
-
};
|
|
3362
|
-
const se_QueryExecutionContext = (input, context) => {
|
|
3363
|
-
return {
|
|
3364
|
-
...(input.Catalog != null && { Catalog: input.Catalog }),
|
|
3365
|
-
...(input.Database != null && { Database: input.Database }),
|
|
3366
|
-
};
|
|
3367
|
-
};
|
|
3368
|
-
const se_QueryExecutionIdList = (input, context) => {
|
|
3369
|
-
return input
|
|
3370
|
-
.filter((e) => e != null)
|
|
3371
|
-
.map((entry) => {
|
|
3372
|
-
return entry;
|
|
3373
|
-
});
|
|
3374
|
-
};
|
|
3375
|
-
const se_ResultConfiguration = (input, context) => {
|
|
3376
|
-
return {
|
|
3377
|
-
...(input.AclConfiguration != null && { AclConfiguration: se_AclConfiguration(input.AclConfiguration, context) }),
|
|
3378
|
-
...(input.EncryptionConfiguration != null && {
|
|
3379
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
3380
|
-
}),
|
|
3381
|
-
...(input.ExpectedBucketOwner != null && { ExpectedBucketOwner: input.ExpectedBucketOwner }),
|
|
3382
|
-
...(input.OutputLocation != null && { OutputLocation: input.OutputLocation }),
|
|
3383
|
-
};
|
|
3384
|
-
};
|
|
3385
|
-
const se_ResultConfigurationUpdates = (input, context) => {
|
|
3386
|
-
return {
|
|
3387
|
-
...(input.AclConfiguration != null && { AclConfiguration: se_AclConfiguration(input.AclConfiguration, context) }),
|
|
3388
|
-
...(input.EncryptionConfiguration != null && {
|
|
3389
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
3390
|
-
}),
|
|
3391
|
-
...(input.ExpectedBucketOwner != null && { ExpectedBucketOwner: input.ExpectedBucketOwner }),
|
|
3392
|
-
...(input.OutputLocation != null && { OutputLocation: input.OutputLocation }),
|
|
3393
|
-
...(input.RemoveAclConfiguration != null && { RemoveAclConfiguration: input.RemoveAclConfiguration }),
|
|
3394
|
-
...(input.RemoveEncryptionConfiguration != null && {
|
|
3395
|
-
RemoveEncryptionConfiguration: input.RemoveEncryptionConfiguration,
|
|
3396
|
-
}),
|
|
3397
|
-
...(input.RemoveExpectedBucketOwner != null && { RemoveExpectedBucketOwner: input.RemoveExpectedBucketOwner }),
|
|
3398
|
-
...(input.RemoveOutputLocation != null && { RemoveOutputLocation: input.RemoveOutputLocation }),
|
|
3399
|
-
};
|
|
3400
|
-
};
|
|
3401
|
-
const se_ResultReuseByAgeConfiguration = (input, context) => {
|
|
3402
|
-
return {
|
|
3403
|
-
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3404
|
-
...(input.MaxAgeInMinutes != null && { MaxAgeInMinutes: input.MaxAgeInMinutes }),
|
|
3405
|
-
};
|
|
3406
|
-
};
|
|
3407
|
-
const se_ResultReuseConfiguration = (input, context) => {
|
|
3408
|
-
return {
|
|
3409
|
-
...(input.ResultReuseByAgeConfiguration != null && {
|
|
3410
|
-
ResultReuseByAgeConfiguration: se_ResultReuseByAgeConfiguration(input.ResultReuseByAgeConfiguration, context),
|
|
3411
|
-
}),
|
|
3412
|
-
};
|
|
3413
|
-
};
|
|
3414
|
-
const se_StartCalculationExecutionRequest = (input, context) => {
|
|
3415
|
-
return {
|
|
3416
|
-
...(input.CalculationConfiguration != null && {
|
|
3417
|
-
CalculationConfiguration: se_CalculationConfiguration(input.CalculationConfiguration, context),
|
|
3418
|
-
}),
|
|
3419
|
-
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3420
|
-
...(input.CodeBlock != null && { CodeBlock: input.CodeBlock }),
|
|
3421
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3422
|
-
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3423
|
-
};
|
|
3424
|
-
};
|
|
3425
|
-
const se_StartQueryExecutionInput = (input, context) => {
|
|
3426
|
-
return {
|
|
3427
|
-
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
3428
|
-
...(input.ExecutionParameters != null && {
|
|
3429
|
-
ExecutionParameters: se_ExecutionParameters(input.ExecutionParameters, context),
|
|
3430
|
-
}),
|
|
3431
|
-
...(input.QueryExecutionContext != null && {
|
|
3432
|
-
QueryExecutionContext: se_QueryExecutionContext(input.QueryExecutionContext, context),
|
|
3433
|
-
}),
|
|
3434
|
-
...(input.QueryString != null && { QueryString: input.QueryString }),
|
|
3435
|
-
...(input.ResultConfiguration != null && {
|
|
3436
|
-
ResultConfiguration: se_ResultConfiguration(input.ResultConfiguration, context),
|
|
3437
|
-
}),
|
|
3438
|
-
...(input.ResultReuseConfiguration != null && {
|
|
3439
|
-
ResultReuseConfiguration: se_ResultReuseConfiguration(input.ResultReuseConfiguration, context),
|
|
3440
|
-
}),
|
|
3441
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3442
|
-
};
|
|
3443
|
-
};
|
|
3444
|
-
const se_StartSessionRequest = (input, context) => {
|
|
3445
|
-
return {
|
|
3446
|
-
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3447
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3448
|
-
...(input.EngineConfiguration != null && {
|
|
3449
|
-
EngineConfiguration: se_EngineConfiguration(input.EngineConfiguration, context),
|
|
3450
|
-
}),
|
|
3451
|
-
...(input.NotebookVersion != null && { NotebookVersion: input.NotebookVersion }),
|
|
3452
|
-
...(input.SessionIdleTimeoutInMinutes != null && {
|
|
3453
|
-
SessionIdleTimeoutInMinutes: input.SessionIdleTimeoutInMinutes,
|
|
3454
|
-
}),
|
|
3455
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3456
|
-
};
|
|
3457
|
-
};
|
|
3458
|
-
const se_StopCalculationExecutionRequest = (input, context) => {
|
|
3459
|
-
return {
|
|
3460
|
-
...(input.CalculationExecutionId != null && { CalculationExecutionId: input.CalculationExecutionId }),
|
|
3461
|
-
};
|
|
3462
|
-
};
|
|
3463
|
-
const se_StopQueryExecutionInput = (input, context) => {
|
|
3464
|
-
return {
|
|
3465
|
-
QueryExecutionId: input.QueryExecutionId ?? (0, uuid_1.v4)(),
|
|
3466
|
-
};
|
|
3467
|
-
};
|
|
3468
|
-
const se_Tag = (input, context) => {
|
|
3469
|
-
return {
|
|
3470
|
-
...(input.Key != null && { Key: input.Key }),
|
|
3471
|
-
...(input.Value != null && { Value: input.Value }),
|
|
3472
|
-
};
|
|
3473
|
-
};
|
|
3474
|
-
const se_TagKeyList = (input, context) => {
|
|
3475
|
-
return input
|
|
3476
|
-
.filter((e) => e != null)
|
|
3477
|
-
.map((entry) => {
|
|
3478
|
-
return entry;
|
|
3479
|
-
});
|
|
3480
|
-
};
|
|
3481
|
-
const se_TagList = (input, context) => {
|
|
3482
|
-
return input
|
|
3483
|
-
.filter((e) => e != null)
|
|
3484
|
-
.map((entry) => {
|
|
3485
|
-
return se_Tag(entry, context);
|
|
3486
|
-
});
|
|
3487
|
-
};
|
|
3488
|
-
const se_TagResourceInput = (input, context) => {
|
|
3489
|
-
return {
|
|
3490
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
3491
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3492
|
-
};
|
|
3493
|
-
};
|
|
3494
|
-
const se_TerminateSessionRequest = (input, context) => {
|
|
3495
|
-
return {
|
|
3496
|
-
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3497
|
-
};
|
|
3498
|
-
};
|
|
3499
|
-
const se_UntagResourceInput = (input, context) => {
|
|
3500
|
-
return {
|
|
3501
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
3502
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
3503
|
-
};
|
|
3504
|
-
};
|
|
3505
|
-
const se_UpdateDataCatalogInput = (input, context) => {
|
|
3506
|
-
return {
|
|
3507
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3508
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3509
|
-
...(input.Parameters != null && { Parameters: se_ParametersMap(input.Parameters, context) }),
|
|
3510
|
-
...(input.Type != null && { Type: input.Type }),
|
|
3511
|
-
};
|
|
3512
|
-
};
|
|
3513
|
-
const se_UpdateNamedQueryInput = (input, context) => {
|
|
3514
|
-
return {
|
|
3515
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3516
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3517
|
-
...(input.NamedQueryId != null && { NamedQueryId: input.NamedQueryId }),
|
|
3518
|
-
...(input.QueryString != null && { QueryString: input.QueryString }),
|
|
3519
|
-
};
|
|
3520
|
-
};
|
|
3521
|
-
const se_UpdateNotebookInput = (input, context) => {
|
|
3522
|
-
return {
|
|
3523
|
-
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3524
|
-
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3525
|
-
...(input.Payload != null && { Payload: input.Payload }),
|
|
3526
|
-
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3527
|
-
...(input.Type != null && { Type: input.Type }),
|
|
3528
|
-
};
|
|
3529
|
-
};
|
|
3530
|
-
const se_UpdateNotebookMetadataInput = (input, context) => {
|
|
3531
|
-
return {
|
|
3532
|
-
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3533
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3534
|
-
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3535
|
-
};
|
|
3536
|
-
};
|
|
3537
|
-
const se_UpdatePreparedStatementInput = (input, context) => {
|
|
3538
|
-
return {
|
|
3539
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3540
|
-
...(input.QueryStatement != null && { QueryStatement: input.QueryStatement }),
|
|
3541
|
-
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
3542
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3543
|
-
};
|
|
3544
|
-
};
|
|
3545
|
-
const se_UpdateWorkGroupInput = (input, context) => {
|
|
3546
|
-
return {
|
|
3547
|
-
...(input.ConfigurationUpdates != null && {
|
|
3548
|
-
ConfigurationUpdates: se_WorkGroupConfigurationUpdates(input.ConfigurationUpdates, context),
|
|
3549
|
-
}),
|
|
3550
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3551
|
-
...(input.State != null && { State: input.State }),
|
|
3552
|
-
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3553
|
-
};
|
|
3554
|
-
};
|
|
3555
|
-
const se_WorkGroupConfiguration = (input, context) => {
|
|
3556
|
-
return {
|
|
3557
|
-
...(input.AdditionalConfiguration != null && { AdditionalConfiguration: input.AdditionalConfiguration }),
|
|
3558
|
-
...(input.BytesScannedCutoffPerQuery != null && { BytesScannedCutoffPerQuery: input.BytesScannedCutoffPerQuery }),
|
|
3559
|
-
...(input.CustomerContentEncryptionConfiguration != null && {
|
|
3560
|
-
CustomerContentEncryptionConfiguration: se_CustomerContentEncryptionConfiguration(input.CustomerContentEncryptionConfiguration, context),
|
|
3561
|
-
}),
|
|
3562
|
-
...(input.EnableMinimumEncryptionConfiguration != null && {
|
|
3563
|
-
EnableMinimumEncryptionConfiguration: input.EnableMinimumEncryptionConfiguration,
|
|
3564
|
-
}),
|
|
3565
|
-
...(input.EnforceWorkGroupConfiguration != null && {
|
|
3566
|
-
EnforceWorkGroupConfiguration: input.EnforceWorkGroupConfiguration,
|
|
3567
|
-
}),
|
|
3568
|
-
...(input.EngineVersion != null && { EngineVersion: se_EngineVersion(input.EngineVersion, context) }),
|
|
3569
|
-
...(input.ExecutionRole != null && { ExecutionRole: input.ExecutionRole }),
|
|
3570
|
-
...(input.PublishCloudWatchMetricsEnabled != null && {
|
|
3571
|
-
PublishCloudWatchMetricsEnabled: input.PublishCloudWatchMetricsEnabled,
|
|
3572
|
-
}),
|
|
3573
|
-
...(input.RequesterPaysEnabled != null && { RequesterPaysEnabled: input.RequesterPaysEnabled }),
|
|
3574
|
-
...(input.ResultConfiguration != null && {
|
|
3575
|
-
ResultConfiguration: se_ResultConfiguration(input.ResultConfiguration, context),
|
|
3576
|
-
}),
|
|
3577
|
-
};
|
|
3578
|
-
};
|
|
3579
|
-
const se_WorkGroupConfigurationUpdates = (input, context) => {
|
|
3580
|
-
return {
|
|
3581
|
-
...(input.AdditionalConfiguration != null && { AdditionalConfiguration: input.AdditionalConfiguration }),
|
|
3582
|
-
...(input.BytesScannedCutoffPerQuery != null && { BytesScannedCutoffPerQuery: input.BytesScannedCutoffPerQuery }),
|
|
3583
|
-
...(input.CustomerContentEncryptionConfiguration != null && {
|
|
3584
|
-
CustomerContentEncryptionConfiguration: se_CustomerContentEncryptionConfiguration(input.CustomerContentEncryptionConfiguration, context),
|
|
3585
|
-
}),
|
|
3586
|
-
...(input.EnableMinimumEncryptionConfiguration != null && {
|
|
3587
|
-
EnableMinimumEncryptionConfiguration: input.EnableMinimumEncryptionConfiguration,
|
|
3588
|
-
}),
|
|
3589
|
-
...(input.EnforceWorkGroupConfiguration != null && {
|
|
3590
|
-
EnforceWorkGroupConfiguration: input.EnforceWorkGroupConfiguration,
|
|
3591
|
-
}),
|
|
3592
|
-
...(input.EngineVersion != null && { EngineVersion: se_EngineVersion(input.EngineVersion, context) }),
|
|
3593
|
-
...(input.ExecutionRole != null && { ExecutionRole: input.ExecutionRole }),
|
|
3594
|
-
...(input.PublishCloudWatchMetricsEnabled != null && {
|
|
3595
|
-
PublishCloudWatchMetricsEnabled: input.PublishCloudWatchMetricsEnabled,
|
|
3596
|
-
}),
|
|
3597
|
-
...(input.RemoveBytesScannedCutoffPerQuery != null && {
|
|
3598
|
-
RemoveBytesScannedCutoffPerQuery: input.RemoveBytesScannedCutoffPerQuery,
|
|
3599
|
-
}),
|
|
3600
|
-
...(input.RemoveCustomerContentEncryptionConfiguration != null && {
|
|
3601
|
-
RemoveCustomerContentEncryptionConfiguration: input.RemoveCustomerContentEncryptionConfiguration,
|
|
3602
|
-
}),
|
|
3603
|
-
...(input.RequesterPaysEnabled != null && { RequesterPaysEnabled: input.RequesterPaysEnabled }),
|
|
3604
|
-
...(input.ResultConfigurationUpdates != null && {
|
|
3605
|
-
ResultConfigurationUpdates: se_ResultConfigurationUpdates(input.ResultConfigurationUpdates, context),
|
|
3606
|
-
}),
|
|
3607
|
-
};
|
|
3608
|
-
};
|
|
3609
|
-
const de_AclConfiguration = (output, context) => {
|
|
3610
|
-
return {
|
|
3611
|
-
S3AclOption: (0, smithy_client_1.expectString)(output.S3AclOption),
|
|
3612
|
-
};
|
|
3613
|
-
};
|
|
3614
|
-
const de_ApplicationDPUSizes = (output, context) => {
|
|
3615
|
-
return {
|
|
3616
|
-
ApplicationRuntimeId: (0, smithy_client_1.expectString)(output.ApplicationRuntimeId),
|
|
3617
|
-
SupportedDPUSizes: output.SupportedDPUSizes != null ? de_SupportedDPUSizeList(output.SupportedDPUSizes, context) : undefined,
|
|
3618
|
-
};
|
|
3619
|
-
};
|
|
3620
|
-
const de_ApplicationDPUSizesList = (output, context) => {
|
|
3621
|
-
const retVal = (output || [])
|
|
3622
|
-
.filter((e) => e != null)
|
|
3623
|
-
.map((entry) => {
|
|
3624
|
-
if (entry === null) {
|
|
3625
|
-
return null;
|
|
3626
|
-
}
|
|
3627
|
-
return de_ApplicationDPUSizes(entry, context);
|
|
3628
|
-
});
|
|
3629
|
-
return retVal;
|
|
3630
|
-
};
|
|
3631
|
-
const de_AthenaError = (output, context) => {
|
|
3632
|
-
return {
|
|
3633
|
-
ErrorCategory: (0, smithy_client_1.expectInt32)(output.ErrorCategory),
|
|
3634
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
3635
|
-
ErrorType: (0, smithy_client_1.expectInt32)(output.ErrorType),
|
|
3636
|
-
Retryable: (0, smithy_client_1.expectBoolean)(output.Retryable),
|
|
3637
|
-
};
|
|
3638
|
-
};
|
|
3639
|
-
const de_BatchGetNamedQueryOutput = (output, context) => {
|
|
3640
|
-
return {
|
|
3641
|
-
NamedQueries: output.NamedQueries != null ? de_NamedQueryList(output.NamedQueries, context) : undefined,
|
|
3642
|
-
UnprocessedNamedQueryIds: output.UnprocessedNamedQueryIds != null
|
|
3643
|
-
? de_UnprocessedNamedQueryIdList(output.UnprocessedNamedQueryIds, context)
|
|
3644
|
-
: undefined,
|
|
3645
|
-
};
|
|
3646
|
-
};
|
|
3647
|
-
const de_BatchGetPreparedStatementOutput = (output, context) => {
|
|
3648
|
-
return {
|
|
3649
|
-
PreparedStatements: output.PreparedStatements != null
|
|
3650
|
-
? de_PreparedStatementDetailsList(output.PreparedStatements, context)
|
|
3651
|
-
: undefined,
|
|
3652
|
-
UnprocessedPreparedStatementNames: output.UnprocessedPreparedStatementNames != null
|
|
3653
|
-
? de_UnprocessedPreparedStatementNameList(output.UnprocessedPreparedStatementNames, context)
|
|
3654
|
-
: undefined,
|
|
3655
|
-
};
|
|
3656
|
-
};
|
|
3657
|
-
const de_BatchGetQueryExecutionOutput = (output, context) => {
|
|
3658
|
-
return {
|
|
3659
|
-
QueryExecutions: output.QueryExecutions != null ? de_QueryExecutionList(output.QueryExecutions, context) : undefined,
|
|
3660
|
-
UnprocessedQueryExecutionIds: output.UnprocessedQueryExecutionIds != null
|
|
3661
|
-
? de_UnprocessedQueryExecutionIdList(output.UnprocessedQueryExecutionIds, context)
|
|
3662
|
-
: undefined,
|
|
3663
|
-
};
|
|
3664
|
-
};
|
|
3665
|
-
const de_CalculationResult = (output, context) => {
|
|
3666
|
-
return {
|
|
3667
|
-
ResultS3Uri: (0, smithy_client_1.expectString)(output.ResultS3Uri),
|
|
3668
|
-
ResultType: (0, smithy_client_1.expectString)(output.ResultType),
|
|
3669
|
-
StdErrorS3Uri: (0, smithy_client_1.expectString)(output.StdErrorS3Uri),
|
|
3670
|
-
StdOutS3Uri: (0, smithy_client_1.expectString)(output.StdOutS3Uri),
|
|
3671
|
-
};
|
|
3672
|
-
};
|
|
3673
|
-
const de_CalculationsList = (output, context) => {
|
|
3674
|
-
const retVal = (output || [])
|
|
3675
|
-
.filter((e) => e != null)
|
|
3676
|
-
.map((entry) => {
|
|
3677
|
-
if (entry === null) {
|
|
3678
|
-
return null;
|
|
3679
|
-
}
|
|
3680
|
-
return de_CalculationSummary(entry, context);
|
|
3681
|
-
});
|
|
3682
|
-
return retVal;
|
|
3683
|
-
};
|
|
3684
|
-
const de_CalculationStatistics = (output, context) => {
|
|
3685
|
-
return {
|
|
3686
|
-
DpuExecutionInMillis: (0, smithy_client_1.expectLong)(output.DpuExecutionInMillis),
|
|
3687
|
-
Progress: (0, smithy_client_1.expectString)(output.Progress),
|
|
3688
|
-
};
|
|
3689
|
-
};
|
|
3690
|
-
const de_CalculationStatus = (output, context) => {
|
|
3691
|
-
return {
|
|
3692
|
-
CompletionDateTime: output.CompletionDateTime != null
|
|
3693
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDateTime)))
|
|
3694
|
-
: undefined,
|
|
3695
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
3696
|
-
StateChangeReason: (0, smithy_client_1.expectString)(output.StateChangeReason),
|
|
3697
|
-
SubmissionDateTime: output.SubmissionDateTime != null
|
|
3698
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmissionDateTime)))
|
|
3699
|
-
: undefined,
|
|
3700
|
-
};
|
|
3701
|
-
};
|
|
3702
|
-
const de_CalculationSummary = (output, context) => {
|
|
3703
|
-
return {
|
|
3704
|
-
CalculationExecutionId: (0, smithy_client_1.expectString)(output.CalculationExecutionId),
|
|
3705
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3706
|
-
Status: output.Status != null ? de_CalculationStatus(output.Status, context) : undefined,
|
|
3707
|
-
};
|
|
3708
|
-
};
|
|
3709
|
-
const de_Column = (output, context) => {
|
|
3710
|
-
return {
|
|
3711
|
-
Comment: (0, smithy_client_1.expectString)(output.Comment),
|
|
3712
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3713
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3714
|
-
};
|
|
3715
|
-
};
|
|
3716
|
-
const de_ColumnInfo = (output, context) => {
|
|
3717
|
-
return {
|
|
3718
|
-
CaseSensitive: (0, smithy_client_1.expectBoolean)(output.CaseSensitive),
|
|
3719
|
-
CatalogName: (0, smithy_client_1.expectString)(output.CatalogName),
|
|
3720
|
-
Label: (0, smithy_client_1.expectString)(output.Label),
|
|
3721
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3722
|
-
Nullable: (0, smithy_client_1.expectString)(output.Nullable),
|
|
3723
|
-
Precision: (0, smithy_client_1.expectInt32)(output.Precision),
|
|
3724
|
-
Scale: (0, smithy_client_1.expectInt32)(output.Scale),
|
|
3725
|
-
SchemaName: (0, smithy_client_1.expectString)(output.SchemaName),
|
|
3726
|
-
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
3727
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3728
|
-
};
|
|
3729
|
-
};
|
|
3730
|
-
const de_ColumnInfoList = (output, context) => {
|
|
3731
|
-
const retVal = (output || [])
|
|
3732
|
-
.filter((e) => e != null)
|
|
3733
|
-
.map((entry) => {
|
|
3734
|
-
if (entry === null) {
|
|
3735
|
-
return null;
|
|
3736
|
-
}
|
|
3737
|
-
return de_ColumnInfo(entry, context);
|
|
3738
|
-
});
|
|
3739
|
-
return retVal;
|
|
3740
|
-
};
|
|
3741
|
-
const de_ColumnList = (output, context) => {
|
|
3742
|
-
const retVal = (output || [])
|
|
3743
|
-
.filter((e) => e != null)
|
|
3744
|
-
.map((entry) => {
|
|
3745
|
-
if (entry === null) {
|
|
3746
|
-
return null;
|
|
3747
|
-
}
|
|
3748
|
-
return de_Column(entry, context);
|
|
3749
|
-
});
|
|
3750
|
-
return retVal;
|
|
3751
|
-
};
|
|
3752
|
-
const de_CreateDataCatalogOutput = (output, context) => {
|
|
3753
|
-
return {};
|
|
3754
|
-
};
|
|
3755
|
-
const de_CreateNamedQueryOutput = (output, context) => {
|
|
3756
|
-
return {
|
|
3757
|
-
NamedQueryId: (0, smithy_client_1.expectString)(output.NamedQueryId),
|
|
3758
|
-
};
|
|
3759
|
-
};
|
|
3760
|
-
const de_CreateNotebookOutput = (output, context) => {
|
|
3761
|
-
return {
|
|
3762
|
-
NotebookId: (0, smithy_client_1.expectString)(output.NotebookId),
|
|
3763
|
-
};
|
|
3764
|
-
};
|
|
3765
|
-
const de_CreatePreparedStatementOutput = (output, context) => {
|
|
3766
|
-
return {};
|
|
3767
|
-
};
|
|
3768
|
-
const de_CreatePresignedNotebookUrlResponse = (output, context) => {
|
|
3769
|
-
return {
|
|
3770
|
-
AuthToken: (0, smithy_client_1.expectString)(output.AuthToken),
|
|
3771
|
-
AuthTokenExpirationTime: (0, smithy_client_1.expectLong)(output.AuthTokenExpirationTime),
|
|
3772
|
-
NotebookUrl: (0, smithy_client_1.expectString)(output.NotebookUrl),
|
|
3773
|
-
};
|
|
3774
|
-
};
|
|
3775
|
-
const de_CreateWorkGroupOutput = (output, context) => {
|
|
3776
|
-
return {};
|
|
3777
|
-
};
|
|
3778
|
-
const de_CustomerContentEncryptionConfiguration = (output, context) => {
|
|
3779
|
-
return {
|
|
3780
|
-
KmsKey: (0, smithy_client_1.expectString)(output.KmsKey),
|
|
3781
|
-
};
|
|
3782
|
-
};
|
|
3783
|
-
const de_Database = (output, context) => {
|
|
3784
|
-
return {
|
|
3785
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3786
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3787
|
-
Parameters: output.Parameters != null ? de_ParametersMap(output.Parameters, context) : undefined,
|
|
3788
|
-
};
|
|
3789
|
-
};
|
|
3790
|
-
const de_DatabaseList = (output, context) => {
|
|
3791
|
-
const retVal = (output || [])
|
|
3792
|
-
.filter((e) => e != null)
|
|
3793
|
-
.map((entry) => {
|
|
3794
|
-
if (entry === null) {
|
|
3795
|
-
return null;
|
|
3796
|
-
}
|
|
3797
|
-
return de_Database(entry, context);
|
|
3798
|
-
});
|
|
3799
|
-
return retVal;
|
|
3800
|
-
};
|
|
3801
|
-
const de_DataCatalog = (output, context) => {
|
|
3802
|
-
return {
|
|
3803
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3804
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3805
|
-
Parameters: output.Parameters != null ? de_ParametersMap(output.Parameters, context) : undefined,
|
|
3806
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3807
|
-
};
|
|
3808
|
-
};
|
|
3809
|
-
const de_DataCatalogSummary = (output, context) => {
|
|
3810
|
-
return {
|
|
3811
|
-
CatalogName: (0, smithy_client_1.expectString)(output.CatalogName),
|
|
3812
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3813
|
-
};
|
|
3814
|
-
};
|
|
3815
|
-
const de_DataCatalogSummaryList = (output, context) => {
|
|
3816
|
-
const retVal = (output || [])
|
|
3817
|
-
.filter((e) => e != null)
|
|
3818
|
-
.map((entry) => {
|
|
3819
|
-
if (entry === null) {
|
|
3820
|
-
return null;
|
|
3821
|
-
}
|
|
3822
|
-
return de_DataCatalogSummary(entry, context);
|
|
3823
|
-
});
|
|
3824
|
-
return retVal;
|
|
3825
|
-
};
|
|
3826
|
-
const de_Datum = (output, context) => {
|
|
3827
|
-
return {
|
|
3828
|
-
VarCharValue: (0, smithy_client_1.expectString)(output.VarCharValue),
|
|
3829
|
-
};
|
|
3830
|
-
};
|
|
3831
|
-
const de_datumList = (output, context) => {
|
|
3832
|
-
const retVal = (output || [])
|
|
3833
|
-
.filter((e) => e != null)
|
|
3834
|
-
.map((entry) => {
|
|
3835
|
-
if (entry === null) {
|
|
3836
|
-
return null;
|
|
3837
|
-
}
|
|
3838
|
-
return de_Datum(entry, context);
|
|
3839
|
-
});
|
|
3840
|
-
return retVal;
|
|
3841
|
-
};
|
|
3842
|
-
const de_DeleteDataCatalogOutput = (output, context) => {
|
|
3843
|
-
return {};
|
|
3844
|
-
};
|
|
3845
|
-
const de_DeleteNamedQueryOutput = (output, context) => {
|
|
3846
|
-
return {};
|
|
3847
|
-
};
|
|
3848
|
-
const de_DeleteNotebookOutput = (output, context) => {
|
|
3849
|
-
return {};
|
|
3850
|
-
};
|
|
3851
|
-
const de_DeletePreparedStatementOutput = (output, context) => {
|
|
3852
|
-
return {};
|
|
3853
|
-
};
|
|
3854
|
-
const de_DeleteWorkGroupOutput = (output, context) => {
|
|
3855
|
-
return {};
|
|
3856
|
-
};
|
|
3857
|
-
const de_EncryptionConfiguration = (output, context) => {
|
|
3858
|
-
return {
|
|
3859
|
-
EncryptionOption: (0, smithy_client_1.expectString)(output.EncryptionOption),
|
|
3860
|
-
KmsKey: (0, smithy_client_1.expectString)(output.KmsKey),
|
|
3861
|
-
};
|
|
3862
|
-
};
|
|
3863
|
-
const de_EngineConfiguration = (output, context) => {
|
|
3864
|
-
return {
|
|
3865
|
-
AdditionalConfigs: output.AdditionalConfigs != null ? de_ParametersMap(output.AdditionalConfigs, context) : undefined,
|
|
3866
|
-
CoordinatorDpuSize: (0, smithy_client_1.expectInt32)(output.CoordinatorDpuSize),
|
|
3867
|
-
DefaultExecutorDpuSize: (0, smithy_client_1.expectInt32)(output.DefaultExecutorDpuSize),
|
|
3868
|
-
MaxConcurrentDpus: (0, smithy_client_1.expectInt32)(output.MaxConcurrentDpus),
|
|
3869
|
-
};
|
|
3870
|
-
};
|
|
3871
|
-
const de_EngineVersion = (output, context) => {
|
|
3872
|
-
return {
|
|
3873
|
-
EffectiveEngineVersion: (0, smithy_client_1.expectString)(output.EffectiveEngineVersion),
|
|
3874
|
-
SelectedEngineVersion: (0, smithy_client_1.expectString)(output.SelectedEngineVersion),
|
|
3875
|
-
};
|
|
3876
|
-
};
|
|
3877
|
-
const de_EngineVersionsList = (output, context) => {
|
|
3878
|
-
const retVal = (output || [])
|
|
3879
|
-
.filter((e) => e != null)
|
|
3880
|
-
.map((entry) => {
|
|
3881
|
-
if (entry === null) {
|
|
3882
|
-
return null;
|
|
3883
|
-
}
|
|
3884
|
-
return de_EngineVersion(entry, context);
|
|
3885
|
-
});
|
|
3886
|
-
return retVal;
|
|
3887
|
-
};
|
|
3888
|
-
const de_ExecutionParameters = (output, context) => {
|
|
3889
|
-
const retVal = (output || [])
|
|
3890
|
-
.filter((e) => e != null)
|
|
3891
|
-
.map((entry) => {
|
|
3892
|
-
if (entry === null) {
|
|
3893
|
-
return null;
|
|
3894
|
-
}
|
|
3895
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3896
|
-
});
|
|
3897
|
-
return retVal;
|
|
3898
|
-
};
|
|
3899
|
-
const de_ExecutorsSummary = (output, context) => {
|
|
3900
|
-
return {
|
|
3901
|
-
ExecutorId: (0, smithy_client_1.expectString)(output.ExecutorId),
|
|
3902
|
-
ExecutorSize: (0, smithy_client_1.expectLong)(output.ExecutorSize),
|
|
3903
|
-
ExecutorState: (0, smithy_client_1.expectString)(output.ExecutorState),
|
|
3904
|
-
ExecutorType: (0, smithy_client_1.expectString)(output.ExecutorType),
|
|
3905
|
-
StartDateTime: (0, smithy_client_1.expectLong)(output.StartDateTime),
|
|
3906
|
-
TerminationDateTime: (0, smithy_client_1.expectLong)(output.TerminationDateTime),
|
|
3907
|
-
};
|
|
3908
|
-
};
|
|
3909
|
-
const de_ExecutorsSummaryList = (output, context) => {
|
|
3910
|
-
const retVal = (output || [])
|
|
3911
|
-
.filter((e) => e != null)
|
|
3912
|
-
.map((entry) => {
|
|
3913
|
-
if (entry === null) {
|
|
3914
|
-
return null;
|
|
3915
|
-
}
|
|
3916
|
-
return de_ExecutorsSummary(entry, context);
|
|
3917
|
-
});
|
|
3918
|
-
return retVal;
|
|
3919
|
-
};
|
|
3920
|
-
const de_ExportNotebookOutput = (output, context) => {
|
|
3921
|
-
return {
|
|
3922
|
-
NotebookMetadata: output.NotebookMetadata != null ? de_NotebookMetadata(output.NotebookMetadata, context) : undefined,
|
|
3923
|
-
Payload: (0, smithy_client_1.expectString)(output.Payload),
|
|
3924
|
-
};
|
|
3925
|
-
};
|
|
3926
|
-
const de_GetCalculationExecutionCodeResponse = (output, context) => {
|
|
3927
|
-
return {
|
|
3928
|
-
CodeBlock: (0, smithy_client_1.expectString)(output.CodeBlock),
|
|
3929
|
-
};
|
|
3930
|
-
};
|
|
3931
|
-
const de_GetCalculationExecutionResponse = (output, context) => {
|
|
3932
|
-
return {
|
|
3933
|
-
CalculationExecutionId: (0, smithy_client_1.expectString)(output.CalculationExecutionId),
|
|
3934
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3935
|
-
Result: output.Result != null ? de_CalculationResult(output.Result, context) : undefined,
|
|
3936
|
-
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
3937
|
-
Statistics: output.Statistics != null ? de_CalculationStatistics(output.Statistics, context) : undefined,
|
|
3938
|
-
Status: output.Status != null ? de_CalculationStatus(output.Status, context) : undefined,
|
|
3939
|
-
WorkingDirectory: (0, smithy_client_1.expectString)(output.WorkingDirectory),
|
|
3940
|
-
};
|
|
3941
|
-
};
|
|
3942
|
-
const de_GetCalculationExecutionStatusResponse = (output, context) => {
|
|
3943
|
-
return {
|
|
3944
|
-
Statistics: output.Statistics != null ? de_CalculationStatistics(output.Statistics, context) : undefined,
|
|
3945
|
-
Status: output.Status != null ? de_CalculationStatus(output.Status, context) : undefined,
|
|
3946
|
-
};
|
|
3947
|
-
};
|
|
3948
|
-
const de_GetDatabaseOutput = (output, context) => {
|
|
3949
|
-
return {
|
|
3950
|
-
Database: output.Database != null ? de_Database(output.Database, context) : undefined,
|
|
3951
|
-
};
|
|
3952
|
-
};
|
|
3953
|
-
const de_GetDataCatalogOutput = (output, context) => {
|
|
3954
|
-
return {
|
|
3955
|
-
DataCatalog: output.DataCatalog != null ? de_DataCatalog(output.DataCatalog, context) : undefined,
|
|
3956
|
-
};
|
|
3957
|
-
};
|
|
3958
|
-
const de_GetNamedQueryOutput = (output, context) => {
|
|
3959
|
-
return {
|
|
3960
|
-
NamedQuery: output.NamedQuery != null ? de_NamedQuery(output.NamedQuery, context) : undefined,
|
|
3961
|
-
};
|
|
3962
|
-
};
|
|
3963
|
-
const de_GetNotebookMetadataOutput = (output, context) => {
|
|
3964
|
-
return {
|
|
3965
|
-
NotebookMetadata: output.NotebookMetadata != null ? de_NotebookMetadata(output.NotebookMetadata, context) : undefined,
|
|
3966
|
-
};
|
|
3967
|
-
};
|
|
3968
|
-
const de_GetPreparedStatementOutput = (output, context) => {
|
|
3969
|
-
return {
|
|
3970
|
-
PreparedStatement: output.PreparedStatement != null ? de_PreparedStatement(output.PreparedStatement, context) : undefined,
|
|
3971
|
-
};
|
|
3972
|
-
};
|
|
3973
|
-
const de_GetQueryExecutionOutput = (output, context) => {
|
|
3974
|
-
return {
|
|
3975
|
-
QueryExecution: output.QueryExecution != null ? de_QueryExecution(output.QueryExecution, context) : undefined,
|
|
3976
|
-
};
|
|
3977
|
-
};
|
|
3978
|
-
const de_GetQueryResultsOutput = (output, context) => {
|
|
3979
|
-
return {
|
|
3980
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3981
|
-
ResultSet: output.ResultSet != null ? de_ResultSet(output.ResultSet, context) : undefined,
|
|
3982
|
-
UpdateCount: (0, smithy_client_1.expectLong)(output.UpdateCount),
|
|
3983
|
-
};
|
|
3984
|
-
};
|
|
3985
|
-
const de_GetQueryRuntimeStatisticsOutput = (output, context) => {
|
|
3986
|
-
return {
|
|
3987
|
-
QueryRuntimeStatistics: output.QueryRuntimeStatistics != null
|
|
3988
|
-
? de_QueryRuntimeStatistics(output.QueryRuntimeStatistics, context)
|
|
3989
|
-
: undefined,
|
|
3990
|
-
};
|
|
3991
|
-
};
|
|
3992
|
-
const de_GetSessionResponse = (output, context) => {
|
|
3993
|
-
return {
|
|
3994
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3995
|
-
EngineConfiguration: output.EngineConfiguration != null ? de_EngineConfiguration(output.EngineConfiguration, context) : undefined,
|
|
3996
|
-
EngineVersion: (0, smithy_client_1.expectString)(output.EngineVersion),
|
|
3997
|
-
NotebookVersion: (0, smithy_client_1.expectString)(output.NotebookVersion),
|
|
3998
|
-
SessionConfiguration: output.SessionConfiguration != null ? de_SessionConfiguration(output.SessionConfiguration, context) : undefined,
|
|
3999
|
-
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4000
|
-
Statistics: output.Statistics != null ? de_SessionStatistics(output.Statistics, context) : undefined,
|
|
4001
|
-
Status: output.Status != null ? de_SessionStatus(output.Status, context) : undefined,
|
|
4002
|
-
WorkGroup: (0, smithy_client_1.expectString)(output.WorkGroup),
|
|
4003
|
-
};
|
|
4004
|
-
};
|
|
4005
|
-
const de_GetSessionStatusResponse = (output, context) => {
|
|
4006
|
-
return {
|
|
4007
|
-
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4008
|
-
Status: output.Status != null ? de_SessionStatus(output.Status, context) : undefined,
|
|
4009
|
-
};
|
|
4010
|
-
};
|
|
4011
|
-
const de_GetTableMetadataOutput = (output, context) => {
|
|
4012
|
-
return {
|
|
4013
|
-
TableMetadata: output.TableMetadata != null ? de_TableMetadata(output.TableMetadata, context) : undefined,
|
|
4014
|
-
};
|
|
4015
|
-
};
|
|
4016
|
-
const de_GetWorkGroupOutput = (output, context) => {
|
|
4017
|
-
return {
|
|
4018
|
-
WorkGroup: output.WorkGroup != null ? de_WorkGroup(output.WorkGroup, context) : undefined,
|
|
4019
|
-
};
|
|
4020
|
-
};
|
|
4021
|
-
const de_ImportNotebookOutput = (output, context) => {
|
|
4022
|
-
return {
|
|
4023
|
-
NotebookId: (0, smithy_client_1.expectString)(output.NotebookId),
|
|
4024
|
-
};
|
|
4025
|
-
};
|
|
4026
|
-
const de_InternalServerException = (output, context) => {
|
|
4027
|
-
return {
|
|
4028
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4029
|
-
};
|
|
4030
|
-
};
|
|
4031
|
-
const de_InvalidRequestException = (output, context) => {
|
|
4032
|
-
return {
|
|
4033
|
-
AthenaErrorCode: (0, smithy_client_1.expectString)(output.AthenaErrorCode),
|
|
4034
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4035
|
-
};
|
|
4036
|
-
};
|
|
4037
|
-
const de_ListApplicationDPUSizesOutput = (output, context) => {
|
|
4038
|
-
return {
|
|
4039
|
-
ApplicationDPUSizes: output.ApplicationDPUSizes != null ? de_ApplicationDPUSizesList(output.ApplicationDPUSizes, context) : undefined,
|
|
4040
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4041
|
-
};
|
|
4042
|
-
};
|
|
4043
|
-
const de_ListCalculationExecutionsResponse = (output, context) => {
|
|
4044
|
-
return {
|
|
4045
|
-
Calculations: output.Calculations != null ? de_CalculationsList(output.Calculations, context) : undefined,
|
|
4046
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4047
|
-
};
|
|
4048
|
-
};
|
|
4049
|
-
const de_ListDatabasesOutput = (output, context) => {
|
|
4050
|
-
return {
|
|
4051
|
-
DatabaseList: output.DatabaseList != null ? de_DatabaseList(output.DatabaseList, context) : undefined,
|
|
4052
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4053
|
-
};
|
|
4054
|
-
};
|
|
4055
|
-
const de_ListDataCatalogsOutput = (output, context) => {
|
|
4056
|
-
return {
|
|
4057
|
-
DataCatalogsSummary: output.DataCatalogsSummary != null ? de_DataCatalogSummaryList(output.DataCatalogsSummary, context) : undefined,
|
|
4058
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4059
|
-
};
|
|
4060
|
-
};
|
|
4061
|
-
const de_ListEngineVersionsOutput = (output, context) => {
|
|
4062
|
-
return {
|
|
4063
|
-
EngineVersions: output.EngineVersions != null ? de_EngineVersionsList(output.EngineVersions, context) : undefined,
|
|
4064
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4065
|
-
};
|
|
4066
|
-
};
|
|
4067
|
-
const de_ListExecutorsResponse = (output, context) => {
|
|
4068
|
-
return {
|
|
4069
|
-
ExecutorsSummary: output.ExecutorsSummary != null ? de_ExecutorsSummaryList(output.ExecutorsSummary, context) : undefined,
|
|
4070
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4071
|
-
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4072
|
-
};
|
|
4073
|
-
};
|
|
4074
|
-
const de_ListNamedQueriesOutput = (output, context) => {
|
|
4075
|
-
return {
|
|
4076
|
-
NamedQueryIds: output.NamedQueryIds != null ? de_NamedQueryIdList(output.NamedQueryIds, context) : undefined,
|
|
4077
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4078
|
-
};
|
|
4079
|
-
};
|
|
4080
|
-
const de_ListNotebookMetadataOutput = (output, context) => {
|
|
4081
|
-
return {
|
|
4082
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4083
|
-
NotebookMetadataList: output.NotebookMetadataList != null ? de_NotebookMetadataArray(output.NotebookMetadataList, context) : undefined,
|
|
4084
|
-
};
|
|
4085
|
-
};
|
|
4086
|
-
const de_ListNotebookSessionsResponse = (output, context) => {
|
|
4087
|
-
return {
|
|
4088
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4089
|
-
NotebookSessionsList: output.NotebookSessionsList != null ? de_NotebookSessionsList(output.NotebookSessionsList, context) : undefined,
|
|
4090
|
-
};
|
|
4091
|
-
};
|
|
4092
|
-
const de_ListPreparedStatementsOutput = (output, context) => {
|
|
4093
|
-
return {
|
|
4094
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4095
|
-
PreparedStatements: output.PreparedStatements != null ? de_PreparedStatementsList(output.PreparedStatements, context) : undefined,
|
|
4096
|
-
};
|
|
4097
|
-
};
|
|
4098
|
-
const de_ListQueryExecutionsOutput = (output, context) => {
|
|
4099
|
-
return {
|
|
4100
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4101
|
-
QueryExecutionIds: output.QueryExecutionIds != null ? de_QueryExecutionIdList(output.QueryExecutionIds, context) : undefined,
|
|
4102
|
-
};
|
|
4103
|
-
};
|
|
4104
|
-
const de_ListSessionsResponse = (output, context) => {
|
|
4105
|
-
return {
|
|
4106
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4107
|
-
Sessions: output.Sessions != null ? de_SessionsList(output.Sessions, context) : undefined,
|
|
4108
|
-
};
|
|
4109
|
-
};
|
|
4110
|
-
const de_ListTableMetadataOutput = (output, context) => {
|
|
4111
|
-
return {
|
|
4112
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4113
|
-
TableMetadataList: output.TableMetadataList != null ? de_TableMetadataList(output.TableMetadataList, context) : undefined,
|
|
4114
|
-
};
|
|
4115
|
-
};
|
|
4116
|
-
const de_ListTagsForResourceOutput = (output, context) => {
|
|
4117
|
-
return {
|
|
4118
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4119
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
4120
|
-
};
|
|
4121
|
-
};
|
|
4122
|
-
const de_ListWorkGroupsOutput = (output, context) => {
|
|
4123
|
-
return {
|
|
4124
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4125
|
-
WorkGroups: output.WorkGroups != null ? de_WorkGroupsList(output.WorkGroups, context) : undefined,
|
|
4126
|
-
};
|
|
4127
|
-
};
|
|
4128
|
-
const de_MetadataException = (output, context) => {
|
|
4129
|
-
return {
|
|
4130
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4131
|
-
};
|
|
4132
|
-
};
|
|
4133
|
-
const de_NamedQuery = (output, context) => {
|
|
4134
|
-
return {
|
|
4135
|
-
Database: (0, smithy_client_1.expectString)(output.Database),
|
|
4136
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4137
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4138
|
-
NamedQueryId: (0, smithy_client_1.expectString)(output.NamedQueryId),
|
|
4139
|
-
QueryString: (0, smithy_client_1.expectString)(output.QueryString),
|
|
4140
|
-
WorkGroup: (0, smithy_client_1.expectString)(output.WorkGroup),
|
|
4141
|
-
};
|
|
4142
|
-
};
|
|
4143
|
-
const de_NamedQueryIdList = (output, context) => {
|
|
4144
|
-
const retVal = (output || [])
|
|
4145
|
-
.filter((e) => e != null)
|
|
4146
|
-
.map((entry) => {
|
|
4147
|
-
if (entry === null) {
|
|
4148
|
-
return null;
|
|
4149
|
-
}
|
|
4150
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4151
|
-
});
|
|
4152
|
-
return retVal;
|
|
4153
|
-
};
|
|
4154
|
-
const de_NamedQueryList = (output, context) => {
|
|
4155
|
-
const retVal = (output || [])
|
|
4156
|
-
.filter((e) => e != null)
|
|
4157
|
-
.map((entry) => {
|
|
4158
|
-
if (entry === null) {
|
|
4159
|
-
return null;
|
|
4160
|
-
}
|
|
4161
|
-
return de_NamedQuery(entry, context);
|
|
4162
|
-
});
|
|
4163
|
-
return retVal;
|
|
4164
|
-
};
|
|
4165
|
-
const de_NotebookMetadata = (output, context) => {
|
|
4166
|
-
return {
|
|
4167
|
-
CreationTime: output.CreationTime != null
|
|
4168
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4169
|
-
: undefined,
|
|
4170
|
-
LastModifiedTime: output.LastModifiedTime != null
|
|
4171
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
4172
|
-
: undefined,
|
|
4173
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4174
|
-
NotebookId: (0, smithy_client_1.expectString)(output.NotebookId),
|
|
4175
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4176
|
-
WorkGroup: (0, smithy_client_1.expectString)(output.WorkGroup),
|
|
4177
|
-
};
|
|
4178
|
-
};
|
|
4179
|
-
const de_NotebookMetadataArray = (output, context) => {
|
|
4180
|
-
const retVal = (output || [])
|
|
4181
|
-
.filter((e) => e != null)
|
|
4182
|
-
.map((entry) => {
|
|
4183
|
-
if (entry === null) {
|
|
4184
|
-
return null;
|
|
4185
|
-
}
|
|
4186
|
-
return de_NotebookMetadata(entry, context);
|
|
4187
|
-
});
|
|
4188
|
-
return retVal;
|
|
4189
|
-
};
|
|
4190
|
-
const de_NotebookSessionsList = (output, context) => {
|
|
4191
|
-
const retVal = (output || [])
|
|
4192
|
-
.filter((e) => e != null)
|
|
4193
|
-
.map((entry) => {
|
|
4194
|
-
if (entry === null) {
|
|
4195
|
-
return null;
|
|
4196
|
-
}
|
|
4197
|
-
return de_NotebookSessionSummary(entry, context);
|
|
4198
|
-
});
|
|
4199
|
-
return retVal;
|
|
2954
|
+
const de_NotebookSessionsList = (output, context) => {
|
|
2955
|
+
const retVal = (output || [])
|
|
2956
|
+
.filter((e) => e != null)
|
|
2957
|
+
.map((entry) => {
|
|
2958
|
+
return de_NotebookSessionSummary(entry, context);
|
|
2959
|
+
});
|
|
2960
|
+
return retVal;
|
|
4200
2961
|
};
|
|
4201
2962
|
const de_NotebookSessionSummary = (output, context) => {
|
|
4202
|
-
return {
|
|
4203
|
-
CreationTime:
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4207
|
-
};
|
|
4208
|
-
};
|
|
4209
|
-
const de_ParametersMap = (output, context) => {
|
|
4210
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4211
|
-
if (value === null) {
|
|
4212
|
-
return acc;
|
|
4213
|
-
}
|
|
4214
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
4215
|
-
return acc;
|
|
4216
|
-
}, {});
|
|
2963
|
+
return (0, smithy_client_1.take)(output, {
|
|
2964
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2965
|
+
SessionId: smithy_client_1.expectString,
|
|
2966
|
+
});
|
|
4217
2967
|
};
|
|
4218
2968
|
const de_PreparedStatement = (output, context) => {
|
|
4219
|
-
return {
|
|
4220
|
-
Description:
|
|
4221
|
-
LastModifiedTime:
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
WorkGroupName: (0, smithy_client_1.expectString)(output.WorkGroupName),
|
|
4227
|
-
};
|
|
2969
|
+
return (0, smithy_client_1.take)(output, {
|
|
2970
|
+
Description: smithy_client_1.expectString,
|
|
2971
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2972
|
+
QueryStatement: smithy_client_1.expectString,
|
|
2973
|
+
StatementName: smithy_client_1.expectString,
|
|
2974
|
+
WorkGroupName: smithy_client_1.expectString,
|
|
2975
|
+
});
|
|
4228
2976
|
};
|
|
4229
2977
|
const de_PreparedStatementDetailsList = (output, context) => {
|
|
4230
2978
|
const retVal = (output || [])
|
|
4231
2979
|
.filter((e) => e != null)
|
|
4232
2980
|
.map((entry) => {
|
|
4233
|
-
if (entry === null) {
|
|
4234
|
-
return null;
|
|
4235
|
-
}
|
|
4236
2981
|
return de_PreparedStatement(entry, context);
|
|
4237
2982
|
});
|
|
4238
2983
|
return retVal;
|
|
@@ -4241,148 +2986,81 @@ const de_PreparedStatementsList = (output, context) => {
|
|
|
4241
2986
|
const retVal = (output || [])
|
|
4242
2987
|
.filter((e) => e != null)
|
|
4243
2988
|
.map((entry) => {
|
|
4244
|
-
if (entry === null) {
|
|
4245
|
-
return null;
|
|
4246
|
-
}
|
|
4247
2989
|
return de_PreparedStatementSummary(entry, context);
|
|
4248
2990
|
});
|
|
4249
2991
|
return retVal;
|
|
4250
2992
|
};
|
|
4251
2993
|
const de_PreparedStatementSummary = (output, context) => {
|
|
4252
|
-
return {
|
|
4253
|
-
LastModifiedTime:
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
StatementName: (0, smithy_client_1.expectString)(output.StatementName),
|
|
4257
|
-
};
|
|
2994
|
+
return (0, smithy_client_1.take)(output, {
|
|
2995
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2996
|
+
StatementName: smithy_client_1.expectString,
|
|
2997
|
+
});
|
|
4258
2998
|
};
|
|
4259
2999
|
const de_QueryExecution = (output, context) => {
|
|
4260
|
-
return {
|
|
4261
|
-
EngineVersion:
|
|
4262
|
-
ExecutionParameters:
|
|
4263
|
-
Query:
|
|
4264
|
-
QueryExecutionContext:
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
Statistics: output.Statistics != null ? de_QueryExecutionStatistics(output.Statistics, context) : undefined,
|
|
4274
|
-
Status: output.Status != null ? de_QueryExecutionStatus(output.Status, context) : undefined,
|
|
4275
|
-
SubstatementType: (0, smithy_client_1.expectString)(output.SubstatementType),
|
|
4276
|
-
WorkGroup: (0, smithy_client_1.expectString)(output.WorkGroup),
|
|
4277
|
-
};
|
|
4278
|
-
};
|
|
4279
|
-
const de_QueryExecutionContext = (output, context) => {
|
|
4280
|
-
return {
|
|
4281
|
-
Catalog: (0, smithy_client_1.expectString)(output.Catalog),
|
|
4282
|
-
Database: (0, smithy_client_1.expectString)(output.Database),
|
|
4283
|
-
};
|
|
4284
|
-
};
|
|
4285
|
-
const de_QueryExecutionIdList = (output, context) => {
|
|
4286
|
-
const retVal = (output || [])
|
|
4287
|
-
.filter((e) => e != null)
|
|
4288
|
-
.map((entry) => {
|
|
4289
|
-
if (entry === null) {
|
|
4290
|
-
return null;
|
|
4291
|
-
}
|
|
4292
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3000
|
+
return (0, smithy_client_1.take)(output, {
|
|
3001
|
+
EngineVersion: smithy_client_1._json,
|
|
3002
|
+
ExecutionParameters: smithy_client_1._json,
|
|
3003
|
+
Query: smithy_client_1.expectString,
|
|
3004
|
+
QueryExecutionContext: smithy_client_1._json,
|
|
3005
|
+
QueryExecutionId: smithy_client_1.expectString,
|
|
3006
|
+
ResultConfiguration: smithy_client_1._json,
|
|
3007
|
+
ResultReuseConfiguration: smithy_client_1._json,
|
|
3008
|
+
StatementType: smithy_client_1.expectString,
|
|
3009
|
+
Statistics: smithy_client_1._json,
|
|
3010
|
+
Status: (_) => de_QueryExecutionStatus(_, context),
|
|
3011
|
+
SubstatementType: smithy_client_1.expectString,
|
|
3012
|
+
WorkGroup: smithy_client_1.expectString,
|
|
4293
3013
|
});
|
|
4294
|
-
return retVal;
|
|
4295
3014
|
};
|
|
4296
3015
|
const de_QueryExecutionList = (output, context) => {
|
|
4297
3016
|
const retVal = (output || [])
|
|
4298
3017
|
.filter((e) => e != null)
|
|
4299
3018
|
.map((entry) => {
|
|
4300
|
-
if (entry === null) {
|
|
4301
|
-
return null;
|
|
4302
|
-
}
|
|
4303
3019
|
return de_QueryExecution(entry, context);
|
|
4304
3020
|
});
|
|
4305
3021
|
return retVal;
|
|
4306
3022
|
};
|
|
4307
|
-
const de_QueryExecutionStatistics = (output, context) => {
|
|
4308
|
-
return {
|
|
4309
|
-
DataManifestLocation: (0, smithy_client_1.expectString)(output.DataManifestLocation),
|
|
4310
|
-
DataScannedInBytes: (0, smithy_client_1.expectLong)(output.DataScannedInBytes),
|
|
4311
|
-
EngineExecutionTimeInMillis: (0, smithy_client_1.expectLong)(output.EngineExecutionTimeInMillis),
|
|
4312
|
-
QueryPlanningTimeInMillis: (0, smithy_client_1.expectLong)(output.QueryPlanningTimeInMillis),
|
|
4313
|
-
QueryQueueTimeInMillis: (0, smithy_client_1.expectLong)(output.QueryQueueTimeInMillis),
|
|
4314
|
-
ResultReuseInformation: output.ResultReuseInformation != null
|
|
4315
|
-
? de_ResultReuseInformation(output.ResultReuseInformation, context)
|
|
4316
|
-
: undefined,
|
|
4317
|
-
ServiceProcessingTimeInMillis: (0, smithy_client_1.expectLong)(output.ServiceProcessingTimeInMillis),
|
|
4318
|
-
TotalExecutionTimeInMillis: (0, smithy_client_1.expectLong)(output.TotalExecutionTimeInMillis),
|
|
4319
|
-
};
|
|
4320
|
-
};
|
|
4321
3023
|
const de_QueryExecutionStatus = (output, context) => {
|
|
4322
|
-
return {
|
|
4323
|
-
AthenaError:
|
|
4324
|
-
CompletionDateTime:
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
SubmissionDateTime: output.SubmissionDateTime != null
|
|
4330
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmissionDateTime)))
|
|
4331
|
-
: undefined,
|
|
4332
|
-
};
|
|
3024
|
+
return (0, smithy_client_1.take)(output, {
|
|
3025
|
+
AthenaError: smithy_client_1._json,
|
|
3026
|
+
CompletionDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3027
|
+
State: smithy_client_1.expectString,
|
|
3028
|
+
StateChangeReason: smithy_client_1.expectString,
|
|
3029
|
+
SubmissionDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3030
|
+
});
|
|
4333
3031
|
};
|
|
4334
3032
|
const de_QueryRuntimeStatistics = (output, context) => {
|
|
4335
|
-
return {
|
|
4336
|
-
OutputStage:
|
|
4337
|
-
Rows:
|
|
4338
|
-
Timeline:
|
|
4339
|
-
};
|
|
4340
|
-
};
|
|
4341
|
-
const de_QueryRuntimeStatisticsRows = (output, context) => {
|
|
4342
|
-
return {
|
|
4343
|
-
InputBytes: (0, smithy_client_1.expectLong)(output.InputBytes),
|
|
4344
|
-
InputRows: (0, smithy_client_1.expectLong)(output.InputRows),
|
|
4345
|
-
OutputBytes: (0, smithy_client_1.expectLong)(output.OutputBytes),
|
|
4346
|
-
OutputRows: (0, smithy_client_1.expectLong)(output.OutputRows),
|
|
4347
|
-
};
|
|
4348
|
-
};
|
|
4349
|
-
const de_QueryRuntimeStatisticsTimeline = (output, context) => {
|
|
4350
|
-
return {
|
|
4351
|
-
EngineExecutionTimeInMillis: (0, smithy_client_1.expectLong)(output.EngineExecutionTimeInMillis),
|
|
4352
|
-
QueryPlanningTimeInMillis: (0, smithy_client_1.expectLong)(output.QueryPlanningTimeInMillis),
|
|
4353
|
-
QueryQueueTimeInMillis: (0, smithy_client_1.expectLong)(output.QueryQueueTimeInMillis),
|
|
4354
|
-
ServiceProcessingTimeInMillis: (0, smithy_client_1.expectLong)(output.ServiceProcessingTimeInMillis),
|
|
4355
|
-
TotalExecutionTimeInMillis: (0, smithy_client_1.expectLong)(output.TotalExecutionTimeInMillis),
|
|
4356
|
-
};
|
|
3033
|
+
return (0, smithy_client_1.take)(output, {
|
|
3034
|
+
OutputStage: (_) => de_QueryStage(_, context),
|
|
3035
|
+
Rows: smithy_client_1._json,
|
|
3036
|
+
Timeline: smithy_client_1._json,
|
|
3037
|
+
});
|
|
4357
3038
|
};
|
|
4358
3039
|
const de_QueryStage = (output, context) => {
|
|
4359
|
-
return {
|
|
4360
|
-
ExecutionTime:
|
|
4361
|
-
InputBytes:
|
|
4362
|
-
InputRows:
|
|
4363
|
-
OutputBytes:
|
|
4364
|
-
OutputRows:
|
|
4365
|
-
QueryStagePlan:
|
|
4366
|
-
StageId:
|
|
4367
|
-
State:
|
|
4368
|
-
SubStages:
|
|
4369
|
-
};
|
|
3040
|
+
return (0, smithy_client_1.take)(output, {
|
|
3041
|
+
ExecutionTime: smithy_client_1.expectLong,
|
|
3042
|
+
InputBytes: smithy_client_1.expectLong,
|
|
3043
|
+
InputRows: smithy_client_1.expectLong,
|
|
3044
|
+
OutputBytes: smithy_client_1.expectLong,
|
|
3045
|
+
OutputRows: smithy_client_1.expectLong,
|
|
3046
|
+
QueryStagePlan: (_) => de_QueryStagePlanNode(_, context),
|
|
3047
|
+
StageId: smithy_client_1.expectLong,
|
|
3048
|
+
State: smithy_client_1.expectString,
|
|
3049
|
+
SubStages: (_) => de_QueryStages(_, context),
|
|
3050
|
+
});
|
|
4370
3051
|
};
|
|
4371
3052
|
const de_QueryStagePlanNode = (output, context) => {
|
|
4372
|
-
return {
|
|
4373
|
-
Children:
|
|
4374
|
-
Identifier:
|
|
4375
|
-
Name:
|
|
4376
|
-
RemoteSources:
|
|
4377
|
-
};
|
|
3053
|
+
return (0, smithy_client_1.take)(output, {
|
|
3054
|
+
Children: (_) => de_QueryStagePlanNodes(_, context),
|
|
3055
|
+
Identifier: smithy_client_1.expectString,
|
|
3056
|
+
Name: smithy_client_1.expectString,
|
|
3057
|
+
RemoteSources: smithy_client_1._json,
|
|
3058
|
+
});
|
|
4378
3059
|
};
|
|
4379
3060
|
const de_QueryStagePlanNodes = (output, context) => {
|
|
4380
3061
|
const retVal = (output || [])
|
|
4381
3062
|
.filter((e) => e != null)
|
|
4382
3063
|
.map((entry) => {
|
|
4383
|
-
if (entry === null) {
|
|
4384
|
-
return null;
|
|
4385
|
-
}
|
|
4386
3064
|
return de_QueryStagePlanNode(entry, context);
|
|
4387
3065
|
});
|
|
4388
3066
|
return retVal;
|
|
@@ -4391,357 +3069,81 @@ const de_QueryStages = (output, context) => {
|
|
|
4391
3069
|
const retVal = (output || [])
|
|
4392
3070
|
.filter((e) => e != null)
|
|
4393
3071
|
.map((entry) => {
|
|
4394
|
-
if (entry === null) {
|
|
4395
|
-
return null;
|
|
4396
|
-
}
|
|
4397
3072
|
return de_QueryStage(entry, context);
|
|
4398
3073
|
});
|
|
4399
3074
|
return retVal;
|
|
4400
3075
|
};
|
|
4401
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
4402
|
-
return {
|
|
4403
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4404
|
-
ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
|
|
4405
|
-
};
|
|
4406
|
-
};
|
|
4407
|
-
const de_ResultConfiguration = (output, context) => {
|
|
4408
|
-
return {
|
|
4409
|
-
AclConfiguration: output.AclConfiguration != null ? de_AclConfiguration(output.AclConfiguration, context) : undefined,
|
|
4410
|
-
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
4411
|
-
? de_EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
4412
|
-
: undefined,
|
|
4413
|
-
ExpectedBucketOwner: (0, smithy_client_1.expectString)(output.ExpectedBucketOwner),
|
|
4414
|
-
OutputLocation: (0, smithy_client_1.expectString)(output.OutputLocation),
|
|
4415
|
-
};
|
|
4416
|
-
};
|
|
4417
|
-
const de_ResultReuseByAgeConfiguration = (output, context) => {
|
|
4418
|
-
return {
|
|
4419
|
-
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
4420
|
-
MaxAgeInMinutes: (0, smithy_client_1.expectInt32)(output.MaxAgeInMinutes),
|
|
4421
|
-
};
|
|
4422
|
-
};
|
|
4423
|
-
const de_ResultReuseConfiguration = (output, context) => {
|
|
4424
|
-
return {
|
|
4425
|
-
ResultReuseByAgeConfiguration: output.ResultReuseByAgeConfiguration != null
|
|
4426
|
-
? de_ResultReuseByAgeConfiguration(output.ResultReuseByAgeConfiguration, context)
|
|
4427
|
-
: undefined,
|
|
4428
|
-
};
|
|
4429
|
-
};
|
|
4430
|
-
const de_ResultReuseInformation = (output, context) => {
|
|
4431
|
-
return {
|
|
4432
|
-
ReusedPreviousResult: (0, smithy_client_1.expectBoolean)(output.ReusedPreviousResult),
|
|
4433
|
-
};
|
|
4434
|
-
};
|
|
4435
|
-
const de_ResultSet = (output, context) => {
|
|
4436
|
-
return {
|
|
4437
|
-
ResultSetMetadata: output.ResultSetMetadata != null ? de_ResultSetMetadata(output.ResultSetMetadata, context) : undefined,
|
|
4438
|
-
Rows: output.Rows != null ? de_RowList(output.Rows, context) : undefined,
|
|
4439
|
-
};
|
|
4440
|
-
};
|
|
4441
|
-
const de_ResultSetMetadata = (output, context) => {
|
|
4442
|
-
return {
|
|
4443
|
-
ColumnInfo: output.ColumnInfo != null ? de_ColumnInfoList(output.ColumnInfo, context) : undefined,
|
|
4444
|
-
};
|
|
4445
|
-
};
|
|
4446
|
-
const de_Row = (output, context) => {
|
|
4447
|
-
return {
|
|
4448
|
-
Data: output.Data != null ? de_datumList(output.Data, context) : undefined,
|
|
4449
|
-
};
|
|
4450
|
-
};
|
|
4451
|
-
const de_RowList = (output, context) => {
|
|
4452
|
-
const retVal = (output || [])
|
|
4453
|
-
.filter((e) => e != null)
|
|
4454
|
-
.map((entry) => {
|
|
4455
|
-
if (entry === null) {
|
|
4456
|
-
return null;
|
|
4457
|
-
}
|
|
4458
|
-
return de_Row(entry, context);
|
|
4459
|
-
});
|
|
4460
|
-
return retVal;
|
|
4461
|
-
};
|
|
4462
|
-
const de_SessionAlreadyExistsException = (output, context) => {
|
|
4463
|
-
return {
|
|
4464
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4465
|
-
};
|
|
4466
|
-
};
|
|
4467
|
-
const de_SessionConfiguration = (output, context) => {
|
|
4468
|
-
return {
|
|
4469
|
-
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
4470
|
-
? de_EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
4471
|
-
: undefined,
|
|
4472
|
-
ExecutionRole: (0, smithy_client_1.expectString)(output.ExecutionRole),
|
|
4473
|
-
IdleTimeoutSeconds: (0, smithy_client_1.expectLong)(output.IdleTimeoutSeconds),
|
|
4474
|
-
WorkingDirectory: (0, smithy_client_1.expectString)(output.WorkingDirectory),
|
|
4475
|
-
};
|
|
4476
|
-
};
|
|
4477
3076
|
const de_SessionsList = (output, context) => {
|
|
4478
3077
|
const retVal = (output || [])
|
|
4479
3078
|
.filter((e) => e != null)
|
|
4480
3079
|
.map((entry) => {
|
|
4481
|
-
if (entry === null) {
|
|
4482
|
-
return null;
|
|
4483
|
-
}
|
|
4484
3080
|
return de_SessionSummary(entry, context);
|
|
4485
3081
|
});
|
|
4486
3082
|
return retVal;
|
|
4487
3083
|
};
|
|
4488
|
-
const de_SessionStatistics = (output, context) => {
|
|
4489
|
-
return {
|
|
4490
|
-
DpuExecutionInMillis: (0, smithy_client_1.expectLong)(output.DpuExecutionInMillis),
|
|
4491
|
-
};
|
|
4492
|
-
};
|
|
4493
3084
|
const de_SessionStatus = (output, context) => {
|
|
4494
|
-
return {
|
|
4495
|
-
EndDateTime:
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
LastModifiedDateTime: output.LastModifiedDateTime != null
|
|
4502
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDateTime)))
|
|
4503
|
-
: undefined,
|
|
4504
|
-
StartDateTime: output.StartDateTime != null
|
|
4505
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDateTime)))
|
|
4506
|
-
: undefined,
|
|
4507
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
4508
|
-
StateChangeReason: (0, smithy_client_1.expectString)(output.StateChangeReason),
|
|
4509
|
-
};
|
|
4510
|
-
};
|
|
4511
|
-
const de_SessionSummary = (output, context) => {
|
|
4512
|
-
return {
|
|
4513
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4514
|
-
EngineVersion: output.EngineVersion != null ? de_EngineVersion(output.EngineVersion, context) : undefined,
|
|
4515
|
-
NotebookVersion: (0, smithy_client_1.expectString)(output.NotebookVersion),
|
|
4516
|
-
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4517
|
-
Status: output.Status != null ? de_SessionStatus(output.Status, context) : undefined,
|
|
4518
|
-
};
|
|
4519
|
-
};
|
|
4520
|
-
const de_StartCalculationExecutionResponse = (output, context) => {
|
|
4521
|
-
return {
|
|
4522
|
-
CalculationExecutionId: (0, smithy_client_1.expectString)(output.CalculationExecutionId),
|
|
4523
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
4524
|
-
};
|
|
4525
|
-
};
|
|
4526
|
-
const de_StartQueryExecutionOutput = (output, context) => {
|
|
4527
|
-
return {
|
|
4528
|
-
QueryExecutionId: (0, smithy_client_1.expectString)(output.QueryExecutionId),
|
|
4529
|
-
};
|
|
4530
|
-
};
|
|
4531
|
-
const de_StartSessionResponse = (output, context) => {
|
|
4532
|
-
return {
|
|
4533
|
-
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4534
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
4535
|
-
};
|
|
4536
|
-
};
|
|
4537
|
-
const de_StopCalculationExecutionResponse = (output, context) => {
|
|
4538
|
-
return {
|
|
4539
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
4540
|
-
};
|
|
4541
|
-
};
|
|
4542
|
-
const de_StopQueryExecutionOutput = (output, context) => {
|
|
4543
|
-
return {};
|
|
4544
|
-
};
|
|
4545
|
-
const de_StringList = (output, context) => {
|
|
4546
|
-
const retVal = (output || [])
|
|
4547
|
-
.filter((e) => e != null)
|
|
4548
|
-
.map((entry) => {
|
|
4549
|
-
if (entry === null) {
|
|
4550
|
-
return null;
|
|
4551
|
-
}
|
|
4552
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3085
|
+
return (0, smithy_client_1.take)(output, {
|
|
3086
|
+
EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3087
|
+
IdleSinceDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3088
|
+
LastModifiedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3089
|
+
StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3090
|
+
State: smithy_client_1.expectString,
|
|
3091
|
+
StateChangeReason: smithy_client_1.expectString,
|
|
4553
3092
|
});
|
|
4554
|
-
return retVal;
|
|
4555
3093
|
};
|
|
4556
|
-
const
|
|
4557
|
-
|
|
4558
|
-
.
|
|
4559
|
-
.
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
return (0, smithy_client_1.expectInt32)(entry);
|
|
3094
|
+
const de_SessionSummary = (output, context) => {
|
|
3095
|
+
return (0, smithy_client_1.take)(output, {
|
|
3096
|
+
Description: smithy_client_1.expectString,
|
|
3097
|
+
EngineVersion: smithy_client_1._json,
|
|
3098
|
+
NotebookVersion: smithy_client_1.expectString,
|
|
3099
|
+
SessionId: smithy_client_1.expectString,
|
|
3100
|
+
Status: (_) => de_SessionStatus(_, context),
|
|
4564
3101
|
});
|
|
4565
|
-
return retVal;
|
|
4566
3102
|
};
|
|
4567
3103
|
const de_TableMetadata = (output, context) => {
|
|
4568
|
-
return {
|
|
4569
|
-
Columns:
|
|
4570
|
-
CreateTime:
|
|
4571
|
-
LastAccessTime:
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
TableType: (0, smithy_client_1.expectString)(output.TableType),
|
|
4578
|
-
};
|
|
3104
|
+
return (0, smithy_client_1.take)(output, {
|
|
3105
|
+
Columns: smithy_client_1._json,
|
|
3106
|
+
CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3107
|
+
LastAccessTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3108
|
+
Name: smithy_client_1.expectString,
|
|
3109
|
+
Parameters: smithy_client_1._json,
|
|
3110
|
+
PartitionKeys: smithy_client_1._json,
|
|
3111
|
+
TableType: smithy_client_1.expectString,
|
|
3112
|
+
});
|
|
4579
3113
|
};
|
|
4580
3114
|
const de_TableMetadataList = (output, context) => {
|
|
4581
3115
|
const retVal = (output || [])
|
|
4582
3116
|
.filter((e) => e != null)
|
|
4583
3117
|
.map((entry) => {
|
|
4584
|
-
if (entry === null) {
|
|
4585
|
-
return null;
|
|
4586
|
-
}
|
|
4587
3118
|
return de_TableMetadata(entry, context);
|
|
4588
3119
|
});
|
|
4589
3120
|
return retVal;
|
|
4590
3121
|
};
|
|
4591
|
-
const de_Tag = (output, context) => {
|
|
4592
|
-
return {
|
|
4593
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
4594
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
4595
|
-
};
|
|
4596
|
-
};
|
|
4597
|
-
const de_TagList = (output, context) => {
|
|
4598
|
-
const retVal = (output || [])
|
|
4599
|
-
.filter((e) => e != null)
|
|
4600
|
-
.map((entry) => {
|
|
4601
|
-
if (entry === null) {
|
|
4602
|
-
return null;
|
|
4603
|
-
}
|
|
4604
|
-
return de_Tag(entry, context);
|
|
4605
|
-
});
|
|
4606
|
-
return retVal;
|
|
4607
|
-
};
|
|
4608
|
-
const de_TagResourceOutput = (output, context) => {
|
|
4609
|
-
return {};
|
|
4610
|
-
};
|
|
4611
|
-
const de_TerminateSessionResponse = (output, context) => {
|
|
4612
|
-
return {
|
|
4613
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
4614
|
-
};
|
|
4615
|
-
};
|
|
4616
|
-
const de_TooManyRequestsException = (output, context) => {
|
|
4617
|
-
return {
|
|
4618
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4619
|
-
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
4620
|
-
};
|
|
4621
|
-
};
|
|
4622
|
-
const de_UnprocessedNamedQueryId = (output, context) => {
|
|
4623
|
-
return {
|
|
4624
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
4625
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
4626
|
-
NamedQueryId: (0, smithy_client_1.expectString)(output.NamedQueryId),
|
|
4627
|
-
};
|
|
4628
|
-
};
|
|
4629
|
-
const de_UnprocessedNamedQueryIdList = (output, context) => {
|
|
4630
|
-
const retVal = (output || [])
|
|
4631
|
-
.filter((e) => e != null)
|
|
4632
|
-
.map((entry) => {
|
|
4633
|
-
if (entry === null) {
|
|
4634
|
-
return null;
|
|
4635
|
-
}
|
|
4636
|
-
return de_UnprocessedNamedQueryId(entry, context);
|
|
4637
|
-
});
|
|
4638
|
-
return retVal;
|
|
4639
|
-
};
|
|
4640
|
-
const de_UnprocessedPreparedStatementName = (output, context) => {
|
|
4641
|
-
return {
|
|
4642
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
4643
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
4644
|
-
StatementName: (0, smithy_client_1.expectString)(output.StatementName),
|
|
4645
|
-
};
|
|
4646
|
-
};
|
|
4647
|
-
const de_UnprocessedPreparedStatementNameList = (output, context) => {
|
|
4648
|
-
const retVal = (output || [])
|
|
4649
|
-
.filter((e) => e != null)
|
|
4650
|
-
.map((entry) => {
|
|
4651
|
-
if (entry === null) {
|
|
4652
|
-
return null;
|
|
4653
|
-
}
|
|
4654
|
-
return de_UnprocessedPreparedStatementName(entry, context);
|
|
4655
|
-
});
|
|
4656
|
-
return retVal;
|
|
4657
|
-
};
|
|
4658
|
-
const de_UnprocessedQueryExecutionId = (output, context) => {
|
|
4659
|
-
return {
|
|
4660
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
4661
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
4662
|
-
QueryExecutionId: (0, smithy_client_1.expectString)(output.QueryExecutionId),
|
|
4663
|
-
};
|
|
4664
|
-
};
|
|
4665
|
-
const de_UnprocessedQueryExecutionIdList = (output, context) => {
|
|
4666
|
-
const retVal = (output || [])
|
|
4667
|
-
.filter((e) => e != null)
|
|
4668
|
-
.map((entry) => {
|
|
4669
|
-
if (entry === null) {
|
|
4670
|
-
return null;
|
|
4671
|
-
}
|
|
4672
|
-
return de_UnprocessedQueryExecutionId(entry, context);
|
|
4673
|
-
});
|
|
4674
|
-
return retVal;
|
|
4675
|
-
};
|
|
4676
|
-
const de_UntagResourceOutput = (output, context) => {
|
|
4677
|
-
return {};
|
|
4678
|
-
};
|
|
4679
|
-
const de_UpdateDataCatalogOutput = (output, context) => {
|
|
4680
|
-
return {};
|
|
4681
|
-
};
|
|
4682
|
-
const de_UpdateNamedQueryOutput = (output, context) => {
|
|
4683
|
-
return {};
|
|
4684
|
-
};
|
|
4685
|
-
const de_UpdateNotebookMetadataOutput = (output, context) => {
|
|
4686
|
-
return {};
|
|
4687
|
-
};
|
|
4688
|
-
const de_UpdateNotebookOutput = (output, context) => {
|
|
4689
|
-
return {};
|
|
4690
|
-
};
|
|
4691
|
-
const de_UpdatePreparedStatementOutput = (output, context) => {
|
|
4692
|
-
return {};
|
|
4693
|
-
};
|
|
4694
|
-
const de_UpdateWorkGroupOutput = (output, context) => {
|
|
4695
|
-
return {};
|
|
4696
|
-
};
|
|
4697
3122
|
const de_WorkGroup = (output, context) => {
|
|
4698
|
-
return {
|
|
4699
|
-
Configuration:
|
|
4700
|
-
CreationTime:
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
4706
|
-
};
|
|
4707
|
-
};
|
|
4708
|
-
const de_WorkGroupConfiguration = (output, context) => {
|
|
4709
|
-
return {
|
|
4710
|
-
AdditionalConfiguration: (0, smithy_client_1.expectString)(output.AdditionalConfiguration),
|
|
4711
|
-
BytesScannedCutoffPerQuery: (0, smithy_client_1.expectLong)(output.BytesScannedCutoffPerQuery),
|
|
4712
|
-
CustomerContentEncryptionConfiguration: output.CustomerContentEncryptionConfiguration != null
|
|
4713
|
-
? de_CustomerContentEncryptionConfiguration(output.CustomerContentEncryptionConfiguration, context)
|
|
4714
|
-
: undefined,
|
|
4715
|
-
EnableMinimumEncryptionConfiguration: (0, smithy_client_1.expectBoolean)(output.EnableMinimumEncryptionConfiguration),
|
|
4716
|
-
EnforceWorkGroupConfiguration: (0, smithy_client_1.expectBoolean)(output.EnforceWorkGroupConfiguration),
|
|
4717
|
-
EngineVersion: output.EngineVersion != null ? de_EngineVersion(output.EngineVersion, context) : undefined,
|
|
4718
|
-
ExecutionRole: (0, smithy_client_1.expectString)(output.ExecutionRole),
|
|
4719
|
-
PublishCloudWatchMetricsEnabled: (0, smithy_client_1.expectBoolean)(output.PublishCloudWatchMetricsEnabled),
|
|
4720
|
-
RequesterPaysEnabled: (0, smithy_client_1.expectBoolean)(output.RequesterPaysEnabled),
|
|
4721
|
-
ResultConfiguration: output.ResultConfiguration != null ? de_ResultConfiguration(output.ResultConfiguration, context) : undefined,
|
|
4722
|
-
};
|
|
3123
|
+
return (0, smithy_client_1.take)(output, {
|
|
3124
|
+
Configuration: smithy_client_1._json,
|
|
3125
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3126
|
+
Description: smithy_client_1.expectString,
|
|
3127
|
+
Name: smithy_client_1.expectString,
|
|
3128
|
+
State: smithy_client_1.expectString,
|
|
3129
|
+
});
|
|
4723
3130
|
};
|
|
4724
3131
|
const de_WorkGroupsList = (output, context) => {
|
|
4725
3132
|
const retVal = (output || [])
|
|
4726
3133
|
.filter((e) => e != null)
|
|
4727
3134
|
.map((entry) => {
|
|
4728
|
-
if (entry === null) {
|
|
4729
|
-
return null;
|
|
4730
|
-
}
|
|
4731
3135
|
return de_WorkGroupSummary(entry, context);
|
|
4732
3136
|
});
|
|
4733
3137
|
return retVal;
|
|
4734
3138
|
};
|
|
4735
3139
|
const de_WorkGroupSummary = (output, context) => {
|
|
4736
|
-
return {
|
|
4737
|
-
CreationTime:
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
4744
|
-
};
|
|
3140
|
+
return (0, smithy_client_1.take)(output, {
|
|
3141
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3142
|
+
Description: smithy_client_1.expectString,
|
|
3143
|
+
EngineVersion: smithy_client_1._json,
|
|
3144
|
+
Name: smithy_client_1.expectString,
|
|
3145
|
+
State: smithy_client_1.expectString,
|
|
3146
|
+
});
|
|
4745
3147
|
};
|
|
4746
3148
|
const deserializeMetadata = (output) => ({
|
|
4747
3149
|
httpStatusCode: output.statusCode,
|
|
@@ -4756,6 +3158,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4756
3158
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4757
3159
|
};
|
|
4758
3160
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3161
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(AthenaServiceException_1.AthenaServiceException);
|
|
4759
3162
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4760
3163
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4761
3164
|
const contents = {
|
|
@@ -4774,6 +3177,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4774
3177
|
}
|
|
4775
3178
|
return new protocol_http_1.HttpRequest(contents);
|
|
4776
3179
|
};
|
|
3180
|
+
function sharedHeaders(operation) {
|
|
3181
|
+
return {
|
|
3182
|
+
"content-type": "application/x-amz-json-1.1",
|
|
3183
|
+
"x-amz-target": `AmazonAthena.${operation}`,
|
|
3184
|
+
};
|
|
3185
|
+
}
|
|
4777
3186
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4778
3187
|
if (encoded.length) {
|
|
4779
3188
|
return JSON.parse(encoded);
|