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