@aws-sdk/client-timestream-query 3.312.0 → 3.316.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/TimestreamQuery.js +17 -182
- package/dist-cjs/protocols/Aws_json1_0.js +165 -672
- package/dist-es/TimestreamQuery.js +17 -182
- package/dist-es/protocols/Aws_json1_0.js +166 -673
- package/dist-types/TimestreamQuery.d.ts +22 -96
- package/dist-types/ts3.4/TimestreamQuery.d.ts +4 -1
- package/package.json +6 -6
|
@@ -9,7 +9,7 @@ const TimestreamQueryServiceException_1 = require("../models/TimestreamQueryServ
|
|
|
9
9
|
const se_CancelQueryCommand = async (input, context) => {
|
|
10
10
|
const headers = sharedHeaders("CancelQuery");
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
15
|
exports.se_CancelQueryCommand = se_CancelQueryCommand;
|
|
@@ -23,21 +23,21 @@ exports.se_CreateScheduledQueryCommand = se_CreateScheduledQueryCommand;
|
|
|
23
23
|
const se_DeleteScheduledQueryCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("DeleteScheduledQuery");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
exports.se_DeleteScheduledQueryCommand = se_DeleteScheduledQueryCommand;
|
|
30
30
|
const se_DescribeEndpointsCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("DescribeEndpoints");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
exports.se_DescribeEndpointsCommand = se_DescribeEndpointsCommand;
|
|
37
37
|
const se_DescribeScheduledQueryCommand = async (input, context) => {
|
|
38
38
|
const headers = sharedHeaders("DescribeScheduledQuery");
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
42
|
};
|
|
43
43
|
exports.se_DescribeScheduledQueryCommand = se_DescribeScheduledQueryCommand;
|
|
@@ -51,21 +51,21 @@ exports.se_ExecuteScheduledQueryCommand = se_ExecuteScheduledQueryCommand;
|
|
|
51
51
|
const se_ListScheduledQueriesCommand = async (input, context) => {
|
|
52
52
|
const headers = sharedHeaders("ListScheduledQueries");
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
57
|
exports.se_ListScheduledQueriesCommand = se_ListScheduledQueriesCommand;
|
|
58
58
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
59
59
|
const headers = sharedHeaders("ListTagsForResource");
|
|
60
60
|
let body;
|
|
61
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
63
|
};
|
|
64
64
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
65
65
|
const se_PrepareQueryCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("PrepareQuery");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
exports.se_PrepareQueryCommand = se_PrepareQueryCommand;
|
|
@@ -79,21 +79,21 @@ exports.se_QueryCommand = se_QueryCommand;
|
|
|
79
79
|
const se_TagResourceCommand = async (input, context) => {
|
|
80
80
|
const headers = sharedHeaders("TagResource");
|
|
81
81
|
let body;
|
|
82
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
84
|
};
|
|
85
85
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
86
86
|
const se_UntagResourceCommand = async (input, context) => {
|
|
87
87
|
const headers = sharedHeaders("UntagResource");
|
|
88
88
|
let body;
|
|
89
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
91
|
};
|
|
92
92
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
93
93
|
const se_UpdateScheduledQueryCommand = async (input, context) => {
|
|
94
94
|
const headers = sharedHeaders("UpdateScheduledQuery");
|
|
95
95
|
let body;
|
|
96
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
98
|
};
|
|
99
99
|
exports.se_UpdateScheduledQueryCommand = se_UpdateScheduledQueryCommand;
|
|
@@ -103,12 +103,12 @@ const de_CancelQueryCommand = async (output, context) => {
|
|
|
103
103
|
}
|
|
104
104
|
const data = await parseBody(output.body, context);
|
|
105
105
|
let contents = {};
|
|
106
|
-
contents =
|
|
106
|
+
contents = (0, smithy_client_1._json)(data);
|
|
107
107
|
const response = {
|
|
108
108
|
$metadata: deserializeMetadata(output),
|
|
109
109
|
...contents,
|
|
110
110
|
};
|
|
111
|
-
return
|
|
111
|
+
return response;
|
|
112
112
|
};
|
|
113
113
|
exports.de_CancelQueryCommand = de_CancelQueryCommand;
|
|
114
114
|
const de_CancelQueryCommandError = async (output, context) => {
|
|
@@ -135,10 +135,9 @@ const de_CancelQueryCommandError = async (output, context) => {
|
|
|
135
135
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
136
136
|
default:
|
|
137
137
|
const parsedBody = parsedOutput.body;
|
|
138
|
-
|
|
138
|
+
return throwDefaultError({
|
|
139
139
|
output,
|
|
140
140
|
parsedBody,
|
|
141
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
142
141
|
errorCode,
|
|
143
142
|
});
|
|
144
143
|
}
|
|
@@ -149,12 +148,12 @@ const de_CreateScheduledQueryCommand = async (output, context) => {
|
|
|
149
148
|
}
|
|
150
149
|
const data = await parseBody(output.body, context);
|
|
151
150
|
let contents = {};
|
|
152
|
-
contents =
|
|
151
|
+
contents = (0, smithy_client_1._json)(data);
|
|
153
152
|
const response = {
|
|
154
153
|
$metadata: deserializeMetadata(output),
|
|
155
154
|
...contents,
|
|
156
155
|
};
|
|
157
|
-
return
|
|
156
|
+
return response;
|
|
158
157
|
};
|
|
159
158
|
exports.de_CreateScheduledQueryCommand = de_CreateScheduledQueryCommand;
|
|
160
159
|
const de_CreateScheduledQueryCommandError = async (output, context) => {
|
|
@@ -187,10 +186,9 @@ const de_CreateScheduledQueryCommandError = async (output, context) => {
|
|
|
187
186
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
188
187
|
default:
|
|
189
188
|
const parsedBody = parsedOutput.body;
|
|
190
|
-
|
|
189
|
+
return throwDefaultError({
|
|
191
190
|
output,
|
|
192
191
|
parsedBody,
|
|
193
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
194
192
|
errorCode,
|
|
195
193
|
});
|
|
196
194
|
}
|
|
@@ -203,7 +201,7 @@ const de_DeleteScheduledQueryCommand = async (output, context) => {
|
|
|
203
201
|
const response = {
|
|
204
202
|
$metadata: deserializeMetadata(output),
|
|
205
203
|
};
|
|
206
|
-
return
|
|
204
|
+
return response;
|
|
207
205
|
};
|
|
208
206
|
exports.de_DeleteScheduledQueryCommand = de_DeleteScheduledQueryCommand;
|
|
209
207
|
const de_DeleteScheduledQueryCommandError = async (output, context) => {
|
|
@@ -233,10 +231,9 @@ const de_DeleteScheduledQueryCommandError = async (output, context) => {
|
|
|
233
231
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
234
232
|
default:
|
|
235
233
|
const parsedBody = parsedOutput.body;
|
|
236
|
-
|
|
234
|
+
return throwDefaultError({
|
|
237
235
|
output,
|
|
238
236
|
parsedBody,
|
|
239
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
240
237
|
errorCode,
|
|
241
238
|
});
|
|
242
239
|
}
|
|
@@ -247,12 +244,12 @@ const de_DescribeEndpointsCommand = async (output, context) => {
|
|
|
247
244
|
}
|
|
248
245
|
const data = await parseBody(output.body, context);
|
|
249
246
|
let contents = {};
|
|
250
|
-
contents =
|
|
247
|
+
contents = (0, smithy_client_1._json)(data);
|
|
251
248
|
const response = {
|
|
252
249
|
$metadata: deserializeMetadata(output),
|
|
253
250
|
...contents,
|
|
254
251
|
};
|
|
255
|
-
return
|
|
252
|
+
return response;
|
|
256
253
|
};
|
|
257
254
|
exports.de_DescribeEndpointsCommand = de_DescribeEndpointsCommand;
|
|
258
255
|
const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
@@ -273,10 +270,9 @@ const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
|
273
270
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
274
271
|
default:
|
|
275
272
|
const parsedBody = parsedOutput.body;
|
|
276
|
-
|
|
273
|
+
return throwDefaultError({
|
|
277
274
|
output,
|
|
278
275
|
parsedBody,
|
|
279
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
280
276
|
errorCode,
|
|
281
277
|
});
|
|
282
278
|
}
|
|
@@ -292,7 +288,7 @@ const de_DescribeScheduledQueryCommand = async (output, context) => {
|
|
|
292
288
|
$metadata: deserializeMetadata(output),
|
|
293
289
|
...contents,
|
|
294
290
|
};
|
|
295
|
-
return
|
|
291
|
+
return response;
|
|
296
292
|
};
|
|
297
293
|
exports.de_DescribeScheduledQueryCommand = de_DescribeScheduledQueryCommand;
|
|
298
294
|
const de_DescribeScheduledQueryCommandError = async (output, context) => {
|
|
@@ -322,10 +318,9 @@ const de_DescribeScheduledQueryCommandError = async (output, context) => {
|
|
|
322
318
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
323
319
|
default:
|
|
324
320
|
const parsedBody = parsedOutput.body;
|
|
325
|
-
|
|
321
|
+
return throwDefaultError({
|
|
326
322
|
output,
|
|
327
323
|
parsedBody,
|
|
328
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
329
324
|
errorCode,
|
|
330
325
|
});
|
|
331
326
|
}
|
|
@@ -338,7 +333,7 @@ const de_ExecuteScheduledQueryCommand = async (output, context) => {
|
|
|
338
333
|
const response = {
|
|
339
334
|
$metadata: deserializeMetadata(output),
|
|
340
335
|
};
|
|
341
|
-
return
|
|
336
|
+
return response;
|
|
342
337
|
};
|
|
343
338
|
exports.de_ExecuteScheduledQueryCommand = de_ExecuteScheduledQueryCommand;
|
|
344
339
|
const de_ExecuteScheduledQueryCommandError = async (output, context) => {
|
|
@@ -368,10 +363,9 @@ const de_ExecuteScheduledQueryCommandError = async (output, context) => {
|
|
|
368
363
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
369
364
|
default:
|
|
370
365
|
const parsedBody = parsedOutput.body;
|
|
371
|
-
|
|
366
|
+
return throwDefaultError({
|
|
372
367
|
output,
|
|
373
368
|
parsedBody,
|
|
374
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
375
369
|
errorCode,
|
|
376
370
|
});
|
|
377
371
|
}
|
|
@@ -387,7 +381,7 @@ const de_ListScheduledQueriesCommand = async (output, context) => {
|
|
|
387
381
|
$metadata: deserializeMetadata(output),
|
|
388
382
|
...contents,
|
|
389
383
|
};
|
|
390
|
-
return
|
|
384
|
+
return response;
|
|
391
385
|
};
|
|
392
386
|
exports.de_ListScheduledQueriesCommand = de_ListScheduledQueriesCommand;
|
|
393
387
|
const de_ListScheduledQueriesCommandError = async (output, context) => {
|
|
@@ -414,10 +408,9 @@ const de_ListScheduledQueriesCommandError = async (output, context) => {
|
|
|
414
408
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
415
409
|
default:
|
|
416
410
|
const parsedBody = parsedOutput.body;
|
|
417
|
-
|
|
411
|
+
return throwDefaultError({
|
|
418
412
|
output,
|
|
419
413
|
parsedBody,
|
|
420
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
421
414
|
errorCode,
|
|
422
415
|
});
|
|
423
416
|
}
|
|
@@ -428,12 +421,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
428
421
|
}
|
|
429
422
|
const data = await parseBody(output.body, context);
|
|
430
423
|
let contents = {};
|
|
431
|
-
contents =
|
|
424
|
+
contents = (0, smithy_client_1._json)(data);
|
|
432
425
|
const response = {
|
|
433
426
|
$metadata: deserializeMetadata(output),
|
|
434
427
|
...contents,
|
|
435
428
|
};
|
|
436
|
-
return
|
|
429
|
+
return response;
|
|
437
430
|
};
|
|
438
431
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
439
432
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -457,10 +450,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
457
450
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
458
451
|
default:
|
|
459
452
|
const parsedBody = parsedOutput.body;
|
|
460
|
-
|
|
453
|
+
return throwDefaultError({
|
|
461
454
|
output,
|
|
462
455
|
parsedBody,
|
|
463
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
464
456
|
errorCode,
|
|
465
457
|
});
|
|
466
458
|
}
|
|
@@ -476,7 +468,7 @@ const de_PrepareQueryCommand = async (output, context) => {
|
|
|
476
468
|
$metadata: deserializeMetadata(output),
|
|
477
469
|
...contents,
|
|
478
470
|
};
|
|
479
|
-
return
|
|
471
|
+
return response;
|
|
480
472
|
};
|
|
481
473
|
exports.de_PrepareQueryCommand = de_PrepareQueryCommand;
|
|
482
474
|
const de_PrepareQueryCommandError = async (output, context) => {
|
|
@@ -503,10 +495,9 @@ const de_PrepareQueryCommandError = async (output, context) => {
|
|
|
503
495
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
504
496
|
default:
|
|
505
497
|
const parsedBody = parsedOutput.body;
|
|
506
|
-
|
|
498
|
+
return throwDefaultError({
|
|
507
499
|
output,
|
|
508
500
|
parsedBody,
|
|
509
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
510
501
|
errorCode,
|
|
511
502
|
});
|
|
512
503
|
}
|
|
@@ -522,7 +513,7 @@ const de_QueryCommand = async (output, context) => {
|
|
|
522
513
|
$metadata: deserializeMetadata(output),
|
|
523
514
|
...contents,
|
|
524
515
|
};
|
|
525
|
-
return
|
|
516
|
+
return response;
|
|
526
517
|
};
|
|
527
518
|
exports.de_QueryCommand = de_QueryCommand;
|
|
528
519
|
const de_QueryCommandError = async (output, context) => {
|
|
@@ -555,10 +546,9 @@ const de_QueryCommandError = async (output, context) => {
|
|
|
555
546
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
556
547
|
default:
|
|
557
548
|
const parsedBody = parsedOutput.body;
|
|
558
|
-
|
|
549
|
+
return throwDefaultError({
|
|
559
550
|
output,
|
|
560
551
|
parsedBody,
|
|
561
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
562
552
|
errorCode,
|
|
563
553
|
});
|
|
564
554
|
}
|
|
@@ -569,12 +559,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
569
559
|
}
|
|
570
560
|
const data = await parseBody(output.body, context);
|
|
571
561
|
let contents = {};
|
|
572
|
-
contents =
|
|
562
|
+
contents = (0, smithy_client_1._json)(data);
|
|
573
563
|
const response = {
|
|
574
564
|
$metadata: deserializeMetadata(output),
|
|
575
565
|
...contents,
|
|
576
566
|
};
|
|
577
|
-
return
|
|
567
|
+
return response;
|
|
578
568
|
};
|
|
579
569
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
580
570
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -601,10 +591,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
601
591
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
602
592
|
default:
|
|
603
593
|
const parsedBody = parsedOutput.body;
|
|
604
|
-
|
|
594
|
+
return throwDefaultError({
|
|
605
595
|
output,
|
|
606
596
|
parsedBody,
|
|
607
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
608
597
|
errorCode,
|
|
609
598
|
});
|
|
610
599
|
}
|
|
@@ -615,12 +604,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
615
604
|
}
|
|
616
605
|
const data = await parseBody(output.body, context);
|
|
617
606
|
let contents = {};
|
|
618
|
-
contents =
|
|
607
|
+
contents = (0, smithy_client_1._json)(data);
|
|
619
608
|
const response = {
|
|
620
609
|
$metadata: deserializeMetadata(output),
|
|
621
610
|
...contents,
|
|
622
611
|
};
|
|
623
|
-
return
|
|
612
|
+
return response;
|
|
624
613
|
};
|
|
625
614
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
626
615
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -644,10 +633,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
644
633
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
645
634
|
default:
|
|
646
635
|
const parsedBody = parsedOutput.body;
|
|
647
|
-
|
|
636
|
+
return throwDefaultError({
|
|
648
637
|
output,
|
|
649
638
|
parsedBody,
|
|
650
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
651
639
|
errorCode,
|
|
652
640
|
});
|
|
653
641
|
}
|
|
@@ -660,7 +648,7 @@ const de_UpdateScheduledQueryCommand = async (output, context) => {
|
|
|
660
648
|
const response = {
|
|
661
649
|
$metadata: deserializeMetadata(output),
|
|
662
650
|
};
|
|
663
|
-
return
|
|
651
|
+
return response;
|
|
664
652
|
};
|
|
665
653
|
exports.de_UpdateScheduledQueryCommand = de_UpdateScheduledQueryCommand;
|
|
666
654
|
const de_UpdateScheduledQueryCommandError = async (output, context) => {
|
|
@@ -690,17 +678,16 @@ const de_UpdateScheduledQueryCommandError = async (output, context) => {
|
|
|
690
678
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
691
679
|
default:
|
|
692
680
|
const parsedBody = parsedOutput.body;
|
|
693
|
-
|
|
681
|
+
return throwDefaultError({
|
|
694
682
|
output,
|
|
695
683
|
parsedBody,
|
|
696
|
-
exceptionCtor: TimestreamQueryServiceException_1.TimestreamQueryServiceException,
|
|
697
684
|
errorCode,
|
|
698
685
|
});
|
|
699
686
|
}
|
|
700
687
|
};
|
|
701
688
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
702
689
|
const body = parsedOutput.body;
|
|
703
|
-
const deserialized =
|
|
690
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
704
691
|
const exception = new models_0_1.AccessDeniedException({
|
|
705
692
|
$metadata: deserializeMetadata(parsedOutput),
|
|
706
693
|
...deserialized,
|
|
@@ -709,7 +696,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
709
696
|
};
|
|
710
697
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
711
698
|
const body = parsedOutput.body;
|
|
712
|
-
const deserialized =
|
|
699
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
713
700
|
const exception = new models_0_1.ConflictException({
|
|
714
701
|
$metadata: deserializeMetadata(parsedOutput),
|
|
715
702
|
...deserialized,
|
|
@@ -718,7 +705,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
718
705
|
};
|
|
719
706
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
720
707
|
const body = parsedOutput.body;
|
|
721
|
-
const deserialized =
|
|
708
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
722
709
|
const exception = new models_0_1.InternalServerException({
|
|
723
710
|
$metadata: deserializeMetadata(parsedOutput),
|
|
724
711
|
...deserialized,
|
|
@@ -727,7 +714,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
727
714
|
};
|
|
728
715
|
const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
|
|
729
716
|
const body = parsedOutput.body;
|
|
730
|
-
const deserialized =
|
|
717
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
731
718
|
const exception = new models_0_1.InvalidEndpointException({
|
|
732
719
|
$metadata: deserializeMetadata(parsedOutput),
|
|
733
720
|
...deserialized,
|
|
@@ -736,7 +723,7 @@ const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
|
|
|
736
723
|
};
|
|
737
724
|
const de_QueryExecutionExceptionRes = async (parsedOutput, context) => {
|
|
738
725
|
const body = parsedOutput.body;
|
|
739
|
-
const deserialized =
|
|
726
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
740
727
|
const exception = new models_0_1.QueryExecutionException({
|
|
741
728
|
$metadata: deserializeMetadata(parsedOutput),
|
|
742
729
|
...deserialized,
|
|
@@ -745,7 +732,7 @@ const de_QueryExecutionExceptionRes = async (parsedOutput, context) => {
|
|
|
745
732
|
};
|
|
746
733
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
747
734
|
const body = parsedOutput.body;
|
|
748
|
-
const deserialized =
|
|
735
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
749
736
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
750
737
|
$metadata: deserializeMetadata(parsedOutput),
|
|
751
738
|
...deserialized,
|
|
@@ -754,7 +741,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
754
741
|
};
|
|
755
742
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
756
743
|
const body = parsedOutput.body;
|
|
757
|
-
const deserialized =
|
|
744
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
758
745
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
759
746
|
$metadata: deserializeMetadata(parsedOutput),
|
|
760
747
|
...deserialized,
|
|
@@ -763,7 +750,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
763
750
|
};
|
|
764
751
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
765
752
|
const body = parsedOutput.body;
|
|
766
|
-
const deserialized =
|
|
753
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
767
754
|
const exception = new models_0_1.ThrottlingException({
|
|
768
755
|
$metadata: deserializeMetadata(parsedOutput),
|
|
769
756
|
...deserialized,
|
|
@@ -772,725 +759,230 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
772
759
|
};
|
|
773
760
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
774
761
|
const body = parsedOutput.body;
|
|
775
|
-
const deserialized =
|
|
762
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
776
763
|
const exception = new models_0_1.ValidationException({
|
|
777
764
|
$metadata: deserializeMetadata(parsedOutput),
|
|
778
765
|
...deserialized,
|
|
779
766
|
});
|
|
780
767
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
781
768
|
};
|
|
782
|
-
const se_CancelQueryRequest = (input, context) => {
|
|
783
|
-
return {
|
|
784
|
-
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
785
|
-
};
|
|
786
|
-
};
|
|
787
769
|
const se_CreateScheduledQueryRequest = (input, context) => {
|
|
788
|
-
return {
|
|
789
|
-
ClientToken:
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
...(input.ScheduleConfiguration != null && {
|
|
800
|
-
ScheduleConfiguration: se_ScheduleConfiguration(input.ScheduleConfiguration, context),
|
|
801
|
-
}),
|
|
802
|
-
...(input.ScheduledQueryExecutionRoleArn != null && {
|
|
803
|
-
ScheduledQueryExecutionRoleArn: input.ScheduledQueryExecutionRoleArn,
|
|
804
|
-
}),
|
|
805
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
806
|
-
...(input.TargetConfiguration != null && {
|
|
807
|
-
TargetConfiguration: se_TargetConfiguration(input.TargetConfiguration, context),
|
|
808
|
-
}),
|
|
809
|
-
};
|
|
810
|
-
};
|
|
811
|
-
const se_DeleteScheduledQueryRequest = (input, context) => {
|
|
812
|
-
return {
|
|
813
|
-
...(input.ScheduledQueryArn != null && { ScheduledQueryArn: input.ScheduledQueryArn }),
|
|
814
|
-
};
|
|
815
|
-
};
|
|
816
|
-
const se_DescribeEndpointsRequest = (input, context) => {
|
|
817
|
-
return {};
|
|
818
|
-
};
|
|
819
|
-
const se_DescribeScheduledQueryRequest = (input, context) => {
|
|
820
|
-
return {
|
|
821
|
-
...(input.ScheduledQueryArn != null && { ScheduledQueryArn: input.ScheduledQueryArn }),
|
|
822
|
-
};
|
|
823
|
-
};
|
|
824
|
-
const se_DimensionMapping = (input, context) => {
|
|
825
|
-
return {
|
|
826
|
-
...(input.DimensionValueType != null && { DimensionValueType: input.DimensionValueType }),
|
|
827
|
-
...(input.Name != null && { Name: input.Name }),
|
|
828
|
-
};
|
|
829
|
-
};
|
|
830
|
-
const se_DimensionMappingList = (input, context) => {
|
|
831
|
-
return input
|
|
832
|
-
.filter((e) => e != null)
|
|
833
|
-
.map((entry) => {
|
|
834
|
-
return se_DimensionMapping(entry, context);
|
|
770
|
+
return (0, smithy_client_1.take)(input, {
|
|
771
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
772
|
+
ErrorReportConfiguration: smithy_client_1._json,
|
|
773
|
+
KmsKeyId: [],
|
|
774
|
+
Name: [],
|
|
775
|
+
NotificationConfiguration: smithy_client_1._json,
|
|
776
|
+
QueryString: [],
|
|
777
|
+
ScheduleConfiguration: smithy_client_1._json,
|
|
778
|
+
ScheduledQueryExecutionRoleArn: [],
|
|
779
|
+
Tags: smithy_client_1._json,
|
|
780
|
+
TargetConfiguration: smithy_client_1._json,
|
|
835
781
|
});
|
|
836
782
|
};
|
|
837
|
-
const se_ErrorReportConfiguration = (input, context) => {
|
|
838
|
-
return {
|
|
839
|
-
...(input.S3Configuration != null && { S3Configuration: se_S3Configuration(input.S3Configuration, context) }),
|
|
840
|
-
};
|
|
841
|
-
};
|
|
842
783
|
const se_ExecuteScheduledQueryRequest = (input, context) => {
|
|
843
|
-
return {
|
|
844
|
-
ClientToken:
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
};
|
|
848
|
-
};
|
|
849
|
-
const se_ListScheduledQueriesRequest = (input, context) => {
|
|
850
|
-
return {
|
|
851
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
852
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
853
|
-
};
|
|
854
|
-
};
|
|
855
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
856
|
-
return {
|
|
857
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
858
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
859
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
860
|
-
};
|
|
861
|
-
};
|
|
862
|
-
const se_MixedMeasureMapping = (input, context) => {
|
|
863
|
-
return {
|
|
864
|
-
...(input.MeasureName != null && { MeasureName: input.MeasureName }),
|
|
865
|
-
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
866
|
-
...(input.MultiMeasureAttributeMappings != null && {
|
|
867
|
-
MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
868
|
-
}),
|
|
869
|
-
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
870
|
-
...(input.TargetMeasureName != null && { TargetMeasureName: input.TargetMeasureName }),
|
|
871
|
-
};
|
|
872
|
-
};
|
|
873
|
-
const se_MixedMeasureMappingList = (input, context) => {
|
|
874
|
-
return input
|
|
875
|
-
.filter((e) => e != null)
|
|
876
|
-
.map((entry) => {
|
|
877
|
-
return se_MixedMeasureMapping(entry, context);
|
|
878
|
-
});
|
|
879
|
-
};
|
|
880
|
-
const se_MultiMeasureAttributeMapping = (input, context) => {
|
|
881
|
-
return {
|
|
882
|
-
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
883
|
-
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
884
|
-
...(input.TargetMultiMeasureAttributeName != null && {
|
|
885
|
-
TargetMultiMeasureAttributeName: input.TargetMultiMeasureAttributeName,
|
|
886
|
-
}),
|
|
887
|
-
};
|
|
888
|
-
};
|
|
889
|
-
const se_MultiMeasureAttributeMappingList = (input, context) => {
|
|
890
|
-
return input
|
|
891
|
-
.filter((e) => e != null)
|
|
892
|
-
.map((entry) => {
|
|
893
|
-
return se_MultiMeasureAttributeMapping(entry, context);
|
|
784
|
+
return (0, smithy_client_1.take)(input, {
|
|
785
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
786
|
+
InvocationTime: (_) => Math.round(_.getTime() / 1000),
|
|
787
|
+
ScheduledQueryArn: [],
|
|
894
788
|
});
|
|
895
789
|
};
|
|
896
|
-
const se_MultiMeasureMappings = (input, context) => {
|
|
897
|
-
return {
|
|
898
|
-
...(input.MultiMeasureAttributeMappings != null && {
|
|
899
|
-
MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
900
|
-
}),
|
|
901
|
-
...(input.TargetMultiMeasureName != null && { TargetMultiMeasureName: input.TargetMultiMeasureName }),
|
|
902
|
-
};
|
|
903
|
-
};
|
|
904
|
-
const se_NotificationConfiguration = (input, context) => {
|
|
905
|
-
return {
|
|
906
|
-
...(input.SnsConfiguration != null && { SnsConfiguration: se_SnsConfiguration(input.SnsConfiguration, context) }),
|
|
907
|
-
};
|
|
908
|
-
};
|
|
909
|
-
const se_PrepareQueryRequest = (input, context) => {
|
|
910
|
-
return {
|
|
911
|
-
...(input.QueryString != null && { QueryString: input.QueryString }),
|
|
912
|
-
...(input.ValidateOnly != null && { ValidateOnly: input.ValidateOnly }),
|
|
913
|
-
};
|
|
914
|
-
};
|
|
915
790
|
const se_QueryRequest = (input, context) => {
|
|
916
|
-
return {
|
|
917
|
-
ClientToken:
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
};
|
|
922
|
-
};
|
|
923
|
-
const se_S3Configuration = (input, context) => {
|
|
924
|
-
return {
|
|
925
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
926
|
-
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
927
|
-
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
928
|
-
};
|
|
929
|
-
};
|
|
930
|
-
const se_ScheduleConfiguration = (input, context) => {
|
|
931
|
-
return {
|
|
932
|
-
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
const se_SnsConfiguration = (input, context) => {
|
|
936
|
-
return {
|
|
937
|
-
...(input.TopicArn != null && { TopicArn: input.TopicArn }),
|
|
938
|
-
};
|
|
939
|
-
};
|
|
940
|
-
const se_Tag = (input, context) => {
|
|
941
|
-
return {
|
|
942
|
-
...(input.Key != null && { Key: input.Key }),
|
|
943
|
-
...(input.Value != null && { Value: input.Value }),
|
|
944
|
-
};
|
|
945
|
-
};
|
|
946
|
-
const se_TagKeyList = (input, context) => {
|
|
947
|
-
return input
|
|
948
|
-
.filter((e) => e != null)
|
|
949
|
-
.map((entry) => {
|
|
950
|
-
return entry;
|
|
951
|
-
});
|
|
952
|
-
};
|
|
953
|
-
const se_TagList = (input, context) => {
|
|
954
|
-
return input
|
|
955
|
-
.filter((e) => e != null)
|
|
956
|
-
.map((entry) => {
|
|
957
|
-
return se_Tag(entry, context);
|
|
791
|
+
return (0, smithy_client_1.take)(input, {
|
|
792
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
793
|
+
MaxRows: [],
|
|
794
|
+
NextToken: [],
|
|
795
|
+
QueryString: [],
|
|
958
796
|
});
|
|
959
797
|
};
|
|
960
|
-
const se_TagResourceRequest = (input, context) => {
|
|
961
|
-
return {
|
|
962
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
963
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
964
|
-
};
|
|
965
|
-
};
|
|
966
|
-
const se_TargetConfiguration = (input, context) => {
|
|
967
|
-
return {
|
|
968
|
-
...(input.TimestreamConfiguration != null && {
|
|
969
|
-
TimestreamConfiguration: se_TimestreamConfiguration(input.TimestreamConfiguration, context),
|
|
970
|
-
}),
|
|
971
|
-
};
|
|
972
|
-
};
|
|
973
|
-
const se_TimestreamConfiguration = (input, context) => {
|
|
974
|
-
return {
|
|
975
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
976
|
-
...(input.DimensionMappings != null && {
|
|
977
|
-
DimensionMappings: se_DimensionMappingList(input.DimensionMappings, context),
|
|
978
|
-
}),
|
|
979
|
-
...(input.MeasureNameColumn != null && { MeasureNameColumn: input.MeasureNameColumn }),
|
|
980
|
-
...(input.MixedMeasureMappings != null && {
|
|
981
|
-
MixedMeasureMappings: se_MixedMeasureMappingList(input.MixedMeasureMappings, context),
|
|
982
|
-
}),
|
|
983
|
-
...(input.MultiMeasureMappings != null && {
|
|
984
|
-
MultiMeasureMappings: se_MultiMeasureMappings(input.MultiMeasureMappings, context),
|
|
985
|
-
}),
|
|
986
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
987
|
-
...(input.TimeColumn != null && { TimeColumn: input.TimeColumn }),
|
|
988
|
-
};
|
|
989
|
-
};
|
|
990
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
991
|
-
return {
|
|
992
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
993
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
994
|
-
};
|
|
995
|
-
};
|
|
996
|
-
const se_UpdateScheduledQueryRequest = (input, context) => {
|
|
997
|
-
return {
|
|
998
|
-
...(input.ScheduledQueryArn != null && { ScheduledQueryArn: input.ScheduledQueryArn }),
|
|
999
|
-
...(input.State != null && { State: input.State }),
|
|
1000
|
-
};
|
|
1001
|
-
};
|
|
1002
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1003
|
-
return {
|
|
1004
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1005
|
-
};
|
|
1006
|
-
};
|
|
1007
|
-
const de_CancelQueryResponse = (output, context) => {
|
|
1008
|
-
return {
|
|
1009
|
-
CancellationMessage: (0, smithy_client_1.expectString)(output.CancellationMessage),
|
|
1010
|
-
};
|
|
1011
|
-
};
|
|
1012
798
|
const de_ColumnInfo = (output, context) => {
|
|
1013
|
-
return {
|
|
1014
|
-
Name:
|
|
1015
|
-
Type:
|
|
1016
|
-
};
|
|
799
|
+
return (0, smithy_client_1.take)(output, {
|
|
800
|
+
Name: smithy_client_1.expectString,
|
|
801
|
+
Type: (_) => de_Type(_, context),
|
|
802
|
+
});
|
|
1017
803
|
};
|
|
1018
804
|
const de_ColumnInfoList = (output, context) => {
|
|
1019
805
|
const retVal = (output || [])
|
|
1020
806
|
.filter((e) => e != null)
|
|
1021
807
|
.map((entry) => {
|
|
1022
|
-
if (entry === null) {
|
|
1023
|
-
return null;
|
|
1024
|
-
}
|
|
1025
808
|
return de_ColumnInfo(entry, context);
|
|
1026
809
|
});
|
|
1027
810
|
return retVal;
|
|
1028
811
|
};
|
|
1029
|
-
const de_ConflictException = (output, context) => {
|
|
1030
|
-
return {
|
|
1031
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1032
|
-
};
|
|
1033
|
-
};
|
|
1034
|
-
const de_CreateScheduledQueryResponse = (output, context) => {
|
|
1035
|
-
return {
|
|
1036
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1037
|
-
};
|
|
1038
|
-
};
|
|
1039
812
|
const de_Datum = (output, context) => {
|
|
1040
|
-
return {
|
|
1041
|
-
ArrayValue:
|
|
1042
|
-
NullValue:
|
|
1043
|
-
RowValue:
|
|
1044
|
-
ScalarValue:
|
|
1045
|
-
TimeSeriesValue:
|
|
1046
|
-
};
|
|
813
|
+
return (0, smithy_client_1.take)(output, {
|
|
814
|
+
ArrayValue: (_) => de_DatumList(_, context),
|
|
815
|
+
NullValue: smithy_client_1.expectBoolean,
|
|
816
|
+
RowValue: (_) => de_Row(_, context),
|
|
817
|
+
ScalarValue: smithy_client_1.expectString,
|
|
818
|
+
TimeSeriesValue: (_) => de_TimeSeriesDataPointList(_, context),
|
|
819
|
+
});
|
|
1047
820
|
};
|
|
1048
821
|
const de_DatumList = (output, context) => {
|
|
1049
822
|
const retVal = (output || [])
|
|
1050
823
|
.filter((e) => e != null)
|
|
1051
824
|
.map((entry) => {
|
|
1052
|
-
if (entry === null) {
|
|
1053
|
-
return null;
|
|
1054
|
-
}
|
|
1055
825
|
return de_Datum(entry, context);
|
|
1056
826
|
});
|
|
1057
827
|
return retVal;
|
|
1058
828
|
};
|
|
1059
|
-
const de_DescribeEndpointsResponse = (output, context) => {
|
|
1060
|
-
return {
|
|
1061
|
-
Endpoints: output.Endpoints != null ? de_Endpoints(output.Endpoints, context) : undefined,
|
|
1062
|
-
};
|
|
1063
|
-
};
|
|
1064
829
|
const de_DescribeScheduledQueryResponse = (output, context) => {
|
|
1065
|
-
return {
|
|
1066
|
-
ScheduledQuery:
|
|
1067
|
-
};
|
|
1068
|
-
};
|
|
1069
|
-
const de_DimensionMapping = (output, context) => {
|
|
1070
|
-
return {
|
|
1071
|
-
DimensionValueType: (0, smithy_client_1.expectString)(output.DimensionValueType),
|
|
1072
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1073
|
-
};
|
|
1074
|
-
};
|
|
1075
|
-
const de_DimensionMappingList = (output, context) => {
|
|
1076
|
-
const retVal = (output || [])
|
|
1077
|
-
.filter((e) => e != null)
|
|
1078
|
-
.map((entry) => {
|
|
1079
|
-
if (entry === null) {
|
|
1080
|
-
return null;
|
|
1081
|
-
}
|
|
1082
|
-
return de_DimensionMapping(entry, context);
|
|
1083
|
-
});
|
|
1084
|
-
return retVal;
|
|
1085
|
-
};
|
|
1086
|
-
const de_Endpoint = (output, context) => {
|
|
1087
|
-
return {
|
|
1088
|
-
Address: (0, smithy_client_1.expectString)(output.Address),
|
|
1089
|
-
CachePeriodInMinutes: (0, smithy_client_1.expectLong)(output.CachePeriodInMinutes),
|
|
1090
|
-
};
|
|
1091
|
-
};
|
|
1092
|
-
const de_Endpoints = (output, context) => {
|
|
1093
|
-
const retVal = (output || [])
|
|
1094
|
-
.filter((e) => e != null)
|
|
1095
|
-
.map((entry) => {
|
|
1096
|
-
if (entry === null) {
|
|
1097
|
-
return null;
|
|
1098
|
-
}
|
|
1099
|
-
return de_Endpoint(entry, context);
|
|
830
|
+
return (0, smithy_client_1.take)(output, {
|
|
831
|
+
ScheduledQuery: (_) => de_ScheduledQueryDescription(_, context),
|
|
1100
832
|
});
|
|
1101
|
-
return retVal;
|
|
1102
|
-
};
|
|
1103
|
-
const de_ErrorReportConfiguration = (output, context) => {
|
|
1104
|
-
return {
|
|
1105
|
-
S3Configuration: output.S3Configuration != null ? de_S3Configuration(output.S3Configuration, context) : undefined,
|
|
1106
|
-
};
|
|
1107
|
-
};
|
|
1108
|
-
const de_ErrorReportLocation = (output, context) => {
|
|
1109
|
-
return {
|
|
1110
|
-
S3ReportLocation: output.S3ReportLocation != null ? de_S3ReportLocation(output.S3ReportLocation, context) : undefined,
|
|
1111
|
-
};
|
|
1112
|
-
};
|
|
1113
|
-
const de_ExecutionStats = (output, context) => {
|
|
1114
|
-
return {
|
|
1115
|
-
BytesMetered: (0, smithy_client_1.expectLong)(output.BytesMetered),
|
|
1116
|
-
DataWrites: (0, smithy_client_1.expectLong)(output.DataWrites),
|
|
1117
|
-
ExecutionTimeInMillis: (0, smithy_client_1.expectLong)(output.ExecutionTimeInMillis),
|
|
1118
|
-
QueryResultRows: (0, smithy_client_1.expectLong)(output.QueryResultRows),
|
|
1119
|
-
RecordsIngested: (0, smithy_client_1.expectLong)(output.RecordsIngested),
|
|
1120
|
-
};
|
|
1121
|
-
};
|
|
1122
|
-
const de_InternalServerException = (output, context) => {
|
|
1123
|
-
return {
|
|
1124
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1125
|
-
};
|
|
1126
|
-
};
|
|
1127
|
-
const de_InvalidEndpointException = (output, context) => {
|
|
1128
|
-
return {
|
|
1129
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1130
|
-
};
|
|
1131
833
|
};
|
|
1132
834
|
const de_ListScheduledQueriesResponse = (output, context) => {
|
|
1133
|
-
return {
|
|
1134
|
-
NextToken:
|
|
1135
|
-
ScheduledQueries:
|
|
1136
|
-
};
|
|
1137
|
-
};
|
|
1138
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1139
|
-
return {
|
|
1140
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1141
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1142
|
-
};
|
|
1143
|
-
};
|
|
1144
|
-
const de_MixedMeasureMapping = (output, context) => {
|
|
1145
|
-
return {
|
|
1146
|
-
MeasureName: (0, smithy_client_1.expectString)(output.MeasureName),
|
|
1147
|
-
MeasureValueType: (0, smithy_client_1.expectString)(output.MeasureValueType),
|
|
1148
|
-
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1149
|
-
? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1150
|
-
: undefined,
|
|
1151
|
-
SourceColumn: (0, smithy_client_1.expectString)(output.SourceColumn),
|
|
1152
|
-
TargetMeasureName: (0, smithy_client_1.expectString)(output.TargetMeasureName),
|
|
1153
|
-
};
|
|
1154
|
-
};
|
|
1155
|
-
const de_MixedMeasureMappingList = (output, context) => {
|
|
1156
|
-
const retVal = (output || [])
|
|
1157
|
-
.filter((e) => e != null)
|
|
1158
|
-
.map((entry) => {
|
|
1159
|
-
if (entry === null) {
|
|
1160
|
-
return null;
|
|
1161
|
-
}
|
|
1162
|
-
return de_MixedMeasureMapping(entry, context);
|
|
835
|
+
return (0, smithy_client_1.take)(output, {
|
|
836
|
+
NextToken: smithy_client_1.expectString,
|
|
837
|
+
ScheduledQueries: (_) => de_ScheduledQueryList(_, context),
|
|
1163
838
|
});
|
|
1164
|
-
return retVal;
|
|
1165
|
-
};
|
|
1166
|
-
const de_MultiMeasureAttributeMapping = (output, context) => {
|
|
1167
|
-
return {
|
|
1168
|
-
MeasureValueType: (0, smithy_client_1.expectString)(output.MeasureValueType),
|
|
1169
|
-
SourceColumn: (0, smithy_client_1.expectString)(output.SourceColumn),
|
|
1170
|
-
TargetMultiMeasureAttributeName: (0, smithy_client_1.expectString)(output.TargetMultiMeasureAttributeName),
|
|
1171
|
-
};
|
|
1172
|
-
};
|
|
1173
|
-
const de_MultiMeasureAttributeMappingList = (output, context) => {
|
|
1174
|
-
const retVal = (output || [])
|
|
1175
|
-
.filter((e) => e != null)
|
|
1176
|
-
.map((entry) => {
|
|
1177
|
-
if (entry === null) {
|
|
1178
|
-
return null;
|
|
1179
|
-
}
|
|
1180
|
-
return de_MultiMeasureAttributeMapping(entry, context);
|
|
1181
|
-
});
|
|
1182
|
-
return retVal;
|
|
1183
|
-
};
|
|
1184
|
-
const de_MultiMeasureMappings = (output, context) => {
|
|
1185
|
-
return {
|
|
1186
|
-
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1187
|
-
? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1188
|
-
: undefined,
|
|
1189
|
-
TargetMultiMeasureName: (0, smithy_client_1.expectString)(output.TargetMultiMeasureName),
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
|
-
const de_NotificationConfiguration = (output, context) => {
|
|
1193
|
-
return {
|
|
1194
|
-
SnsConfiguration: output.SnsConfiguration != null ? de_SnsConfiguration(output.SnsConfiguration, context) : undefined,
|
|
1195
|
-
};
|
|
1196
839
|
};
|
|
1197
840
|
const de_ParameterMapping = (output, context) => {
|
|
1198
|
-
return {
|
|
1199
|
-
Name:
|
|
1200
|
-
Type:
|
|
1201
|
-
};
|
|
841
|
+
return (0, smithy_client_1.take)(output, {
|
|
842
|
+
Name: smithy_client_1.expectString,
|
|
843
|
+
Type: (_) => de_Type(_, context),
|
|
844
|
+
});
|
|
1202
845
|
};
|
|
1203
846
|
const de_ParameterMappingList = (output, context) => {
|
|
1204
847
|
const retVal = (output || [])
|
|
1205
848
|
.filter((e) => e != null)
|
|
1206
849
|
.map((entry) => {
|
|
1207
|
-
if (entry === null) {
|
|
1208
|
-
return null;
|
|
1209
|
-
}
|
|
1210
850
|
return de_ParameterMapping(entry, context);
|
|
1211
851
|
});
|
|
1212
852
|
return retVal;
|
|
1213
853
|
};
|
|
1214
854
|
const de_PrepareQueryResponse = (output, context) => {
|
|
1215
|
-
return {
|
|
1216
|
-
Columns:
|
|
1217
|
-
Parameters:
|
|
1218
|
-
QueryString:
|
|
1219
|
-
};
|
|
1220
|
-
};
|
|
1221
|
-
const de_QueryExecutionException = (output, context) => {
|
|
1222
|
-
return {
|
|
1223
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1224
|
-
};
|
|
855
|
+
return (0, smithy_client_1.take)(output, {
|
|
856
|
+
Columns: (_) => de_SelectColumnList(_, context),
|
|
857
|
+
Parameters: (_) => de_ParameterMappingList(_, context),
|
|
858
|
+
QueryString: smithy_client_1.expectString,
|
|
859
|
+
});
|
|
1225
860
|
};
|
|
1226
861
|
const de_QueryResponse = (output, context) => {
|
|
1227
|
-
return {
|
|
1228
|
-
ColumnInfo:
|
|
1229
|
-
NextToken:
|
|
1230
|
-
QueryId:
|
|
1231
|
-
QueryStatus:
|
|
1232
|
-
Rows:
|
|
1233
|
-
};
|
|
862
|
+
return (0, smithy_client_1.take)(output, {
|
|
863
|
+
ColumnInfo: (_) => de_ColumnInfoList(_, context),
|
|
864
|
+
NextToken: smithy_client_1.expectString,
|
|
865
|
+
QueryId: smithy_client_1.expectString,
|
|
866
|
+
QueryStatus: (_) => de_QueryStatus(_, context),
|
|
867
|
+
Rows: (_) => de_RowList(_, context),
|
|
868
|
+
});
|
|
1234
869
|
};
|
|
1235
870
|
const de_QueryStatus = (output, context) => {
|
|
1236
|
-
return {
|
|
1237
|
-
CumulativeBytesMetered:
|
|
1238
|
-
CumulativeBytesScanned:
|
|
1239
|
-
ProgressPercentage:
|
|
1240
|
-
};
|
|
1241
|
-
};
|
|
1242
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1243
|
-
return {
|
|
1244
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1245
|
-
ScheduledQueryArn: (0, smithy_client_1.expectString)(output.ScheduledQueryArn),
|
|
1246
|
-
};
|
|
871
|
+
return (0, smithy_client_1.take)(output, {
|
|
872
|
+
CumulativeBytesMetered: smithy_client_1.expectLong,
|
|
873
|
+
CumulativeBytesScanned: smithy_client_1.expectLong,
|
|
874
|
+
ProgressPercentage: smithy_client_1.limitedParseDouble,
|
|
875
|
+
});
|
|
1247
876
|
};
|
|
1248
877
|
const de_Row = (output, context) => {
|
|
1249
|
-
return {
|
|
1250
|
-
Data:
|
|
1251
|
-
};
|
|
878
|
+
return (0, smithy_client_1.take)(output, {
|
|
879
|
+
Data: (_) => de_DatumList(_, context),
|
|
880
|
+
});
|
|
1252
881
|
};
|
|
1253
882
|
const de_RowList = (output, context) => {
|
|
1254
883
|
const retVal = (output || [])
|
|
1255
884
|
.filter((e) => e != null)
|
|
1256
885
|
.map((entry) => {
|
|
1257
|
-
if (entry === null) {
|
|
1258
|
-
return null;
|
|
1259
|
-
}
|
|
1260
886
|
return de_Row(entry, context);
|
|
1261
887
|
});
|
|
1262
888
|
return retVal;
|
|
1263
889
|
};
|
|
1264
|
-
const de_S3Configuration = (output, context) => {
|
|
1265
|
-
return {
|
|
1266
|
-
BucketName: (0, smithy_client_1.expectString)(output.BucketName),
|
|
1267
|
-
EncryptionOption: (0, smithy_client_1.expectString)(output.EncryptionOption),
|
|
1268
|
-
ObjectKeyPrefix: (0, smithy_client_1.expectString)(output.ObjectKeyPrefix),
|
|
1269
|
-
};
|
|
1270
|
-
};
|
|
1271
|
-
const de_S3ReportLocation = (output, context) => {
|
|
1272
|
-
return {
|
|
1273
|
-
BucketName: (0, smithy_client_1.expectString)(output.BucketName),
|
|
1274
|
-
ObjectKey: (0, smithy_client_1.expectString)(output.ObjectKey),
|
|
1275
|
-
};
|
|
1276
|
-
};
|
|
1277
|
-
const de_ScheduleConfiguration = (output, context) => {
|
|
1278
|
-
return {
|
|
1279
|
-
ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
|
|
1280
|
-
};
|
|
1281
|
-
};
|
|
1282
890
|
const de_ScheduledQuery = (output, context) => {
|
|
1283
|
-
return {
|
|
1284
|
-
Arn:
|
|
1285
|
-
CreationTime:
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NextInvocationTime)))
|
|
1295
|
-
: undefined,
|
|
1296
|
-
PreviousInvocationTime: output.PreviousInvocationTime != null
|
|
1297
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PreviousInvocationTime)))
|
|
1298
|
-
: undefined,
|
|
1299
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1300
|
-
TargetDestination: output.TargetDestination != null ? de_TargetDestination(output.TargetDestination, context) : undefined,
|
|
1301
|
-
};
|
|
891
|
+
return (0, smithy_client_1.take)(output, {
|
|
892
|
+
Arn: smithy_client_1.expectString,
|
|
893
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
894
|
+
ErrorReportConfiguration: smithy_client_1._json,
|
|
895
|
+
LastRunStatus: smithy_client_1.expectString,
|
|
896
|
+
Name: smithy_client_1.expectString,
|
|
897
|
+
NextInvocationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
898
|
+
PreviousInvocationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
899
|
+
State: smithy_client_1.expectString,
|
|
900
|
+
TargetDestination: smithy_client_1._json,
|
|
901
|
+
});
|
|
1302
902
|
};
|
|
1303
903
|
const de_ScheduledQueryDescription = (output, context) => {
|
|
1304
|
-
return {
|
|
1305
|
-
Arn:
|
|
1306
|
-
CreationTime:
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
PreviousInvocationTime: output.PreviousInvocationTime != null
|
|
1322
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PreviousInvocationTime)))
|
|
1323
|
-
: undefined,
|
|
1324
|
-
QueryString: (0, smithy_client_1.expectString)(output.QueryString),
|
|
1325
|
-
RecentlyFailedRuns: output.RecentlyFailedRuns != null
|
|
1326
|
-
? de_ScheduledQueryRunSummaryList(output.RecentlyFailedRuns, context)
|
|
1327
|
-
: undefined,
|
|
1328
|
-
ScheduleConfiguration: output.ScheduleConfiguration != null
|
|
1329
|
-
? de_ScheduleConfiguration(output.ScheduleConfiguration, context)
|
|
1330
|
-
: undefined,
|
|
1331
|
-
ScheduledQueryExecutionRoleArn: (0, smithy_client_1.expectString)(output.ScheduledQueryExecutionRoleArn),
|
|
1332
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1333
|
-
TargetConfiguration: output.TargetConfiguration != null ? de_TargetConfiguration(output.TargetConfiguration, context) : undefined,
|
|
1334
|
-
};
|
|
904
|
+
return (0, smithy_client_1.take)(output, {
|
|
905
|
+
Arn: smithy_client_1.expectString,
|
|
906
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
907
|
+
ErrorReportConfiguration: smithy_client_1._json,
|
|
908
|
+
KmsKeyId: smithy_client_1.expectString,
|
|
909
|
+
LastRunSummary: (_) => de_ScheduledQueryRunSummary(_, context),
|
|
910
|
+
Name: smithy_client_1.expectString,
|
|
911
|
+
NextInvocationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
912
|
+
NotificationConfiguration: smithy_client_1._json,
|
|
913
|
+
PreviousInvocationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
914
|
+
QueryString: smithy_client_1.expectString,
|
|
915
|
+
RecentlyFailedRuns: (_) => de_ScheduledQueryRunSummaryList(_, context),
|
|
916
|
+
ScheduleConfiguration: smithy_client_1._json,
|
|
917
|
+
ScheduledQueryExecutionRoleArn: smithy_client_1.expectString,
|
|
918
|
+
State: smithy_client_1.expectString,
|
|
919
|
+
TargetConfiguration: smithy_client_1._json,
|
|
920
|
+
});
|
|
1335
921
|
};
|
|
1336
922
|
const de_ScheduledQueryList = (output, context) => {
|
|
1337
923
|
const retVal = (output || [])
|
|
1338
924
|
.filter((e) => e != null)
|
|
1339
925
|
.map((entry) => {
|
|
1340
|
-
if (entry === null) {
|
|
1341
|
-
return null;
|
|
1342
|
-
}
|
|
1343
926
|
return de_ScheduledQuery(entry, context);
|
|
1344
927
|
});
|
|
1345
928
|
return retVal;
|
|
1346
929
|
};
|
|
1347
930
|
const de_ScheduledQueryRunSummary = (output, context) => {
|
|
1348
|
-
return {
|
|
1349
|
-
ErrorReportLocation:
|
|
1350
|
-
ExecutionStats:
|
|
1351
|
-
FailureReason:
|
|
1352
|
-
InvocationTime:
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
TriggerTime: output.TriggerTime != null
|
|
1357
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TriggerTime)))
|
|
1358
|
-
: undefined,
|
|
1359
|
-
};
|
|
931
|
+
return (0, smithy_client_1.take)(output, {
|
|
932
|
+
ErrorReportLocation: smithy_client_1._json,
|
|
933
|
+
ExecutionStats: smithy_client_1._json,
|
|
934
|
+
FailureReason: smithy_client_1.expectString,
|
|
935
|
+
InvocationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
936
|
+
RunStatus: smithy_client_1.expectString,
|
|
937
|
+
TriggerTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
938
|
+
});
|
|
1360
939
|
};
|
|
1361
940
|
const de_ScheduledQueryRunSummaryList = (output, context) => {
|
|
1362
941
|
const retVal = (output || [])
|
|
1363
942
|
.filter((e) => e != null)
|
|
1364
943
|
.map((entry) => {
|
|
1365
|
-
if (entry === null) {
|
|
1366
|
-
return null;
|
|
1367
|
-
}
|
|
1368
944
|
return de_ScheduledQueryRunSummary(entry, context);
|
|
1369
945
|
});
|
|
1370
946
|
return retVal;
|
|
1371
947
|
};
|
|
1372
948
|
const de_SelectColumn = (output, context) => {
|
|
1373
|
-
return {
|
|
1374
|
-
Aliased:
|
|
1375
|
-
DatabaseName:
|
|
1376
|
-
Name:
|
|
1377
|
-
TableName:
|
|
1378
|
-
Type:
|
|
1379
|
-
};
|
|
949
|
+
return (0, smithy_client_1.take)(output, {
|
|
950
|
+
Aliased: smithy_client_1.expectBoolean,
|
|
951
|
+
DatabaseName: smithy_client_1.expectString,
|
|
952
|
+
Name: smithy_client_1.expectString,
|
|
953
|
+
TableName: smithy_client_1.expectString,
|
|
954
|
+
Type: (_) => de_Type(_, context),
|
|
955
|
+
});
|
|
1380
956
|
};
|
|
1381
957
|
const de_SelectColumnList = (output, context) => {
|
|
1382
958
|
const retVal = (output || [])
|
|
1383
959
|
.filter((e) => e != null)
|
|
1384
960
|
.map((entry) => {
|
|
1385
|
-
if (entry === null) {
|
|
1386
|
-
return null;
|
|
1387
|
-
}
|
|
1388
961
|
return de_SelectColumn(entry, context);
|
|
1389
962
|
});
|
|
1390
963
|
return retVal;
|
|
1391
964
|
};
|
|
1392
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
1393
|
-
return {
|
|
1394
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1395
|
-
};
|
|
1396
|
-
};
|
|
1397
|
-
const de_SnsConfiguration = (output, context) => {
|
|
1398
|
-
return {
|
|
1399
|
-
TopicArn: (0, smithy_client_1.expectString)(output.TopicArn),
|
|
1400
|
-
};
|
|
1401
|
-
};
|
|
1402
|
-
const de_Tag = (output, context) => {
|
|
1403
|
-
return {
|
|
1404
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1405
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1406
|
-
};
|
|
1407
|
-
};
|
|
1408
|
-
const de_TagList = (output, context) => {
|
|
1409
|
-
const retVal = (output || [])
|
|
1410
|
-
.filter((e) => e != null)
|
|
1411
|
-
.map((entry) => {
|
|
1412
|
-
if (entry === null) {
|
|
1413
|
-
return null;
|
|
1414
|
-
}
|
|
1415
|
-
return de_Tag(entry, context);
|
|
1416
|
-
});
|
|
1417
|
-
return retVal;
|
|
1418
|
-
};
|
|
1419
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1420
|
-
return {};
|
|
1421
|
-
};
|
|
1422
|
-
const de_TargetConfiguration = (output, context) => {
|
|
1423
|
-
return {
|
|
1424
|
-
TimestreamConfiguration: output.TimestreamConfiguration != null
|
|
1425
|
-
? de_TimestreamConfiguration(output.TimestreamConfiguration, context)
|
|
1426
|
-
: undefined,
|
|
1427
|
-
};
|
|
1428
|
-
};
|
|
1429
|
-
const de_TargetDestination = (output, context) => {
|
|
1430
|
-
return {
|
|
1431
|
-
TimestreamDestination: output.TimestreamDestination != null
|
|
1432
|
-
? de_TimestreamDestination(output.TimestreamDestination, context)
|
|
1433
|
-
: undefined,
|
|
1434
|
-
};
|
|
1435
|
-
};
|
|
1436
|
-
const de_ThrottlingException = (output, context) => {
|
|
1437
|
-
return {
|
|
1438
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1439
|
-
};
|
|
1440
|
-
};
|
|
1441
965
|
const de_TimeSeriesDataPoint = (output, context) => {
|
|
1442
|
-
return {
|
|
1443
|
-
Time:
|
|
1444
|
-
Value:
|
|
1445
|
-
};
|
|
966
|
+
return (0, smithy_client_1.take)(output, {
|
|
967
|
+
Time: smithy_client_1.expectString,
|
|
968
|
+
Value: (_) => de_Datum(_, context),
|
|
969
|
+
});
|
|
1446
970
|
};
|
|
1447
971
|
const de_TimeSeriesDataPointList = (output, context) => {
|
|
1448
972
|
const retVal = (output || [])
|
|
1449
973
|
.filter((e) => e != null)
|
|
1450
974
|
.map((entry) => {
|
|
1451
|
-
if (entry === null) {
|
|
1452
|
-
return null;
|
|
1453
|
-
}
|
|
1454
975
|
return de_TimeSeriesDataPoint(entry, context);
|
|
1455
976
|
});
|
|
1456
977
|
return retVal;
|
|
1457
978
|
};
|
|
1458
|
-
const de_TimestreamConfiguration = (output, context) => {
|
|
1459
|
-
return {
|
|
1460
|
-
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
1461
|
-
DimensionMappings: output.DimensionMappings != null ? de_DimensionMappingList(output.DimensionMappings, context) : undefined,
|
|
1462
|
-
MeasureNameColumn: (0, smithy_client_1.expectString)(output.MeasureNameColumn),
|
|
1463
|
-
MixedMeasureMappings: output.MixedMeasureMappings != null
|
|
1464
|
-
? de_MixedMeasureMappingList(output.MixedMeasureMappings, context)
|
|
1465
|
-
: undefined,
|
|
1466
|
-
MultiMeasureMappings: output.MultiMeasureMappings != null ? de_MultiMeasureMappings(output.MultiMeasureMappings, context) : undefined,
|
|
1467
|
-
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
1468
|
-
TimeColumn: (0, smithy_client_1.expectString)(output.TimeColumn),
|
|
1469
|
-
};
|
|
1470
|
-
};
|
|
1471
|
-
const de_TimestreamDestination = (output, context) => {
|
|
1472
|
-
return {
|
|
1473
|
-
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
1474
|
-
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
1475
|
-
};
|
|
1476
|
-
};
|
|
1477
979
|
const de_Type = (output, context) => {
|
|
1478
|
-
return {
|
|
1479
|
-
ArrayColumnInfo:
|
|
1480
|
-
RowColumnInfo:
|
|
1481
|
-
ScalarType:
|
|
1482
|
-
TimeSeriesMeasureValueColumnInfo:
|
|
1483
|
-
|
|
1484
|
-
: undefined,
|
|
1485
|
-
};
|
|
1486
|
-
};
|
|
1487
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1488
|
-
return {};
|
|
1489
|
-
};
|
|
1490
|
-
const de_ValidationException = (output, context) => {
|
|
1491
|
-
return {
|
|
1492
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1493
|
-
};
|
|
980
|
+
return (0, smithy_client_1.take)(output, {
|
|
981
|
+
ArrayColumnInfo: (_) => de_ColumnInfo(_, context),
|
|
982
|
+
RowColumnInfo: (_) => de_ColumnInfoList(_, context),
|
|
983
|
+
ScalarType: smithy_client_1.expectString,
|
|
984
|
+
TimeSeriesMeasureValueColumnInfo: (_) => de_ColumnInfo(_, context),
|
|
985
|
+
});
|
|
1494
986
|
};
|
|
1495
987
|
const deserializeMetadata = (output) => ({
|
|
1496
988
|
httpStatusCode: output.statusCode,
|
|
@@ -1505,6 +997,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1505
997
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1506
998
|
};
|
|
1507
999
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1000
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(TimestreamQueryServiceException_1.TimestreamQueryServiceException);
|
|
1508
1001
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1509
1002
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1510
1003
|
const contents = {
|