@aws-sdk/client-timestream-query 3.52.0 → 3.53.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/CHANGELOG.md +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/TimestreamQueryServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +130 -2
- package/dist-cjs/protocols/Aws_json1_0.js +176 -602
- package/dist-es/index.js +1 -0
- package/dist-es/models/TimestreamQueryServiceException.js +12 -0
- package/dist-es/models/models_0.js +120 -1
- package/dist-es/protocols/Aws_json1_0.js +350 -637
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/TimestreamQueryServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +65 -28
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/TimestreamQueryServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +47 -28
- package/package.json +26 -26
|
@@ -4,6 +4,8 @@ exports.deserializeAws_json1_0UpdateScheduledQueryCommand = exports.deserializeA
|
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const TimestreamQueryServiceException_1 = require("../models/TimestreamQueryServiceException");
|
|
7
9
|
const serializeAws_json1_0CancelQueryCommand = async (input, context) => {
|
|
8
10
|
const headers = {
|
|
9
11
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -159,59 +161,28 @@ const deserializeAws_json1_0CancelQueryCommandError = async (output, context) =>
|
|
|
159
161
|
switch (errorCode) {
|
|
160
162
|
case "AccessDeniedException":
|
|
161
163
|
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
162
|
-
|
|
163
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
164
|
-
name: errorCode,
|
|
165
|
-
$metadata: deserializeMetadata(output),
|
|
166
|
-
};
|
|
167
|
-
break;
|
|
164
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
168
165
|
case "InternalServerException":
|
|
169
166
|
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
170
|
-
|
|
171
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
172
|
-
name: errorCode,
|
|
173
|
-
$metadata: deserializeMetadata(output),
|
|
174
|
-
};
|
|
175
|
-
break;
|
|
167
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
176
168
|
case "InvalidEndpointException":
|
|
177
169
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
178
|
-
|
|
179
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
180
|
-
name: errorCode,
|
|
181
|
-
$metadata: deserializeMetadata(output),
|
|
182
|
-
};
|
|
183
|
-
break;
|
|
170
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
184
171
|
case "ThrottlingException":
|
|
185
172
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
186
|
-
|
|
187
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
188
|
-
name: errorCode,
|
|
189
|
-
$metadata: deserializeMetadata(output),
|
|
190
|
-
};
|
|
191
|
-
break;
|
|
173
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
192
174
|
case "ValidationException":
|
|
193
175
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
194
|
-
|
|
195
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
196
|
-
name: errorCode,
|
|
197
|
-
$metadata: deserializeMetadata(output),
|
|
198
|
-
};
|
|
199
|
-
break;
|
|
176
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
200
177
|
default:
|
|
201
178
|
const parsedBody = parsedOutput.body;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
...parsedBody,
|
|
205
|
-
name: `${errorCode}`,
|
|
206
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
179
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
180
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
207
181
|
$fault: "client",
|
|
208
182
|
$metadata: deserializeMetadata(output),
|
|
209
|
-
};
|
|
183
|
+
});
|
|
184
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
210
185
|
}
|
|
211
|
-
const message = response.message || response.Message || errorCode;
|
|
212
|
-
response.message = message;
|
|
213
|
-
delete response.Message;
|
|
214
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
215
186
|
};
|
|
216
187
|
const deserializeAws_json1_0CreateScheduledQueryCommand = async (output, context) => {
|
|
217
188
|
if (output.statusCode >= 300) {
|
|
@@ -238,75 +209,34 @@ const deserializeAws_json1_0CreateScheduledQueryCommandError = async (output, co
|
|
|
238
209
|
switch (errorCode) {
|
|
239
210
|
case "AccessDeniedException":
|
|
240
211
|
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
241
|
-
|
|
242
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
243
|
-
name: errorCode,
|
|
244
|
-
$metadata: deserializeMetadata(output),
|
|
245
|
-
};
|
|
246
|
-
break;
|
|
212
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
247
213
|
case "ConflictException":
|
|
248
214
|
case "com.amazonaws.timestreamquery#ConflictException":
|
|
249
|
-
|
|
250
|
-
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
251
|
-
name: errorCode,
|
|
252
|
-
$metadata: deserializeMetadata(output),
|
|
253
|
-
};
|
|
254
|
-
break;
|
|
215
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
255
216
|
case "InternalServerException":
|
|
256
217
|
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
257
|
-
|
|
258
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
259
|
-
name: errorCode,
|
|
260
|
-
$metadata: deserializeMetadata(output),
|
|
261
|
-
};
|
|
262
|
-
break;
|
|
218
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
263
219
|
case "InvalidEndpointException":
|
|
264
220
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
265
|
-
|
|
266
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
267
|
-
name: errorCode,
|
|
268
|
-
$metadata: deserializeMetadata(output),
|
|
269
|
-
};
|
|
270
|
-
break;
|
|
221
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
271
222
|
case "ServiceQuotaExceededException":
|
|
272
223
|
case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
|
|
273
|
-
|
|
274
|
-
...(await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
275
|
-
name: errorCode,
|
|
276
|
-
$metadata: deserializeMetadata(output),
|
|
277
|
-
};
|
|
278
|
-
break;
|
|
224
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
279
225
|
case "ThrottlingException":
|
|
280
226
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
281
|
-
|
|
282
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
283
|
-
name: errorCode,
|
|
284
|
-
$metadata: deserializeMetadata(output),
|
|
285
|
-
};
|
|
286
|
-
break;
|
|
227
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
287
228
|
case "ValidationException":
|
|
288
229
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
289
|
-
|
|
290
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
291
|
-
name: errorCode,
|
|
292
|
-
$metadata: deserializeMetadata(output),
|
|
293
|
-
};
|
|
294
|
-
break;
|
|
230
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
295
231
|
default:
|
|
296
232
|
const parsedBody = parsedOutput.body;
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
...parsedBody,
|
|
300
|
-
name: `${errorCode}`,
|
|
301
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
233
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
234
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
302
235
|
$fault: "client",
|
|
303
236
|
$metadata: deserializeMetadata(output),
|
|
304
|
-
};
|
|
237
|
+
});
|
|
238
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
305
239
|
}
|
|
306
|
-
const message = response.message || response.Message || errorCode;
|
|
307
|
-
response.message = message;
|
|
308
|
-
delete response.Message;
|
|
309
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
310
240
|
};
|
|
311
241
|
const deserializeAws_json1_0DeleteScheduledQueryCommand = async (output, context) => {
|
|
312
242
|
if (output.statusCode >= 300) {
|
|
@@ -330,67 +260,31 @@ const deserializeAws_json1_0DeleteScheduledQueryCommandError = async (output, co
|
|
|
330
260
|
switch (errorCode) {
|
|
331
261
|
case "AccessDeniedException":
|
|
332
262
|
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
333
|
-
|
|
334
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
335
|
-
name: errorCode,
|
|
336
|
-
$metadata: deserializeMetadata(output),
|
|
337
|
-
};
|
|
338
|
-
break;
|
|
263
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
339
264
|
case "InternalServerException":
|
|
340
265
|
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
341
|
-
|
|
342
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
343
|
-
name: errorCode,
|
|
344
|
-
$metadata: deserializeMetadata(output),
|
|
345
|
-
};
|
|
346
|
-
break;
|
|
266
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
347
267
|
case "InvalidEndpointException":
|
|
348
268
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
349
|
-
|
|
350
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
351
|
-
name: errorCode,
|
|
352
|
-
$metadata: deserializeMetadata(output),
|
|
353
|
-
};
|
|
354
|
-
break;
|
|
269
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
355
270
|
case "ResourceNotFoundException":
|
|
356
271
|
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
357
|
-
|
|
358
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
359
|
-
name: errorCode,
|
|
360
|
-
$metadata: deserializeMetadata(output),
|
|
361
|
-
};
|
|
362
|
-
break;
|
|
272
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
363
273
|
case "ThrottlingException":
|
|
364
274
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
365
|
-
|
|
366
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
367
|
-
name: errorCode,
|
|
368
|
-
$metadata: deserializeMetadata(output),
|
|
369
|
-
};
|
|
370
|
-
break;
|
|
275
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
371
276
|
case "ValidationException":
|
|
372
277
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
373
|
-
|
|
374
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
375
|
-
name: errorCode,
|
|
376
|
-
$metadata: deserializeMetadata(output),
|
|
377
|
-
};
|
|
378
|
-
break;
|
|
278
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
379
279
|
default:
|
|
380
280
|
const parsedBody = parsedOutput.body;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
...parsedBody,
|
|
384
|
-
name: `${errorCode}`,
|
|
385
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
281
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
282
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
386
283
|
$fault: "client",
|
|
387
284
|
$metadata: deserializeMetadata(output),
|
|
388
|
-
};
|
|
285
|
+
});
|
|
286
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
389
287
|
}
|
|
390
|
-
const message = response.message || response.Message || errorCode;
|
|
391
|
-
response.message = message;
|
|
392
|
-
delete response.Message;
|
|
393
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
394
288
|
};
|
|
395
289
|
const deserializeAws_json1_0DescribeEndpointsCommand = async (output, context) => {
|
|
396
290
|
if (output.statusCode >= 300) {
|
|
@@ -417,43 +311,22 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
417
311
|
switch (errorCode) {
|
|
418
312
|
case "InternalServerException":
|
|
419
313
|
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
420
|
-
|
|
421
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
422
|
-
name: errorCode,
|
|
423
|
-
$metadata: deserializeMetadata(output),
|
|
424
|
-
};
|
|
425
|
-
break;
|
|
314
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
426
315
|
case "ThrottlingException":
|
|
427
316
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
428
|
-
|
|
429
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
430
|
-
name: errorCode,
|
|
431
|
-
$metadata: deserializeMetadata(output),
|
|
432
|
-
};
|
|
433
|
-
break;
|
|
317
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
434
318
|
case "ValidationException":
|
|
435
319
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
436
|
-
|
|
437
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
438
|
-
name: errorCode,
|
|
439
|
-
$metadata: deserializeMetadata(output),
|
|
440
|
-
};
|
|
441
|
-
break;
|
|
320
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
442
321
|
default:
|
|
443
322
|
const parsedBody = parsedOutput.body;
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
...parsedBody,
|
|
447
|
-
name: `${errorCode}`,
|
|
448
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
323
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
324
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
449
325
|
$fault: "client",
|
|
450
326
|
$metadata: deserializeMetadata(output),
|
|
451
|
-
};
|
|
327
|
+
});
|
|
328
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
452
329
|
}
|
|
453
|
-
const message = response.message || response.Message || errorCode;
|
|
454
|
-
response.message = message;
|
|
455
|
-
delete response.Message;
|
|
456
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
457
330
|
};
|
|
458
331
|
const deserializeAws_json1_0DescribeScheduledQueryCommand = async (output, context) => {
|
|
459
332
|
if (output.statusCode >= 300) {
|
|
@@ -480,67 +353,31 @@ const deserializeAws_json1_0DescribeScheduledQueryCommandError = async (output,
|
|
|
480
353
|
switch (errorCode) {
|
|
481
354
|
case "AccessDeniedException":
|
|
482
355
|
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
483
|
-
|
|
484
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
485
|
-
name: errorCode,
|
|
486
|
-
$metadata: deserializeMetadata(output),
|
|
487
|
-
};
|
|
488
|
-
break;
|
|
356
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
489
357
|
case "InternalServerException":
|
|
490
358
|
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
491
|
-
|
|
492
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
493
|
-
name: errorCode,
|
|
494
|
-
$metadata: deserializeMetadata(output),
|
|
495
|
-
};
|
|
496
|
-
break;
|
|
359
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
497
360
|
case "InvalidEndpointException":
|
|
498
361
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
499
|
-
|
|
500
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
501
|
-
name: errorCode,
|
|
502
|
-
$metadata: deserializeMetadata(output),
|
|
503
|
-
};
|
|
504
|
-
break;
|
|
362
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
505
363
|
case "ResourceNotFoundException":
|
|
506
364
|
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
507
|
-
|
|
508
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
509
|
-
name: errorCode,
|
|
510
|
-
$metadata: deserializeMetadata(output),
|
|
511
|
-
};
|
|
512
|
-
break;
|
|
365
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
513
366
|
case "ThrottlingException":
|
|
514
367
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
515
|
-
|
|
516
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
517
|
-
name: errorCode,
|
|
518
|
-
$metadata: deserializeMetadata(output),
|
|
519
|
-
};
|
|
520
|
-
break;
|
|
368
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
521
369
|
case "ValidationException":
|
|
522
370
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
523
|
-
|
|
524
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
525
|
-
name: errorCode,
|
|
526
|
-
$metadata: deserializeMetadata(output),
|
|
527
|
-
};
|
|
528
|
-
break;
|
|
371
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
529
372
|
default:
|
|
530
373
|
const parsedBody = parsedOutput.body;
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
...parsedBody,
|
|
534
|
-
name: `${errorCode}`,
|
|
535
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
374
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
375
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
536
376
|
$fault: "client",
|
|
537
377
|
$metadata: deserializeMetadata(output),
|
|
538
|
-
};
|
|
378
|
+
});
|
|
379
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
539
380
|
}
|
|
540
|
-
const message = response.message || response.Message || errorCode;
|
|
541
|
-
response.message = message;
|
|
542
|
-
delete response.Message;
|
|
543
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
544
381
|
};
|
|
545
382
|
const deserializeAws_json1_0ExecuteScheduledQueryCommand = async (output, context) => {
|
|
546
383
|
if (output.statusCode >= 300) {
|
|
@@ -564,67 +401,31 @@ const deserializeAws_json1_0ExecuteScheduledQueryCommandError = async (output, c
|
|
|
564
401
|
switch (errorCode) {
|
|
565
402
|
case "AccessDeniedException":
|
|
566
403
|
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
567
|
-
|
|
568
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
569
|
-
name: errorCode,
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
};
|
|
572
|
-
break;
|
|
404
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
573
405
|
case "InternalServerException":
|
|
574
406
|
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
575
|
-
|
|
576
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
577
|
-
name: errorCode,
|
|
578
|
-
$metadata: deserializeMetadata(output),
|
|
579
|
-
};
|
|
580
|
-
break;
|
|
407
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
581
408
|
case "InvalidEndpointException":
|
|
582
409
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
583
|
-
|
|
584
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
585
|
-
name: errorCode,
|
|
586
|
-
$metadata: deserializeMetadata(output),
|
|
587
|
-
};
|
|
588
|
-
break;
|
|
410
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
589
411
|
case "ResourceNotFoundException":
|
|
590
412
|
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
591
|
-
|
|
592
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
593
|
-
name: errorCode,
|
|
594
|
-
$metadata: deserializeMetadata(output),
|
|
595
|
-
};
|
|
596
|
-
break;
|
|
413
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
597
414
|
case "ThrottlingException":
|
|
598
415
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
599
|
-
|
|
600
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
601
|
-
name: errorCode,
|
|
602
|
-
$metadata: deserializeMetadata(output),
|
|
603
|
-
};
|
|
604
|
-
break;
|
|
416
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
605
417
|
case "ValidationException":
|
|
606
418
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
607
|
-
|
|
608
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
609
|
-
name: errorCode,
|
|
610
|
-
$metadata: deserializeMetadata(output),
|
|
611
|
-
};
|
|
612
|
-
break;
|
|
419
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
613
420
|
default:
|
|
614
421
|
const parsedBody = parsedOutput.body;
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
...parsedBody,
|
|
618
|
-
name: `${errorCode}`,
|
|
619
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
422
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
423
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
620
424
|
$fault: "client",
|
|
621
425
|
$metadata: deserializeMetadata(output),
|
|
622
|
-
};
|
|
426
|
+
});
|
|
427
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
623
428
|
}
|
|
624
|
-
const message = response.message || response.Message || errorCode;
|
|
625
|
-
response.message = message;
|
|
626
|
-
delete response.Message;
|
|
627
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
628
429
|
};
|
|
629
430
|
const deserializeAws_json1_0ListScheduledQueriesCommand = async (output, context) => {
|
|
630
431
|
if (output.statusCode >= 300) {
|
|
@@ -651,59 +452,28 @@ const deserializeAws_json1_0ListScheduledQueriesCommandError = async (output, co
|
|
|
651
452
|
switch (errorCode) {
|
|
652
453
|
case "AccessDeniedException":
|
|
653
454
|
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
654
|
-
|
|
655
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
656
|
-
name: errorCode,
|
|
657
|
-
$metadata: deserializeMetadata(output),
|
|
658
|
-
};
|
|
659
|
-
break;
|
|
455
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
660
456
|
case "InternalServerException":
|
|
661
457
|
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
662
|
-
|
|
663
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
664
|
-
name: errorCode,
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
};
|
|
667
|
-
break;
|
|
458
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
668
459
|
case "InvalidEndpointException":
|
|
669
460
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
670
|
-
|
|
671
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
672
|
-
name: errorCode,
|
|
673
|
-
$metadata: deserializeMetadata(output),
|
|
674
|
-
};
|
|
675
|
-
break;
|
|
461
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
676
462
|
case "ThrottlingException":
|
|
677
463
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
678
|
-
|
|
679
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
680
|
-
name: errorCode,
|
|
681
|
-
$metadata: deserializeMetadata(output),
|
|
682
|
-
};
|
|
683
|
-
break;
|
|
464
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
684
465
|
case "ValidationException":
|
|
685
466
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
686
|
-
|
|
687
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
688
|
-
name: errorCode,
|
|
689
|
-
$metadata: deserializeMetadata(output),
|
|
690
|
-
};
|
|
691
|
-
break;
|
|
467
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
692
468
|
default:
|
|
693
469
|
const parsedBody = parsedOutput.body;
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
...parsedBody,
|
|
697
|
-
name: `${errorCode}`,
|
|
698
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
470
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
471
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
699
472
|
$fault: "client",
|
|
700
473
|
$metadata: deserializeMetadata(output),
|
|
701
|
-
};
|
|
474
|
+
});
|
|
475
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
702
476
|
}
|
|
703
|
-
const message = response.message || response.Message || errorCode;
|
|
704
|
-
response.message = message;
|
|
705
|
-
delete response.Message;
|
|
706
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
707
477
|
};
|
|
708
478
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
709
479
|
if (output.statusCode >= 300) {
|
|
@@ -730,51 +500,25 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
730
500
|
switch (errorCode) {
|
|
731
501
|
case "InvalidEndpointException":
|
|
732
502
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
733
|
-
|
|
734
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
735
|
-
name: errorCode,
|
|
736
|
-
$metadata: deserializeMetadata(output),
|
|
737
|
-
};
|
|
738
|
-
break;
|
|
503
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
739
504
|
case "ResourceNotFoundException":
|
|
740
505
|
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
741
|
-
|
|
742
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
743
|
-
name: errorCode,
|
|
744
|
-
$metadata: deserializeMetadata(output),
|
|
745
|
-
};
|
|
746
|
-
break;
|
|
506
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
747
507
|
case "ThrottlingException":
|
|
748
508
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
749
|
-
|
|
750
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
751
|
-
name: errorCode,
|
|
752
|
-
$metadata: deserializeMetadata(output),
|
|
753
|
-
};
|
|
754
|
-
break;
|
|
509
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
755
510
|
case "ValidationException":
|
|
756
511
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
757
|
-
|
|
758
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
759
|
-
name: errorCode,
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
};
|
|
762
|
-
break;
|
|
512
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
763
513
|
default:
|
|
764
514
|
const parsedBody = parsedOutput.body;
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
...parsedBody,
|
|
768
|
-
name: `${errorCode}`,
|
|
769
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
515
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
516
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
770
517
|
$fault: "client",
|
|
771
518
|
$metadata: deserializeMetadata(output),
|
|
772
|
-
};
|
|
519
|
+
});
|
|
520
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
773
521
|
}
|
|
774
|
-
const message = response.message || response.Message || errorCode;
|
|
775
|
-
response.message = message;
|
|
776
|
-
delete response.Message;
|
|
777
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
778
522
|
};
|
|
779
523
|
const deserializeAws_json1_0PrepareQueryCommand = async (output, context) => {
|
|
780
524
|
if (output.statusCode >= 300) {
|
|
@@ -801,59 +545,28 @@ const deserializeAws_json1_0PrepareQueryCommandError = async (output, context) =
|
|
|
801
545
|
switch (errorCode) {
|
|
802
546
|
case "AccessDeniedException":
|
|
803
547
|
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
804
|
-
|
|
805
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
806
|
-
name: errorCode,
|
|
807
|
-
$metadata: deserializeMetadata(output),
|
|
808
|
-
};
|
|
809
|
-
break;
|
|
548
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
810
549
|
case "InternalServerException":
|
|
811
550
|
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
812
|
-
|
|
813
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
814
|
-
name: errorCode,
|
|
815
|
-
$metadata: deserializeMetadata(output),
|
|
816
|
-
};
|
|
817
|
-
break;
|
|
551
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
818
552
|
case "InvalidEndpointException":
|
|
819
553
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
820
|
-
|
|
821
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
822
|
-
name: errorCode,
|
|
823
|
-
$metadata: deserializeMetadata(output),
|
|
824
|
-
};
|
|
825
|
-
break;
|
|
554
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
826
555
|
case "ThrottlingException":
|
|
827
556
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
828
|
-
|
|
829
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
830
|
-
name: errorCode,
|
|
831
|
-
$metadata: deserializeMetadata(output),
|
|
832
|
-
};
|
|
833
|
-
break;
|
|
557
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
834
558
|
case "ValidationException":
|
|
835
559
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
836
|
-
|
|
837
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
838
|
-
name: errorCode,
|
|
839
|
-
$metadata: deserializeMetadata(output),
|
|
840
|
-
};
|
|
841
|
-
break;
|
|
560
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
842
561
|
default:
|
|
843
562
|
const parsedBody = parsedOutput.body;
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
...parsedBody,
|
|
847
|
-
name: `${errorCode}`,
|
|
848
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
563
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
564
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
849
565
|
$fault: "client",
|
|
850
566
|
$metadata: deserializeMetadata(output),
|
|
851
|
-
};
|
|
567
|
+
});
|
|
568
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
852
569
|
}
|
|
853
|
-
const message = response.message || response.Message || errorCode;
|
|
854
|
-
response.message = message;
|
|
855
|
-
delete response.Message;
|
|
856
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
857
570
|
};
|
|
858
571
|
const deserializeAws_json1_0QueryCommand = async (output, context) => {
|
|
859
572
|
if (output.statusCode >= 300) {
|
|
@@ -880,75 +593,34 @@ const deserializeAws_json1_0QueryCommandError = async (output, context) => {
|
|
|
880
593
|
switch (errorCode) {
|
|
881
594
|
case "AccessDeniedException":
|
|
882
595
|
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
883
|
-
|
|
884
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
885
|
-
name: errorCode,
|
|
886
|
-
$metadata: deserializeMetadata(output),
|
|
887
|
-
};
|
|
888
|
-
break;
|
|
596
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
889
597
|
case "ConflictException":
|
|
890
598
|
case "com.amazonaws.timestreamquery#ConflictException":
|
|
891
|
-
|
|
892
|
-
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
893
|
-
name: errorCode,
|
|
894
|
-
$metadata: deserializeMetadata(output),
|
|
895
|
-
};
|
|
896
|
-
break;
|
|
599
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
897
600
|
case "InternalServerException":
|
|
898
601
|
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
899
|
-
|
|
900
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
901
|
-
name: errorCode,
|
|
902
|
-
$metadata: deserializeMetadata(output),
|
|
903
|
-
};
|
|
904
|
-
break;
|
|
602
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
905
603
|
case "InvalidEndpointException":
|
|
906
604
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
907
|
-
|
|
908
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
909
|
-
name: errorCode,
|
|
910
|
-
$metadata: deserializeMetadata(output),
|
|
911
|
-
};
|
|
912
|
-
break;
|
|
605
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
913
606
|
case "QueryExecutionException":
|
|
914
607
|
case "com.amazonaws.timestreamquery#QueryExecutionException":
|
|
915
|
-
|
|
916
|
-
...(await deserializeAws_json1_0QueryExecutionExceptionResponse(parsedOutput, context)),
|
|
917
|
-
name: errorCode,
|
|
918
|
-
$metadata: deserializeMetadata(output),
|
|
919
|
-
};
|
|
920
|
-
break;
|
|
608
|
+
throw await deserializeAws_json1_0QueryExecutionExceptionResponse(parsedOutput, context);
|
|
921
609
|
case "ThrottlingException":
|
|
922
610
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
923
|
-
|
|
924
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
925
|
-
name: errorCode,
|
|
926
|
-
$metadata: deserializeMetadata(output),
|
|
927
|
-
};
|
|
928
|
-
break;
|
|
611
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
929
612
|
case "ValidationException":
|
|
930
613
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
931
|
-
|
|
932
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
933
|
-
name: errorCode,
|
|
934
|
-
$metadata: deserializeMetadata(output),
|
|
935
|
-
};
|
|
936
|
-
break;
|
|
614
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
937
615
|
default:
|
|
938
616
|
const parsedBody = parsedOutput.body;
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
...parsedBody,
|
|
942
|
-
name: `${errorCode}`,
|
|
943
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
617
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
618
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
944
619
|
$fault: "client",
|
|
945
620
|
$metadata: deserializeMetadata(output),
|
|
946
|
-
};
|
|
621
|
+
});
|
|
622
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
947
623
|
}
|
|
948
|
-
const message = response.message || response.Message || errorCode;
|
|
949
|
-
response.message = message;
|
|
950
|
-
delete response.Message;
|
|
951
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
952
624
|
};
|
|
953
625
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
954
626
|
if (output.statusCode >= 300) {
|
|
@@ -975,59 +647,28 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
975
647
|
switch (errorCode) {
|
|
976
648
|
case "InvalidEndpointException":
|
|
977
649
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
978
|
-
|
|
979
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
980
|
-
name: errorCode,
|
|
981
|
-
$metadata: deserializeMetadata(output),
|
|
982
|
-
};
|
|
983
|
-
break;
|
|
650
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
984
651
|
case "ResourceNotFoundException":
|
|
985
652
|
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
986
|
-
|
|
987
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
988
|
-
name: errorCode,
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
};
|
|
991
|
-
break;
|
|
653
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
992
654
|
case "ServiceQuotaExceededException":
|
|
993
655
|
case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
|
|
994
|
-
|
|
995
|
-
...(await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
996
|
-
name: errorCode,
|
|
997
|
-
$metadata: deserializeMetadata(output),
|
|
998
|
-
};
|
|
999
|
-
break;
|
|
656
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1000
657
|
case "ThrottlingException":
|
|
1001
658
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
1002
|
-
|
|
1003
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1004
|
-
name: errorCode,
|
|
1005
|
-
$metadata: deserializeMetadata(output),
|
|
1006
|
-
};
|
|
1007
|
-
break;
|
|
659
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1008
660
|
case "ValidationException":
|
|
1009
661
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
1010
|
-
|
|
1011
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
1012
|
-
name: errorCode,
|
|
1013
|
-
$metadata: deserializeMetadata(output),
|
|
1014
|
-
};
|
|
1015
|
-
break;
|
|
662
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1016
663
|
default:
|
|
1017
664
|
const parsedBody = parsedOutput.body;
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
...parsedBody,
|
|
1021
|
-
name: `${errorCode}`,
|
|
1022
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
665
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
666
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1023
667
|
$fault: "client",
|
|
1024
668
|
$metadata: deserializeMetadata(output),
|
|
1025
|
-
};
|
|
669
|
+
});
|
|
670
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1026
671
|
}
|
|
1027
|
-
const message = response.message || response.Message || errorCode;
|
|
1028
|
-
response.message = message;
|
|
1029
|
-
delete response.Message;
|
|
1030
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1031
672
|
};
|
|
1032
673
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
1033
674
|
if (output.statusCode >= 300) {
|
|
@@ -1054,51 +695,25 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1054
695
|
switch (errorCode) {
|
|
1055
696
|
case "InvalidEndpointException":
|
|
1056
697
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
1057
|
-
|
|
1058
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1059
|
-
name: errorCode,
|
|
1060
|
-
$metadata: deserializeMetadata(output),
|
|
1061
|
-
};
|
|
1062
|
-
break;
|
|
698
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1063
699
|
case "ResourceNotFoundException":
|
|
1064
700
|
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
1065
|
-
|
|
1066
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1067
|
-
name: errorCode,
|
|
1068
|
-
$metadata: deserializeMetadata(output),
|
|
1069
|
-
};
|
|
1070
|
-
break;
|
|
701
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1071
702
|
case "ThrottlingException":
|
|
1072
703
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
1073
|
-
|
|
1074
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1075
|
-
name: errorCode,
|
|
1076
|
-
$metadata: deserializeMetadata(output),
|
|
1077
|
-
};
|
|
1078
|
-
break;
|
|
704
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1079
705
|
case "ValidationException":
|
|
1080
706
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
1081
|
-
|
|
1082
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
1083
|
-
name: errorCode,
|
|
1084
|
-
$metadata: deserializeMetadata(output),
|
|
1085
|
-
};
|
|
1086
|
-
break;
|
|
707
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1087
708
|
default:
|
|
1088
709
|
const parsedBody = parsedOutput.body;
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
...parsedBody,
|
|
1092
|
-
name: `${errorCode}`,
|
|
1093
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
710
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
711
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1094
712
|
$fault: "client",
|
|
1095
713
|
$metadata: deserializeMetadata(output),
|
|
1096
|
-
};
|
|
714
|
+
});
|
|
715
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1097
716
|
}
|
|
1098
|
-
const message = response.message || response.Message || errorCode;
|
|
1099
|
-
response.message = message;
|
|
1100
|
-
delete response.Message;
|
|
1101
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1102
717
|
};
|
|
1103
718
|
const deserializeAws_json1_0UpdateScheduledQueryCommand = async (output, context) => {
|
|
1104
719
|
if (output.statusCode >= 300) {
|
|
@@ -1122,166 +737,112 @@ const deserializeAws_json1_0UpdateScheduledQueryCommandError = async (output, co
|
|
|
1122
737
|
switch (errorCode) {
|
|
1123
738
|
case "AccessDeniedException":
|
|
1124
739
|
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
1125
|
-
|
|
1126
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1127
|
-
name: errorCode,
|
|
1128
|
-
$metadata: deserializeMetadata(output),
|
|
1129
|
-
};
|
|
1130
|
-
break;
|
|
740
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1131
741
|
case "InternalServerException":
|
|
1132
742
|
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
1133
|
-
|
|
1134
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1135
|
-
name: errorCode,
|
|
1136
|
-
$metadata: deserializeMetadata(output),
|
|
1137
|
-
};
|
|
1138
|
-
break;
|
|
743
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1139
744
|
case "InvalidEndpointException":
|
|
1140
745
|
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
1141
|
-
|
|
1142
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1143
|
-
name: errorCode,
|
|
1144
|
-
$metadata: deserializeMetadata(output),
|
|
1145
|
-
};
|
|
1146
|
-
break;
|
|
746
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1147
747
|
case "ResourceNotFoundException":
|
|
1148
748
|
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
1149
|
-
|
|
1150
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1151
|
-
name: errorCode,
|
|
1152
|
-
$metadata: deserializeMetadata(output),
|
|
1153
|
-
};
|
|
1154
|
-
break;
|
|
749
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1155
750
|
case "ThrottlingException":
|
|
1156
751
|
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
1157
|
-
|
|
1158
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1159
|
-
name: errorCode,
|
|
1160
|
-
$metadata: deserializeMetadata(output),
|
|
1161
|
-
};
|
|
1162
|
-
break;
|
|
752
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1163
753
|
case "ValidationException":
|
|
1164
754
|
case "com.amazonaws.timestreamquery#ValidationException":
|
|
1165
|
-
|
|
1166
|
-
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
1167
|
-
name: errorCode,
|
|
1168
|
-
$metadata: deserializeMetadata(output),
|
|
1169
|
-
};
|
|
1170
|
-
break;
|
|
755
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1171
756
|
default:
|
|
1172
757
|
const parsedBody = parsedOutput.body;
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
...parsedBody,
|
|
1176
|
-
name: `${errorCode}`,
|
|
1177
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
758
|
+
response = new TimestreamQueryServiceException_1.TimestreamQueryServiceException({
|
|
759
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1178
760
|
$fault: "client",
|
|
1179
761
|
$metadata: deserializeMetadata(output),
|
|
1180
|
-
};
|
|
762
|
+
});
|
|
763
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1181
764
|
}
|
|
1182
|
-
const message = response.message || response.Message || errorCode;
|
|
1183
|
-
response.message = message;
|
|
1184
|
-
delete response.Message;
|
|
1185
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1186
765
|
};
|
|
1187
766
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1188
767
|
const body = parsedOutput.body;
|
|
1189
768
|
const deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
1190
|
-
const
|
|
1191
|
-
name: "AccessDeniedException",
|
|
1192
|
-
$fault: "client",
|
|
769
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1193
770
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1194
771
|
...deserialized,
|
|
1195
|
-
};
|
|
1196
|
-
return
|
|
772
|
+
});
|
|
773
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1197
774
|
};
|
|
1198
775
|
const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1199
776
|
const body = parsedOutput.body;
|
|
1200
777
|
const deserialized = deserializeAws_json1_0ConflictException(body, context);
|
|
1201
|
-
const
|
|
1202
|
-
name: "ConflictException",
|
|
1203
|
-
$fault: "client",
|
|
778
|
+
const exception = new models_0_1.ConflictException({
|
|
1204
779
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1205
780
|
...deserialized,
|
|
1206
|
-
};
|
|
1207
|
-
return
|
|
781
|
+
});
|
|
782
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1208
783
|
};
|
|
1209
784
|
const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1210
785
|
const body = parsedOutput.body;
|
|
1211
786
|
const deserialized = deserializeAws_json1_0InternalServerException(body, context);
|
|
1212
|
-
const
|
|
1213
|
-
name: "InternalServerException",
|
|
1214
|
-
$fault: "server",
|
|
787
|
+
const exception = new models_0_1.InternalServerException({
|
|
1215
788
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1216
789
|
...deserialized,
|
|
1217
|
-
};
|
|
1218
|
-
return
|
|
790
|
+
});
|
|
791
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1219
792
|
};
|
|
1220
793
|
const deserializeAws_json1_0InvalidEndpointExceptionResponse = async (parsedOutput, context) => {
|
|
1221
794
|
const body = parsedOutput.body;
|
|
1222
795
|
const deserialized = deserializeAws_json1_0InvalidEndpointException(body, context);
|
|
1223
|
-
const
|
|
1224
|
-
name: "InvalidEndpointException",
|
|
1225
|
-
$fault: "client",
|
|
796
|
+
const exception = new models_0_1.InvalidEndpointException({
|
|
1226
797
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1227
798
|
...deserialized,
|
|
1228
|
-
};
|
|
1229
|
-
return
|
|
799
|
+
});
|
|
800
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1230
801
|
};
|
|
1231
802
|
const deserializeAws_json1_0QueryExecutionExceptionResponse = async (parsedOutput, context) => {
|
|
1232
803
|
const body = parsedOutput.body;
|
|
1233
804
|
const deserialized = deserializeAws_json1_0QueryExecutionException(body, context);
|
|
1234
|
-
const
|
|
1235
|
-
name: "QueryExecutionException",
|
|
1236
|
-
$fault: "client",
|
|
805
|
+
const exception = new models_0_1.QueryExecutionException({
|
|
1237
806
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1238
807
|
...deserialized,
|
|
1239
|
-
};
|
|
1240
|
-
return
|
|
808
|
+
});
|
|
809
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1241
810
|
};
|
|
1242
811
|
const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1243
812
|
const body = parsedOutput.body;
|
|
1244
813
|
const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
1245
|
-
const
|
|
1246
|
-
name: "ResourceNotFoundException",
|
|
1247
|
-
$fault: "client",
|
|
814
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1248
815
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1249
816
|
...deserialized,
|
|
1250
|
-
};
|
|
1251
|
-
return
|
|
817
|
+
});
|
|
818
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1252
819
|
};
|
|
1253
820
|
const deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1254
821
|
const body = parsedOutput.body;
|
|
1255
822
|
const deserialized = deserializeAws_json1_0ServiceQuotaExceededException(body, context);
|
|
1256
|
-
const
|
|
1257
|
-
name: "ServiceQuotaExceededException",
|
|
1258
|
-
$fault: "client",
|
|
823
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1259
824
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1260
825
|
...deserialized,
|
|
1261
|
-
};
|
|
1262
|
-
return
|
|
826
|
+
});
|
|
827
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1263
828
|
};
|
|
1264
829
|
const deserializeAws_json1_0ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1265
830
|
const body = parsedOutput.body;
|
|
1266
831
|
const deserialized = deserializeAws_json1_0ThrottlingException(body, context);
|
|
1267
|
-
const
|
|
1268
|
-
name: "ThrottlingException",
|
|
1269
|
-
$fault: "client",
|
|
832
|
+
const exception = new models_0_1.ThrottlingException({
|
|
1270
833
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1271
834
|
...deserialized,
|
|
1272
|
-
};
|
|
1273
|
-
return
|
|
835
|
+
});
|
|
836
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1274
837
|
};
|
|
1275
838
|
const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1276
839
|
const body = parsedOutput.body;
|
|
1277
840
|
const deserialized = deserializeAws_json1_0ValidationException(body, context);
|
|
1278
|
-
const
|
|
1279
|
-
name: "ValidationException",
|
|
1280
|
-
$fault: "client",
|
|
841
|
+
const exception = new models_0_1.ValidationException({
|
|
1281
842
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1282
843
|
...deserialized,
|
|
1283
|
-
};
|
|
1284
|
-
return
|
|
844
|
+
});
|
|
845
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1285
846
|
};
|
|
1286
847
|
const serializeAws_json1_0CancelQueryRequest = (input, context) => {
|
|
1287
848
|
return {
|
|
@@ -1571,7 +1132,7 @@ const deserializeAws_json1_0ColumnInfo = (output, context) => {
|
|
|
1571
1132
|
};
|
|
1572
1133
|
};
|
|
1573
1134
|
const deserializeAws_json1_0ColumnInfoList = (output, context) => {
|
|
1574
|
-
|
|
1135
|
+
const retVal = (output || [])
|
|
1575
1136
|
.filter((e) => e != null)
|
|
1576
1137
|
.map((entry) => {
|
|
1577
1138
|
if (entry === null) {
|
|
@@ -1579,6 +1140,7 @@ const deserializeAws_json1_0ColumnInfoList = (output, context) => {
|
|
|
1579
1140
|
}
|
|
1580
1141
|
return deserializeAws_json1_0ColumnInfo(entry, context);
|
|
1581
1142
|
});
|
|
1143
|
+
return retVal;
|
|
1582
1144
|
};
|
|
1583
1145
|
const deserializeAws_json1_0ConflictException = (output, context) => {
|
|
1584
1146
|
return {
|
|
@@ -1606,7 +1168,7 @@ const deserializeAws_json1_0Datum = (output, context) => {
|
|
|
1606
1168
|
};
|
|
1607
1169
|
};
|
|
1608
1170
|
const deserializeAws_json1_0DatumList = (output, context) => {
|
|
1609
|
-
|
|
1171
|
+
const retVal = (output || [])
|
|
1610
1172
|
.filter((e) => e != null)
|
|
1611
1173
|
.map((entry) => {
|
|
1612
1174
|
if (entry === null) {
|
|
@@ -1614,6 +1176,7 @@ const deserializeAws_json1_0DatumList = (output, context) => {
|
|
|
1614
1176
|
}
|
|
1615
1177
|
return deserializeAws_json1_0Datum(entry, context);
|
|
1616
1178
|
});
|
|
1179
|
+
return retVal;
|
|
1617
1180
|
};
|
|
1618
1181
|
const deserializeAws_json1_0DescribeEndpointsResponse = (output, context) => {
|
|
1619
1182
|
return {
|
|
@@ -1636,7 +1199,7 @@ const deserializeAws_json1_0DimensionMapping = (output, context) => {
|
|
|
1636
1199
|
};
|
|
1637
1200
|
};
|
|
1638
1201
|
const deserializeAws_json1_0DimensionMappingList = (output, context) => {
|
|
1639
|
-
|
|
1202
|
+
const retVal = (output || [])
|
|
1640
1203
|
.filter((e) => e != null)
|
|
1641
1204
|
.map((entry) => {
|
|
1642
1205
|
if (entry === null) {
|
|
@@ -1644,6 +1207,7 @@ const deserializeAws_json1_0DimensionMappingList = (output, context) => {
|
|
|
1644
1207
|
}
|
|
1645
1208
|
return deserializeAws_json1_0DimensionMapping(entry, context);
|
|
1646
1209
|
});
|
|
1210
|
+
return retVal;
|
|
1647
1211
|
};
|
|
1648
1212
|
const deserializeAws_json1_0Endpoint = (output, context) => {
|
|
1649
1213
|
return {
|
|
@@ -1652,7 +1216,7 @@ const deserializeAws_json1_0Endpoint = (output, context) => {
|
|
|
1652
1216
|
};
|
|
1653
1217
|
};
|
|
1654
1218
|
const deserializeAws_json1_0Endpoints = (output, context) => {
|
|
1655
|
-
|
|
1219
|
+
const retVal = (output || [])
|
|
1656
1220
|
.filter((e) => e != null)
|
|
1657
1221
|
.map((entry) => {
|
|
1658
1222
|
if (entry === null) {
|
|
@@ -1660,6 +1224,7 @@ const deserializeAws_json1_0Endpoints = (output, context) => {
|
|
|
1660
1224
|
}
|
|
1661
1225
|
return deserializeAws_json1_0Endpoint(entry, context);
|
|
1662
1226
|
});
|
|
1227
|
+
return retVal;
|
|
1663
1228
|
};
|
|
1664
1229
|
const deserializeAws_json1_0ErrorReportConfiguration = (output, context) => {
|
|
1665
1230
|
return {
|
|
@@ -1722,7 +1287,7 @@ const deserializeAws_json1_0MixedMeasureMapping = (output, context) => {
|
|
|
1722
1287
|
};
|
|
1723
1288
|
};
|
|
1724
1289
|
const deserializeAws_json1_0MixedMeasureMappingList = (output, context) => {
|
|
1725
|
-
|
|
1290
|
+
const retVal = (output || [])
|
|
1726
1291
|
.filter((e) => e != null)
|
|
1727
1292
|
.map((entry) => {
|
|
1728
1293
|
if (entry === null) {
|
|
@@ -1730,6 +1295,7 @@ const deserializeAws_json1_0MixedMeasureMappingList = (output, context) => {
|
|
|
1730
1295
|
}
|
|
1731
1296
|
return deserializeAws_json1_0MixedMeasureMapping(entry, context);
|
|
1732
1297
|
});
|
|
1298
|
+
return retVal;
|
|
1733
1299
|
};
|
|
1734
1300
|
const deserializeAws_json1_0MultiMeasureAttributeMapping = (output, context) => {
|
|
1735
1301
|
return {
|
|
@@ -1739,7 +1305,7 @@ const deserializeAws_json1_0MultiMeasureAttributeMapping = (output, context) =>
|
|
|
1739
1305
|
};
|
|
1740
1306
|
};
|
|
1741
1307
|
const deserializeAws_json1_0MultiMeasureAttributeMappingList = (output, context) => {
|
|
1742
|
-
|
|
1308
|
+
const retVal = (output || [])
|
|
1743
1309
|
.filter((e) => e != null)
|
|
1744
1310
|
.map((entry) => {
|
|
1745
1311
|
if (entry === null) {
|
|
@@ -1747,6 +1313,7 @@ const deserializeAws_json1_0MultiMeasureAttributeMappingList = (output, context)
|
|
|
1747
1313
|
}
|
|
1748
1314
|
return deserializeAws_json1_0MultiMeasureAttributeMapping(entry, context);
|
|
1749
1315
|
});
|
|
1316
|
+
return retVal;
|
|
1750
1317
|
};
|
|
1751
1318
|
const deserializeAws_json1_0MultiMeasureMappings = (output, context) => {
|
|
1752
1319
|
return {
|
|
@@ -1770,7 +1337,7 @@ const deserializeAws_json1_0ParameterMapping = (output, context) => {
|
|
|
1770
1337
|
};
|
|
1771
1338
|
};
|
|
1772
1339
|
const deserializeAws_json1_0ParameterMappingList = (output, context) => {
|
|
1773
|
-
|
|
1340
|
+
const retVal = (output || [])
|
|
1774
1341
|
.filter((e) => e != null)
|
|
1775
1342
|
.map((entry) => {
|
|
1776
1343
|
if (entry === null) {
|
|
@@ -1778,6 +1345,7 @@ const deserializeAws_json1_0ParameterMappingList = (output, context) => {
|
|
|
1778
1345
|
}
|
|
1779
1346
|
return deserializeAws_json1_0ParameterMapping(entry, context);
|
|
1780
1347
|
});
|
|
1348
|
+
return retVal;
|
|
1781
1349
|
};
|
|
1782
1350
|
const deserializeAws_json1_0PrepareQueryResponse = (output, context) => {
|
|
1783
1351
|
return {
|
|
@@ -1831,7 +1399,7 @@ const deserializeAws_json1_0Row = (output, context) => {
|
|
|
1831
1399
|
};
|
|
1832
1400
|
};
|
|
1833
1401
|
const deserializeAws_json1_0RowList = (output, context) => {
|
|
1834
|
-
|
|
1402
|
+
const retVal = (output || [])
|
|
1835
1403
|
.filter((e) => e != null)
|
|
1836
1404
|
.map((entry) => {
|
|
1837
1405
|
if (entry === null) {
|
|
@@ -1839,6 +1407,7 @@ const deserializeAws_json1_0RowList = (output, context) => {
|
|
|
1839
1407
|
}
|
|
1840
1408
|
return deserializeAws_json1_0Row(entry, context);
|
|
1841
1409
|
});
|
|
1410
|
+
return retVal;
|
|
1842
1411
|
};
|
|
1843
1412
|
const deserializeAws_json1_0S3Configuration = (output, context) => {
|
|
1844
1413
|
return {
|
|
@@ -1919,7 +1488,7 @@ const deserializeAws_json1_0ScheduledQueryDescription = (output, context) => {
|
|
|
1919
1488
|
};
|
|
1920
1489
|
};
|
|
1921
1490
|
const deserializeAws_json1_0ScheduledQueryList = (output, context) => {
|
|
1922
|
-
|
|
1491
|
+
const retVal = (output || [])
|
|
1923
1492
|
.filter((e) => e != null)
|
|
1924
1493
|
.map((entry) => {
|
|
1925
1494
|
if (entry === null) {
|
|
@@ -1927,6 +1496,7 @@ const deserializeAws_json1_0ScheduledQueryList = (output, context) => {
|
|
|
1927
1496
|
}
|
|
1928
1497
|
return deserializeAws_json1_0ScheduledQuery(entry, context);
|
|
1929
1498
|
});
|
|
1499
|
+
return retVal;
|
|
1930
1500
|
};
|
|
1931
1501
|
const deserializeAws_json1_0ScheduledQueryRunSummary = (output, context) => {
|
|
1932
1502
|
return {
|
|
@@ -1947,7 +1517,7 @@ const deserializeAws_json1_0ScheduledQueryRunSummary = (output, context) => {
|
|
|
1947
1517
|
};
|
|
1948
1518
|
};
|
|
1949
1519
|
const deserializeAws_json1_0ScheduledQueryRunSummaryList = (output, context) => {
|
|
1950
|
-
|
|
1520
|
+
const retVal = (output || [])
|
|
1951
1521
|
.filter((e) => e != null)
|
|
1952
1522
|
.map((entry) => {
|
|
1953
1523
|
if (entry === null) {
|
|
@@ -1955,6 +1525,7 @@ const deserializeAws_json1_0ScheduledQueryRunSummaryList = (output, context) =>
|
|
|
1955
1525
|
}
|
|
1956
1526
|
return deserializeAws_json1_0ScheduledQueryRunSummary(entry, context);
|
|
1957
1527
|
});
|
|
1528
|
+
return retVal;
|
|
1958
1529
|
};
|
|
1959
1530
|
const deserializeAws_json1_0SelectColumn = (output, context) => {
|
|
1960
1531
|
return {
|
|
@@ -1966,7 +1537,7 @@ const deserializeAws_json1_0SelectColumn = (output, context) => {
|
|
|
1966
1537
|
};
|
|
1967
1538
|
};
|
|
1968
1539
|
const deserializeAws_json1_0SelectColumnList = (output, context) => {
|
|
1969
|
-
|
|
1540
|
+
const retVal = (output || [])
|
|
1970
1541
|
.filter((e) => e != null)
|
|
1971
1542
|
.map((entry) => {
|
|
1972
1543
|
if (entry === null) {
|
|
@@ -1974,6 +1545,7 @@ const deserializeAws_json1_0SelectColumnList = (output, context) => {
|
|
|
1974
1545
|
}
|
|
1975
1546
|
return deserializeAws_json1_0SelectColumn(entry, context);
|
|
1976
1547
|
});
|
|
1548
|
+
return retVal;
|
|
1977
1549
|
};
|
|
1978
1550
|
const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) => {
|
|
1979
1551
|
return {
|
|
@@ -1992,7 +1564,7 @@ const deserializeAws_json1_0Tag = (output, context) => {
|
|
|
1992
1564
|
};
|
|
1993
1565
|
};
|
|
1994
1566
|
const deserializeAws_json1_0TagList = (output, context) => {
|
|
1995
|
-
|
|
1567
|
+
const retVal = (output || [])
|
|
1996
1568
|
.filter((e) => e != null)
|
|
1997
1569
|
.map((entry) => {
|
|
1998
1570
|
if (entry === null) {
|
|
@@ -2000,6 +1572,7 @@ const deserializeAws_json1_0TagList = (output, context) => {
|
|
|
2000
1572
|
}
|
|
2001
1573
|
return deserializeAws_json1_0Tag(entry, context);
|
|
2002
1574
|
});
|
|
1575
|
+
return retVal;
|
|
2003
1576
|
};
|
|
2004
1577
|
const deserializeAws_json1_0TagResourceResponse = (output, context) => {
|
|
2005
1578
|
return {};
|
|
@@ -2032,7 +1605,7 @@ const deserializeAws_json1_0TimeSeriesDataPoint = (output, context) => {
|
|
|
2032
1605
|
};
|
|
2033
1606
|
};
|
|
2034
1607
|
const deserializeAws_json1_0TimeSeriesDataPointList = (output, context) => {
|
|
2035
|
-
|
|
1608
|
+
const retVal = (output || [])
|
|
2036
1609
|
.filter((e) => e != null)
|
|
2037
1610
|
.map((entry) => {
|
|
2038
1611
|
if (entry === null) {
|
|
@@ -2040,6 +1613,7 @@ const deserializeAws_json1_0TimeSeriesDataPointList = (output, context) => {
|
|
|
2040
1613
|
}
|
|
2041
1614
|
return deserializeAws_json1_0TimeSeriesDataPoint(entry, context);
|
|
2042
1615
|
});
|
|
1616
|
+
return retVal;
|
|
2043
1617
|
};
|
|
2044
1618
|
const deserializeAws_json1_0TimestreamConfiguration = (output, context) => {
|
|
2045
1619
|
return {
|