@aws-sdk/client-timestream-query 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_0.js +165 -672
- package/dist-es/protocols/Aws_json1_0.js +166 -673
- package/package.json +6 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, InvalidEndpointException, QueryExecutionException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { TimestreamQueryServiceException as __BaseException } from "../models/TimestreamQueryServiceException";
|
|
6
6
|
export const se_CancelQueryCommand = async (input, context) => {
|
|
7
7
|
const headers = sharedHeaders("CancelQuery");
|
|
8
8
|
let body;
|
|
9
|
-
body = JSON.stringify(
|
|
9
|
+
body = JSON.stringify(_json(input));
|
|
10
10
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
11
|
};
|
|
12
12
|
export const se_CreateScheduledQueryCommand = async (input, context) => {
|
|
@@ -18,19 +18,19 @@ export const se_CreateScheduledQueryCommand = async (input, context) => {
|
|
|
18
18
|
export const se_DeleteScheduledQueryCommand = async (input, context) => {
|
|
19
19
|
const headers = sharedHeaders("DeleteScheduledQuery");
|
|
20
20
|
let body;
|
|
21
|
-
body = JSON.stringify(
|
|
21
|
+
body = JSON.stringify(_json(input));
|
|
22
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
23
|
};
|
|
24
24
|
export const se_DescribeEndpointsCommand = async (input, context) => {
|
|
25
25
|
const headers = sharedHeaders("DescribeEndpoints");
|
|
26
26
|
let body;
|
|
27
|
-
body = JSON.stringify(
|
|
27
|
+
body = JSON.stringify(_json(input));
|
|
28
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
29
|
};
|
|
30
30
|
export const se_DescribeScheduledQueryCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("DescribeScheduledQuery");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify(_json(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
export const se_ExecuteScheduledQueryCommand = async (input, context) => {
|
|
@@ -42,19 +42,19 @@ export const se_ExecuteScheduledQueryCommand = async (input, context) => {
|
|
|
42
42
|
export const se_ListScheduledQueriesCommand = async (input, context) => {
|
|
43
43
|
const headers = sharedHeaders("ListScheduledQueries");
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(_json(input));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
48
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
49
49
|
const headers = sharedHeaders("ListTagsForResource");
|
|
50
50
|
let body;
|
|
51
|
-
body = JSON.stringify(
|
|
51
|
+
body = JSON.stringify(_json(input));
|
|
52
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
53
|
};
|
|
54
54
|
export const se_PrepareQueryCommand = async (input, context) => {
|
|
55
55
|
const headers = sharedHeaders("PrepareQuery");
|
|
56
56
|
let body;
|
|
57
|
-
body = JSON.stringify(
|
|
57
|
+
body = JSON.stringify(_json(input));
|
|
58
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
59
|
};
|
|
60
60
|
export const se_QueryCommand = async (input, context) => {
|
|
@@ -66,19 +66,19 @@ export const se_QueryCommand = async (input, context) => {
|
|
|
66
66
|
export const se_TagResourceCommand = async (input, context) => {
|
|
67
67
|
const headers = sharedHeaders("TagResource");
|
|
68
68
|
let body;
|
|
69
|
-
body = JSON.stringify(
|
|
69
|
+
body = JSON.stringify(_json(input));
|
|
70
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
71
|
};
|
|
72
72
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
73
73
|
const headers = sharedHeaders("UntagResource");
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(_json(input));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
78
|
export const se_UpdateScheduledQueryCommand = async (input, context) => {
|
|
79
79
|
const headers = sharedHeaders("UpdateScheduledQuery");
|
|
80
80
|
let body;
|
|
81
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify(_json(input));
|
|
82
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
83
|
};
|
|
84
84
|
export const de_CancelQueryCommand = async (output, context) => {
|
|
@@ -87,12 +87,12 @@ export const de_CancelQueryCommand = async (output, context) => {
|
|
|
87
87
|
}
|
|
88
88
|
const data = await parseBody(output.body, context);
|
|
89
89
|
let contents = {};
|
|
90
|
-
contents =
|
|
90
|
+
contents = _json(data);
|
|
91
91
|
const response = {
|
|
92
92
|
$metadata: deserializeMetadata(output),
|
|
93
93
|
...contents,
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return response;
|
|
96
96
|
};
|
|
97
97
|
const de_CancelQueryCommandError = async (output, context) => {
|
|
98
98
|
const parsedOutput = {
|
|
@@ -118,10 +118,9 @@ const de_CancelQueryCommandError = async (output, context) => {
|
|
|
118
118
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
119
119
|
default:
|
|
120
120
|
const parsedBody = parsedOutput.body;
|
|
121
|
-
throwDefaultError({
|
|
121
|
+
return throwDefaultError({
|
|
122
122
|
output,
|
|
123
123
|
parsedBody,
|
|
124
|
-
exceptionCtor: __BaseException,
|
|
125
124
|
errorCode,
|
|
126
125
|
});
|
|
127
126
|
}
|
|
@@ -132,12 +131,12 @@ export const de_CreateScheduledQueryCommand = async (output, context) => {
|
|
|
132
131
|
}
|
|
133
132
|
const data = await parseBody(output.body, context);
|
|
134
133
|
let contents = {};
|
|
135
|
-
contents =
|
|
134
|
+
contents = _json(data);
|
|
136
135
|
const response = {
|
|
137
136
|
$metadata: deserializeMetadata(output),
|
|
138
137
|
...contents,
|
|
139
138
|
};
|
|
140
|
-
return
|
|
139
|
+
return response;
|
|
141
140
|
};
|
|
142
141
|
const de_CreateScheduledQueryCommandError = async (output, context) => {
|
|
143
142
|
const parsedOutput = {
|
|
@@ -169,10 +168,9 @@ const de_CreateScheduledQueryCommandError = async (output, context) => {
|
|
|
169
168
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
170
169
|
default:
|
|
171
170
|
const parsedBody = parsedOutput.body;
|
|
172
|
-
throwDefaultError({
|
|
171
|
+
return throwDefaultError({
|
|
173
172
|
output,
|
|
174
173
|
parsedBody,
|
|
175
|
-
exceptionCtor: __BaseException,
|
|
176
174
|
errorCode,
|
|
177
175
|
});
|
|
178
176
|
}
|
|
@@ -185,7 +183,7 @@ export const de_DeleteScheduledQueryCommand = async (output, context) => {
|
|
|
185
183
|
const response = {
|
|
186
184
|
$metadata: deserializeMetadata(output),
|
|
187
185
|
};
|
|
188
|
-
return
|
|
186
|
+
return response;
|
|
189
187
|
};
|
|
190
188
|
const de_DeleteScheduledQueryCommandError = async (output, context) => {
|
|
191
189
|
const parsedOutput = {
|
|
@@ -214,10 +212,9 @@ const de_DeleteScheduledQueryCommandError = async (output, context) => {
|
|
|
214
212
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
215
213
|
default:
|
|
216
214
|
const parsedBody = parsedOutput.body;
|
|
217
|
-
throwDefaultError({
|
|
215
|
+
return throwDefaultError({
|
|
218
216
|
output,
|
|
219
217
|
parsedBody,
|
|
220
|
-
exceptionCtor: __BaseException,
|
|
221
218
|
errorCode,
|
|
222
219
|
});
|
|
223
220
|
}
|
|
@@ -228,12 +225,12 @@ export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
|
228
225
|
}
|
|
229
226
|
const data = await parseBody(output.body, context);
|
|
230
227
|
let contents = {};
|
|
231
|
-
contents =
|
|
228
|
+
contents = _json(data);
|
|
232
229
|
const response = {
|
|
233
230
|
$metadata: deserializeMetadata(output),
|
|
234
231
|
...contents,
|
|
235
232
|
};
|
|
236
|
-
return
|
|
233
|
+
return response;
|
|
237
234
|
};
|
|
238
235
|
const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
239
236
|
const parsedOutput = {
|
|
@@ -253,10 +250,9 @@ const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
|
253
250
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
254
251
|
default:
|
|
255
252
|
const parsedBody = parsedOutput.body;
|
|
256
|
-
throwDefaultError({
|
|
253
|
+
return throwDefaultError({
|
|
257
254
|
output,
|
|
258
255
|
parsedBody,
|
|
259
|
-
exceptionCtor: __BaseException,
|
|
260
256
|
errorCode,
|
|
261
257
|
});
|
|
262
258
|
}
|
|
@@ -272,7 +268,7 @@ export const de_DescribeScheduledQueryCommand = async (output, context) => {
|
|
|
272
268
|
$metadata: deserializeMetadata(output),
|
|
273
269
|
...contents,
|
|
274
270
|
};
|
|
275
|
-
return
|
|
271
|
+
return response;
|
|
276
272
|
};
|
|
277
273
|
const de_DescribeScheduledQueryCommandError = async (output, context) => {
|
|
278
274
|
const parsedOutput = {
|
|
@@ -301,10 +297,9 @@ const de_DescribeScheduledQueryCommandError = async (output, context) => {
|
|
|
301
297
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
302
298
|
default:
|
|
303
299
|
const parsedBody = parsedOutput.body;
|
|
304
|
-
throwDefaultError({
|
|
300
|
+
return throwDefaultError({
|
|
305
301
|
output,
|
|
306
302
|
parsedBody,
|
|
307
|
-
exceptionCtor: __BaseException,
|
|
308
303
|
errorCode,
|
|
309
304
|
});
|
|
310
305
|
}
|
|
@@ -317,7 +312,7 @@ export const de_ExecuteScheduledQueryCommand = async (output, context) => {
|
|
|
317
312
|
const response = {
|
|
318
313
|
$metadata: deserializeMetadata(output),
|
|
319
314
|
};
|
|
320
|
-
return
|
|
315
|
+
return response;
|
|
321
316
|
};
|
|
322
317
|
const de_ExecuteScheduledQueryCommandError = async (output, context) => {
|
|
323
318
|
const parsedOutput = {
|
|
@@ -346,10 +341,9 @@ const de_ExecuteScheduledQueryCommandError = async (output, context) => {
|
|
|
346
341
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
347
342
|
default:
|
|
348
343
|
const parsedBody = parsedOutput.body;
|
|
349
|
-
throwDefaultError({
|
|
344
|
+
return throwDefaultError({
|
|
350
345
|
output,
|
|
351
346
|
parsedBody,
|
|
352
|
-
exceptionCtor: __BaseException,
|
|
353
347
|
errorCode,
|
|
354
348
|
});
|
|
355
349
|
}
|
|
@@ -365,7 +359,7 @@ export const de_ListScheduledQueriesCommand = async (output, context) => {
|
|
|
365
359
|
$metadata: deserializeMetadata(output),
|
|
366
360
|
...contents,
|
|
367
361
|
};
|
|
368
|
-
return
|
|
362
|
+
return response;
|
|
369
363
|
};
|
|
370
364
|
const de_ListScheduledQueriesCommandError = async (output, context) => {
|
|
371
365
|
const parsedOutput = {
|
|
@@ -391,10 +385,9 @@ const de_ListScheduledQueriesCommandError = async (output, context) => {
|
|
|
391
385
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
392
386
|
default:
|
|
393
387
|
const parsedBody = parsedOutput.body;
|
|
394
|
-
throwDefaultError({
|
|
388
|
+
return throwDefaultError({
|
|
395
389
|
output,
|
|
396
390
|
parsedBody,
|
|
397
|
-
exceptionCtor: __BaseException,
|
|
398
391
|
errorCode,
|
|
399
392
|
});
|
|
400
393
|
}
|
|
@@ -405,12 +398,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
405
398
|
}
|
|
406
399
|
const data = await parseBody(output.body, context);
|
|
407
400
|
let contents = {};
|
|
408
|
-
contents =
|
|
401
|
+
contents = _json(data);
|
|
409
402
|
const response = {
|
|
410
403
|
$metadata: deserializeMetadata(output),
|
|
411
404
|
...contents,
|
|
412
405
|
};
|
|
413
|
-
return
|
|
406
|
+
return response;
|
|
414
407
|
};
|
|
415
408
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
416
409
|
const parsedOutput = {
|
|
@@ -433,10 +426,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
433
426
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
434
427
|
default:
|
|
435
428
|
const parsedBody = parsedOutput.body;
|
|
436
|
-
throwDefaultError({
|
|
429
|
+
return throwDefaultError({
|
|
437
430
|
output,
|
|
438
431
|
parsedBody,
|
|
439
|
-
exceptionCtor: __BaseException,
|
|
440
432
|
errorCode,
|
|
441
433
|
});
|
|
442
434
|
}
|
|
@@ -452,7 +444,7 @@ export const de_PrepareQueryCommand = async (output, context) => {
|
|
|
452
444
|
$metadata: deserializeMetadata(output),
|
|
453
445
|
...contents,
|
|
454
446
|
};
|
|
455
|
-
return
|
|
447
|
+
return response;
|
|
456
448
|
};
|
|
457
449
|
const de_PrepareQueryCommandError = async (output, context) => {
|
|
458
450
|
const parsedOutput = {
|
|
@@ -478,10 +470,9 @@ const de_PrepareQueryCommandError = async (output, context) => {
|
|
|
478
470
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
479
471
|
default:
|
|
480
472
|
const parsedBody = parsedOutput.body;
|
|
481
|
-
throwDefaultError({
|
|
473
|
+
return throwDefaultError({
|
|
482
474
|
output,
|
|
483
475
|
parsedBody,
|
|
484
|
-
exceptionCtor: __BaseException,
|
|
485
476
|
errorCode,
|
|
486
477
|
});
|
|
487
478
|
}
|
|
@@ -497,7 +488,7 @@ export const de_QueryCommand = async (output, context) => {
|
|
|
497
488
|
$metadata: deserializeMetadata(output),
|
|
498
489
|
...contents,
|
|
499
490
|
};
|
|
500
|
-
return
|
|
491
|
+
return response;
|
|
501
492
|
};
|
|
502
493
|
const de_QueryCommandError = async (output, context) => {
|
|
503
494
|
const parsedOutput = {
|
|
@@ -529,10 +520,9 @@ const de_QueryCommandError = async (output, context) => {
|
|
|
529
520
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
530
521
|
default:
|
|
531
522
|
const parsedBody = parsedOutput.body;
|
|
532
|
-
throwDefaultError({
|
|
523
|
+
return throwDefaultError({
|
|
533
524
|
output,
|
|
534
525
|
parsedBody,
|
|
535
|
-
exceptionCtor: __BaseException,
|
|
536
526
|
errorCode,
|
|
537
527
|
});
|
|
538
528
|
}
|
|
@@ -543,12 +533,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
543
533
|
}
|
|
544
534
|
const data = await parseBody(output.body, context);
|
|
545
535
|
let contents = {};
|
|
546
|
-
contents =
|
|
536
|
+
contents = _json(data);
|
|
547
537
|
const response = {
|
|
548
538
|
$metadata: deserializeMetadata(output),
|
|
549
539
|
...contents,
|
|
550
540
|
};
|
|
551
|
-
return
|
|
541
|
+
return response;
|
|
552
542
|
};
|
|
553
543
|
const de_TagResourceCommandError = async (output, context) => {
|
|
554
544
|
const parsedOutput = {
|
|
@@ -574,10 +564,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
574
564
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
575
565
|
default:
|
|
576
566
|
const parsedBody = parsedOutput.body;
|
|
577
|
-
throwDefaultError({
|
|
567
|
+
return throwDefaultError({
|
|
578
568
|
output,
|
|
579
569
|
parsedBody,
|
|
580
|
-
exceptionCtor: __BaseException,
|
|
581
570
|
errorCode,
|
|
582
571
|
});
|
|
583
572
|
}
|
|
@@ -588,12 +577,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
588
577
|
}
|
|
589
578
|
const data = await parseBody(output.body, context);
|
|
590
579
|
let contents = {};
|
|
591
|
-
contents =
|
|
580
|
+
contents = _json(data);
|
|
592
581
|
const response = {
|
|
593
582
|
$metadata: deserializeMetadata(output),
|
|
594
583
|
...contents,
|
|
595
584
|
};
|
|
596
|
-
return
|
|
585
|
+
return response;
|
|
597
586
|
};
|
|
598
587
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
599
588
|
const parsedOutput = {
|
|
@@ -616,10 +605,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
616
605
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
617
606
|
default:
|
|
618
607
|
const parsedBody = parsedOutput.body;
|
|
619
|
-
throwDefaultError({
|
|
608
|
+
return throwDefaultError({
|
|
620
609
|
output,
|
|
621
610
|
parsedBody,
|
|
622
|
-
exceptionCtor: __BaseException,
|
|
623
611
|
errorCode,
|
|
624
612
|
});
|
|
625
613
|
}
|
|
@@ -632,7 +620,7 @@ export const de_UpdateScheduledQueryCommand = async (output, context) => {
|
|
|
632
620
|
const response = {
|
|
633
621
|
$metadata: deserializeMetadata(output),
|
|
634
622
|
};
|
|
635
|
-
return
|
|
623
|
+
return response;
|
|
636
624
|
};
|
|
637
625
|
const de_UpdateScheduledQueryCommandError = async (output, context) => {
|
|
638
626
|
const parsedOutput = {
|
|
@@ -661,17 +649,16 @@ const de_UpdateScheduledQueryCommandError = async (output, context) => {
|
|
|
661
649
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
662
650
|
default:
|
|
663
651
|
const parsedBody = parsedOutput.body;
|
|
664
|
-
throwDefaultError({
|
|
652
|
+
return throwDefaultError({
|
|
665
653
|
output,
|
|
666
654
|
parsedBody,
|
|
667
|
-
exceptionCtor: __BaseException,
|
|
668
655
|
errorCode,
|
|
669
656
|
});
|
|
670
657
|
}
|
|
671
658
|
};
|
|
672
659
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
673
660
|
const body = parsedOutput.body;
|
|
674
|
-
const deserialized =
|
|
661
|
+
const deserialized = _json(body);
|
|
675
662
|
const exception = new AccessDeniedException({
|
|
676
663
|
$metadata: deserializeMetadata(parsedOutput),
|
|
677
664
|
...deserialized,
|
|
@@ -680,7 +667,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
680
667
|
};
|
|
681
668
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
682
669
|
const body = parsedOutput.body;
|
|
683
|
-
const deserialized =
|
|
670
|
+
const deserialized = _json(body);
|
|
684
671
|
const exception = new ConflictException({
|
|
685
672
|
$metadata: deserializeMetadata(parsedOutput),
|
|
686
673
|
...deserialized,
|
|
@@ -689,7 +676,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
689
676
|
};
|
|
690
677
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
691
678
|
const body = parsedOutput.body;
|
|
692
|
-
const deserialized =
|
|
679
|
+
const deserialized = _json(body);
|
|
693
680
|
const exception = new InternalServerException({
|
|
694
681
|
$metadata: deserializeMetadata(parsedOutput),
|
|
695
682
|
...deserialized,
|
|
@@ -698,7 +685,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
698
685
|
};
|
|
699
686
|
const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
|
|
700
687
|
const body = parsedOutput.body;
|
|
701
|
-
const deserialized =
|
|
688
|
+
const deserialized = _json(body);
|
|
702
689
|
const exception = new InvalidEndpointException({
|
|
703
690
|
$metadata: deserializeMetadata(parsedOutput),
|
|
704
691
|
...deserialized,
|
|
@@ -707,7 +694,7 @@ const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
|
|
|
707
694
|
};
|
|
708
695
|
const de_QueryExecutionExceptionRes = async (parsedOutput, context) => {
|
|
709
696
|
const body = parsedOutput.body;
|
|
710
|
-
const deserialized =
|
|
697
|
+
const deserialized = _json(body);
|
|
711
698
|
const exception = new QueryExecutionException({
|
|
712
699
|
$metadata: deserializeMetadata(parsedOutput),
|
|
713
700
|
...deserialized,
|
|
@@ -716,7 +703,7 @@ const de_QueryExecutionExceptionRes = async (parsedOutput, context) => {
|
|
|
716
703
|
};
|
|
717
704
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
718
705
|
const body = parsedOutput.body;
|
|
719
|
-
const deserialized =
|
|
706
|
+
const deserialized = _json(body);
|
|
720
707
|
const exception = new ResourceNotFoundException({
|
|
721
708
|
$metadata: deserializeMetadata(parsedOutput),
|
|
722
709
|
...deserialized,
|
|
@@ -725,7 +712,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
725
712
|
};
|
|
726
713
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
727
714
|
const body = parsedOutput.body;
|
|
728
|
-
const deserialized =
|
|
715
|
+
const deserialized = _json(body);
|
|
729
716
|
const exception = new ServiceQuotaExceededException({
|
|
730
717
|
$metadata: deserializeMetadata(parsedOutput),
|
|
731
718
|
...deserialized,
|
|
@@ -734,7 +721,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
734
721
|
};
|
|
735
722
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
736
723
|
const body = parsedOutput.body;
|
|
737
|
-
const deserialized =
|
|
724
|
+
const deserialized = _json(body);
|
|
738
725
|
const exception = new ThrottlingException({
|
|
739
726
|
$metadata: deserializeMetadata(parsedOutput),
|
|
740
727
|
...deserialized,
|
|
@@ -743,725 +730,230 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
743
730
|
};
|
|
744
731
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
745
732
|
const body = parsedOutput.body;
|
|
746
|
-
const deserialized =
|
|
733
|
+
const deserialized = _json(body);
|
|
747
734
|
const exception = new ValidationException({
|
|
748
735
|
$metadata: deserializeMetadata(parsedOutput),
|
|
749
736
|
...deserialized,
|
|
750
737
|
});
|
|
751
738
|
return __decorateServiceException(exception, body);
|
|
752
739
|
};
|
|
753
|
-
const se_CancelQueryRequest = (input, context) => {
|
|
754
|
-
return {
|
|
755
|
-
...(input.QueryId != null && { QueryId: input.QueryId }),
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
740
|
const se_CreateScheduledQueryRequest = (input, context) => {
|
|
759
|
-
return {
|
|
760
|
-
ClientToken:
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
...(input.ScheduleConfiguration != null && {
|
|
771
|
-
ScheduleConfiguration: se_ScheduleConfiguration(input.ScheduleConfiguration, context),
|
|
772
|
-
}),
|
|
773
|
-
...(input.ScheduledQueryExecutionRoleArn != null && {
|
|
774
|
-
ScheduledQueryExecutionRoleArn: input.ScheduledQueryExecutionRoleArn,
|
|
775
|
-
}),
|
|
776
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
777
|
-
...(input.TargetConfiguration != null && {
|
|
778
|
-
TargetConfiguration: se_TargetConfiguration(input.TargetConfiguration, context),
|
|
779
|
-
}),
|
|
780
|
-
};
|
|
781
|
-
};
|
|
782
|
-
const se_DeleteScheduledQueryRequest = (input, context) => {
|
|
783
|
-
return {
|
|
784
|
-
...(input.ScheduledQueryArn != null && { ScheduledQueryArn: input.ScheduledQueryArn }),
|
|
785
|
-
};
|
|
786
|
-
};
|
|
787
|
-
const se_DescribeEndpointsRequest = (input, context) => {
|
|
788
|
-
return {};
|
|
789
|
-
};
|
|
790
|
-
const se_DescribeScheduledQueryRequest = (input, context) => {
|
|
791
|
-
return {
|
|
792
|
-
...(input.ScheduledQueryArn != null && { ScheduledQueryArn: input.ScheduledQueryArn }),
|
|
793
|
-
};
|
|
794
|
-
};
|
|
795
|
-
const se_DimensionMapping = (input, context) => {
|
|
796
|
-
return {
|
|
797
|
-
...(input.DimensionValueType != null && { DimensionValueType: input.DimensionValueType }),
|
|
798
|
-
...(input.Name != null && { Name: input.Name }),
|
|
799
|
-
};
|
|
800
|
-
};
|
|
801
|
-
const se_DimensionMappingList = (input, context) => {
|
|
802
|
-
return input
|
|
803
|
-
.filter((e) => e != null)
|
|
804
|
-
.map((entry) => {
|
|
805
|
-
return se_DimensionMapping(entry, context);
|
|
741
|
+
return take(input, {
|
|
742
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
743
|
+
ErrorReportConfiguration: _json,
|
|
744
|
+
KmsKeyId: [],
|
|
745
|
+
Name: [],
|
|
746
|
+
NotificationConfiguration: _json,
|
|
747
|
+
QueryString: [],
|
|
748
|
+
ScheduleConfiguration: _json,
|
|
749
|
+
ScheduledQueryExecutionRoleArn: [],
|
|
750
|
+
Tags: _json,
|
|
751
|
+
TargetConfiguration: _json,
|
|
806
752
|
});
|
|
807
753
|
};
|
|
808
|
-
const se_ErrorReportConfiguration = (input, context) => {
|
|
809
|
-
return {
|
|
810
|
-
...(input.S3Configuration != null && { S3Configuration: se_S3Configuration(input.S3Configuration, context) }),
|
|
811
|
-
};
|
|
812
|
-
};
|
|
813
754
|
const se_ExecuteScheduledQueryRequest = (input, context) => {
|
|
814
|
-
return {
|
|
815
|
-
ClientToken:
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
};
|
|
819
|
-
};
|
|
820
|
-
const se_ListScheduledQueriesRequest = (input, context) => {
|
|
821
|
-
return {
|
|
822
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
823
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
827
|
-
return {
|
|
828
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
829
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
830
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
831
|
-
};
|
|
832
|
-
};
|
|
833
|
-
const se_MixedMeasureMapping = (input, context) => {
|
|
834
|
-
return {
|
|
835
|
-
...(input.MeasureName != null && { MeasureName: input.MeasureName }),
|
|
836
|
-
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
837
|
-
...(input.MultiMeasureAttributeMappings != null && {
|
|
838
|
-
MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
839
|
-
}),
|
|
840
|
-
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
841
|
-
...(input.TargetMeasureName != null && { TargetMeasureName: input.TargetMeasureName }),
|
|
842
|
-
};
|
|
843
|
-
};
|
|
844
|
-
const se_MixedMeasureMappingList = (input, context) => {
|
|
845
|
-
return input
|
|
846
|
-
.filter((e) => e != null)
|
|
847
|
-
.map((entry) => {
|
|
848
|
-
return se_MixedMeasureMapping(entry, context);
|
|
849
|
-
});
|
|
850
|
-
};
|
|
851
|
-
const se_MultiMeasureAttributeMapping = (input, context) => {
|
|
852
|
-
return {
|
|
853
|
-
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
854
|
-
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
855
|
-
...(input.TargetMultiMeasureAttributeName != null && {
|
|
856
|
-
TargetMultiMeasureAttributeName: input.TargetMultiMeasureAttributeName,
|
|
857
|
-
}),
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
const se_MultiMeasureAttributeMappingList = (input, context) => {
|
|
861
|
-
return input
|
|
862
|
-
.filter((e) => e != null)
|
|
863
|
-
.map((entry) => {
|
|
864
|
-
return se_MultiMeasureAttributeMapping(entry, context);
|
|
755
|
+
return take(input, {
|
|
756
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
757
|
+
InvocationTime: (_) => Math.round(_.getTime() / 1000),
|
|
758
|
+
ScheduledQueryArn: [],
|
|
865
759
|
});
|
|
866
760
|
};
|
|
867
|
-
const se_MultiMeasureMappings = (input, context) => {
|
|
868
|
-
return {
|
|
869
|
-
...(input.MultiMeasureAttributeMappings != null && {
|
|
870
|
-
MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
871
|
-
}),
|
|
872
|
-
...(input.TargetMultiMeasureName != null && { TargetMultiMeasureName: input.TargetMultiMeasureName }),
|
|
873
|
-
};
|
|
874
|
-
};
|
|
875
|
-
const se_NotificationConfiguration = (input, context) => {
|
|
876
|
-
return {
|
|
877
|
-
...(input.SnsConfiguration != null && { SnsConfiguration: se_SnsConfiguration(input.SnsConfiguration, context) }),
|
|
878
|
-
};
|
|
879
|
-
};
|
|
880
|
-
const se_PrepareQueryRequest = (input, context) => {
|
|
881
|
-
return {
|
|
882
|
-
...(input.QueryString != null && { QueryString: input.QueryString }),
|
|
883
|
-
...(input.ValidateOnly != null && { ValidateOnly: input.ValidateOnly }),
|
|
884
|
-
};
|
|
885
|
-
};
|
|
886
761
|
const se_QueryRequest = (input, context) => {
|
|
887
|
-
return {
|
|
888
|
-
ClientToken:
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
};
|
|
893
|
-
};
|
|
894
|
-
const se_S3Configuration = (input, context) => {
|
|
895
|
-
return {
|
|
896
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
897
|
-
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
898
|
-
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
899
|
-
};
|
|
900
|
-
};
|
|
901
|
-
const se_ScheduleConfiguration = (input, context) => {
|
|
902
|
-
return {
|
|
903
|
-
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
904
|
-
};
|
|
905
|
-
};
|
|
906
|
-
const se_SnsConfiguration = (input, context) => {
|
|
907
|
-
return {
|
|
908
|
-
...(input.TopicArn != null && { TopicArn: input.TopicArn }),
|
|
909
|
-
};
|
|
910
|
-
};
|
|
911
|
-
const se_Tag = (input, context) => {
|
|
912
|
-
return {
|
|
913
|
-
...(input.Key != null && { Key: input.Key }),
|
|
914
|
-
...(input.Value != null && { Value: input.Value }),
|
|
915
|
-
};
|
|
916
|
-
};
|
|
917
|
-
const se_TagKeyList = (input, context) => {
|
|
918
|
-
return input
|
|
919
|
-
.filter((e) => e != null)
|
|
920
|
-
.map((entry) => {
|
|
921
|
-
return entry;
|
|
922
|
-
});
|
|
923
|
-
};
|
|
924
|
-
const se_TagList = (input, context) => {
|
|
925
|
-
return input
|
|
926
|
-
.filter((e) => e != null)
|
|
927
|
-
.map((entry) => {
|
|
928
|
-
return se_Tag(entry, context);
|
|
762
|
+
return take(input, {
|
|
763
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
764
|
+
MaxRows: [],
|
|
765
|
+
NextToken: [],
|
|
766
|
+
QueryString: [],
|
|
929
767
|
});
|
|
930
768
|
};
|
|
931
|
-
const se_TagResourceRequest = (input, context) => {
|
|
932
|
-
return {
|
|
933
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
934
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
935
|
-
};
|
|
936
|
-
};
|
|
937
|
-
const se_TargetConfiguration = (input, context) => {
|
|
938
|
-
return {
|
|
939
|
-
...(input.TimestreamConfiguration != null && {
|
|
940
|
-
TimestreamConfiguration: se_TimestreamConfiguration(input.TimestreamConfiguration, context),
|
|
941
|
-
}),
|
|
942
|
-
};
|
|
943
|
-
};
|
|
944
|
-
const se_TimestreamConfiguration = (input, context) => {
|
|
945
|
-
return {
|
|
946
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
947
|
-
...(input.DimensionMappings != null && {
|
|
948
|
-
DimensionMappings: se_DimensionMappingList(input.DimensionMappings, context),
|
|
949
|
-
}),
|
|
950
|
-
...(input.MeasureNameColumn != null && { MeasureNameColumn: input.MeasureNameColumn }),
|
|
951
|
-
...(input.MixedMeasureMappings != null && {
|
|
952
|
-
MixedMeasureMappings: se_MixedMeasureMappingList(input.MixedMeasureMappings, context),
|
|
953
|
-
}),
|
|
954
|
-
...(input.MultiMeasureMappings != null && {
|
|
955
|
-
MultiMeasureMappings: se_MultiMeasureMappings(input.MultiMeasureMappings, context),
|
|
956
|
-
}),
|
|
957
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
958
|
-
...(input.TimeColumn != null && { TimeColumn: input.TimeColumn }),
|
|
959
|
-
};
|
|
960
|
-
};
|
|
961
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
962
|
-
return {
|
|
963
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
964
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
965
|
-
};
|
|
966
|
-
};
|
|
967
|
-
const se_UpdateScheduledQueryRequest = (input, context) => {
|
|
968
|
-
return {
|
|
969
|
-
...(input.ScheduledQueryArn != null && { ScheduledQueryArn: input.ScheduledQueryArn }),
|
|
970
|
-
...(input.State != null && { State: input.State }),
|
|
971
|
-
};
|
|
972
|
-
};
|
|
973
|
-
const de_AccessDeniedException = (output, context) => {
|
|
974
|
-
return {
|
|
975
|
-
Message: __expectString(output.Message),
|
|
976
|
-
};
|
|
977
|
-
};
|
|
978
|
-
const de_CancelQueryResponse = (output, context) => {
|
|
979
|
-
return {
|
|
980
|
-
CancellationMessage: __expectString(output.CancellationMessage),
|
|
981
|
-
};
|
|
982
|
-
};
|
|
983
769
|
const de_ColumnInfo = (output, context) => {
|
|
984
|
-
return {
|
|
985
|
-
Name: __expectString
|
|
986
|
-
Type:
|
|
987
|
-
};
|
|
770
|
+
return take(output, {
|
|
771
|
+
Name: __expectString,
|
|
772
|
+
Type: (_) => de_Type(_, context),
|
|
773
|
+
});
|
|
988
774
|
};
|
|
989
775
|
const de_ColumnInfoList = (output, context) => {
|
|
990
776
|
const retVal = (output || [])
|
|
991
777
|
.filter((e) => e != null)
|
|
992
778
|
.map((entry) => {
|
|
993
|
-
if (entry === null) {
|
|
994
|
-
return null;
|
|
995
|
-
}
|
|
996
779
|
return de_ColumnInfo(entry, context);
|
|
997
780
|
});
|
|
998
781
|
return retVal;
|
|
999
782
|
};
|
|
1000
|
-
const de_ConflictException = (output, context) => {
|
|
1001
|
-
return {
|
|
1002
|
-
Message: __expectString(output.Message),
|
|
1003
|
-
};
|
|
1004
|
-
};
|
|
1005
|
-
const de_CreateScheduledQueryResponse = (output, context) => {
|
|
1006
|
-
return {
|
|
1007
|
-
Arn: __expectString(output.Arn),
|
|
1008
|
-
};
|
|
1009
|
-
};
|
|
1010
783
|
const de_Datum = (output, context) => {
|
|
1011
|
-
return {
|
|
1012
|
-
ArrayValue:
|
|
1013
|
-
NullValue: __expectBoolean
|
|
1014
|
-
RowValue:
|
|
1015
|
-
ScalarValue: __expectString
|
|
1016
|
-
TimeSeriesValue:
|
|
1017
|
-
};
|
|
784
|
+
return take(output, {
|
|
785
|
+
ArrayValue: (_) => de_DatumList(_, context),
|
|
786
|
+
NullValue: __expectBoolean,
|
|
787
|
+
RowValue: (_) => de_Row(_, context),
|
|
788
|
+
ScalarValue: __expectString,
|
|
789
|
+
TimeSeriesValue: (_) => de_TimeSeriesDataPointList(_, context),
|
|
790
|
+
});
|
|
1018
791
|
};
|
|
1019
792
|
const de_DatumList = (output, context) => {
|
|
1020
793
|
const retVal = (output || [])
|
|
1021
794
|
.filter((e) => e != null)
|
|
1022
795
|
.map((entry) => {
|
|
1023
|
-
if (entry === null) {
|
|
1024
|
-
return null;
|
|
1025
|
-
}
|
|
1026
796
|
return de_Datum(entry, context);
|
|
1027
797
|
});
|
|
1028
798
|
return retVal;
|
|
1029
799
|
};
|
|
1030
|
-
const de_DescribeEndpointsResponse = (output, context) => {
|
|
1031
|
-
return {
|
|
1032
|
-
Endpoints: output.Endpoints != null ? de_Endpoints(output.Endpoints, context) : undefined,
|
|
1033
|
-
};
|
|
1034
|
-
};
|
|
1035
800
|
const de_DescribeScheduledQueryResponse = (output, context) => {
|
|
1036
|
-
return {
|
|
1037
|
-
ScheduledQuery:
|
|
1038
|
-
};
|
|
1039
|
-
};
|
|
1040
|
-
const de_DimensionMapping = (output, context) => {
|
|
1041
|
-
return {
|
|
1042
|
-
DimensionValueType: __expectString(output.DimensionValueType),
|
|
1043
|
-
Name: __expectString(output.Name),
|
|
1044
|
-
};
|
|
1045
|
-
};
|
|
1046
|
-
const de_DimensionMappingList = (output, context) => {
|
|
1047
|
-
const retVal = (output || [])
|
|
1048
|
-
.filter((e) => e != null)
|
|
1049
|
-
.map((entry) => {
|
|
1050
|
-
if (entry === null) {
|
|
1051
|
-
return null;
|
|
1052
|
-
}
|
|
1053
|
-
return de_DimensionMapping(entry, context);
|
|
1054
|
-
});
|
|
1055
|
-
return retVal;
|
|
1056
|
-
};
|
|
1057
|
-
const de_Endpoint = (output, context) => {
|
|
1058
|
-
return {
|
|
1059
|
-
Address: __expectString(output.Address),
|
|
1060
|
-
CachePeriodInMinutes: __expectLong(output.CachePeriodInMinutes),
|
|
1061
|
-
};
|
|
1062
|
-
};
|
|
1063
|
-
const de_Endpoints = (output, context) => {
|
|
1064
|
-
const retVal = (output || [])
|
|
1065
|
-
.filter((e) => e != null)
|
|
1066
|
-
.map((entry) => {
|
|
1067
|
-
if (entry === null) {
|
|
1068
|
-
return null;
|
|
1069
|
-
}
|
|
1070
|
-
return de_Endpoint(entry, context);
|
|
801
|
+
return take(output, {
|
|
802
|
+
ScheduledQuery: (_) => de_ScheduledQueryDescription(_, context),
|
|
1071
803
|
});
|
|
1072
|
-
return retVal;
|
|
1073
|
-
};
|
|
1074
|
-
const de_ErrorReportConfiguration = (output, context) => {
|
|
1075
|
-
return {
|
|
1076
|
-
S3Configuration: output.S3Configuration != null ? de_S3Configuration(output.S3Configuration, context) : undefined,
|
|
1077
|
-
};
|
|
1078
|
-
};
|
|
1079
|
-
const de_ErrorReportLocation = (output, context) => {
|
|
1080
|
-
return {
|
|
1081
|
-
S3ReportLocation: output.S3ReportLocation != null ? de_S3ReportLocation(output.S3ReportLocation, context) : undefined,
|
|
1082
|
-
};
|
|
1083
|
-
};
|
|
1084
|
-
const de_ExecutionStats = (output, context) => {
|
|
1085
|
-
return {
|
|
1086
|
-
BytesMetered: __expectLong(output.BytesMetered),
|
|
1087
|
-
DataWrites: __expectLong(output.DataWrites),
|
|
1088
|
-
ExecutionTimeInMillis: __expectLong(output.ExecutionTimeInMillis),
|
|
1089
|
-
QueryResultRows: __expectLong(output.QueryResultRows),
|
|
1090
|
-
RecordsIngested: __expectLong(output.RecordsIngested),
|
|
1091
|
-
};
|
|
1092
|
-
};
|
|
1093
|
-
const de_InternalServerException = (output, context) => {
|
|
1094
|
-
return {
|
|
1095
|
-
Message: __expectString(output.Message),
|
|
1096
|
-
};
|
|
1097
|
-
};
|
|
1098
|
-
const de_InvalidEndpointException = (output, context) => {
|
|
1099
|
-
return {
|
|
1100
|
-
Message: __expectString(output.Message),
|
|
1101
|
-
};
|
|
1102
804
|
};
|
|
1103
805
|
const de_ListScheduledQueriesResponse = (output, context) => {
|
|
1104
|
-
return {
|
|
1105
|
-
NextToken: __expectString
|
|
1106
|
-
ScheduledQueries:
|
|
1107
|
-
};
|
|
1108
|
-
};
|
|
1109
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1110
|
-
return {
|
|
1111
|
-
NextToken: __expectString(output.NextToken),
|
|
1112
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1113
|
-
};
|
|
1114
|
-
};
|
|
1115
|
-
const de_MixedMeasureMapping = (output, context) => {
|
|
1116
|
-
return {
|
|
1117
|
-
MeasureName: __expectString(output.MeasureName),
|
|
1118
|
-
MeasureValueType: __expectString(output.MeasureValueType),
|
|
1119
|
-
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1120
|
-
? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1121
|
-
: undefined,
|
|
1122
|
-
SourceColumn: __expectString(output.SourceColumn),
|
|
1123
|
-
TargetMeasureName: __expectString(output.TargetMeasureName),
|
|
1124
|
-
};
|
|
1125
|
-
};
|
|
1126
|
-
const de_MixedMeasureMappingList = (output, context) => {
|
|
1127
|
-
const retVal = (output || [])
|
|
1128
|
-
.filter((e) => e != null)
|
|
1129
|
-
.map((entry) => {
|
|
1130
|
-
if (entry === null) {
|
|
1131
|
-
return null;
|
|
1132
|
-
}
|
|
1133
|
-
return de_MixedMeasureMapping(entry, context);
|
|
806
|
+
return take(output, {
|
|
807
|
+
NextToken: __expectString,
|
|
808
|
+
ScheduledQueries: (_) => de_ScheduledQueryList(_, context),
|
|
1134
809
|
});
|
|
1135
|
-
return retVal;
|
|
1136
|
-
};
|
|
1137
|
-
const de_MultiMeasureAttributeMapping = (output, context) => {
|
|
1138
|
-
return {
|
|
1139
|
-
MeasureValueType: __expectString(output.MeasureValueType),
|
|
1140
|
-
SourceColumn: __expectString(output.SourceColumn),
|
|
1141
|
-
TargetMultiMeasureAttributeName: __expectString(output.TargetMultiMeasureAttributeName),
|
|
1142
|
-
};
|
|
1143
|
-
};
|
|
1144
|
-
const de_MultiMeasureAttributeMappingList = (output, context) => {
|
|
1145
|
-
const retVal = (output || [])
|
|
1146
|
-
.filter((e) => e != null)
|
|
1147
|
-
.map((entry) => {
|
|
1148
|
-
if (entry === null) {
|
|
1149
|
-
return null;
|
|
1150
|
-
}
|
|
1151
|
-
return de_MultiMeasureAttributeMapping(entry, context);
|
|
1152
|
-
});
|
|
1153
|
-
return retVal;
|
|
1154
|
-
};
|
|
1155
|
-
const de_MultiMeasureMappings = (output, context) => {
|
|
1156
|
-
return {
|
|
1157
|
-
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1158
|
-
? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1159
|
-
: undefined,
|
|
1160
|
-
TargetMultiMeasureName: __expectString(output.TargetMultiMeasureName),
|
|
1161
|
-
};
|
|
1162
|
-
};
|
|
1163
|
-
const de_NotificationConfiguration = (output, context) => {
|
|
1164
|
-
return {
|
|
1165
|
-
SnsConfiguration: output.SnsConfiguration != null ? de_SnsConfiguration(output.SnsConfiguration, context) : undefined,
|
|
1166
|
-
};
|
|
1167
810
|
};
|
|
1168
811
|
const de_ParameterMapping = (output, context) => {
|
|
1169
|
-
return {
|
|
1170
|
-
Name: __expectString
|
|
1171
|
-
Type:
|
|
1172
|
-
};
|
|
812
|
+
return take(output, {
|
|
813
|
+
Name: __expectString,
|
|
814
|
+
Type: (_) => de_Type(_, context),
|
|
815
|
+
});
|
|
1173
816
|
};
|
|
1174
817
|
const de_ParameterMappingList = (output, context) => {
|
|
1175
818
|
const retVal = (output || [])
|
|
1176
819
|
.filter((e) => e != null)
|
|
1177
820
|
.map((entry) => {
|
|
1178
|
-
if (entry === null) {
|
|
1179
|
-
return null;
|
|
1180
|
-
}
|
|
1181
821
|
return de_ParameterMapping(entry, context);
|
|
1182
822
|
});
|
|
1183
823
|
return retVal;
|
|
1184
824
|
};
|
|
1185
825
|
const de_PrepareQueryResponse = (output, context) => {
|
|
1186
|
-
return {
|
|
1187
|
-
Columns:
|
|
1188
|
-
Parameters:
|
|
1189
|
-
QueryString: __expectString
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
|
-
const de_QueryExecutionException = (output, context) => {
|
|
1193
|
-
return {
|
|
1194
|
-
Message: __expectString(output.Message),
|
|
1195
|
-
};
|
|
826
|
+
return take(output, {
|
|
827
|
+
Columns: (_) => de_SelectColumnList(_, context),
|
|
828
|
+
Parameters: (_) => de_ParameterMappingList(_, context),
|
|
829
|
+
QueryString: __expectString,
|
|
830
|
+
});
|
|
1196
831
|
};
|
|
1197
832
|
const de_QueryResponse = (output, context) => {
|
|
1198
|
-
return {
|
|
1199
|
-
ColumnInfo:
|
|
1200
|
-
NextToken: __expectString
|
|
1201
|
-
QueryId: __expectString
|
|
1202
|
-
QueryStatus:
|
|
1203
|
-
Rows:
|
|
1204
|
-
};
|
|
833
|
+
return take(output, {
|
|
834
|
+
ColumnInfo: (_) => de_ColumnInfoList(_, context),
|
|
835
|
+
NextToken: __expectString,
|
|
836
|
+
QueryId: __expectString,
|
|
837
|
+
QueryStatus: (_) => de_QueryStatus(_, context),
|
|
838
|
+
Rows: (_) => de_RowList(_, context),
|
|
839
|
+
});
|
|
1205
840
|
};
|
|
1206
841
|
const de_QueryStatus = (output, context) => {
|
|
1207
|
-
return {
|
|
1208
|
-
CumulativeBytesMetered: __expectLong
|
|
1209
|
-
CumulativeBytesScanned: __expectLong
|
|
1210
|
-
ProgressPercentage: __limitedParseDouble
|
|
1211
|
-
};
|
|
1212
|
-
};
|
|
1213
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1214
|
-
return {
|
|
1215
|
-
Message: __expectString(output.Message),
|
|
1216
|
-
ScheduledQueryArn: __expectString(output.ScheduledQueryArn),
|
|
1217
|
-
};
|
|
842
|
+
return take(output, {
|
|
843
|
+
CumulativeBytesMetered: __expectLong,
|
|
844
|
+
CumulativeBytesScanned: __expectLong,
|
|
845
|
+
ProgressPercentage: __limitedParseDouble,
|
|
846
|
+
});
|
|
1218
847
|
};
|
|
1219
848
|
const de_Row = (output, context) => {
|
|
1220
|
-
return {
|
|
1221
|
-
Data:
|
|
1222
|
-
};
|
|
849
|
+
return take(output, {
|
|
850
|
+
Data: (_) => de_DatumList(_, context),
|
|
851
|
+
});
|
|
1223
852
|
};
|
|
1224
853
|
const de_RowList = (output, context) => {
|
|
1225
854
|
const retVal = (output || [])
|
|
1226
855
|
.filter((e) => e != null)
|
|
1227
856
|
.map((entry) => {
|
|
1228
|
-
if (entry === null) {
|
|
1229
|
-
return null;
|
|
1230
|
-
}
|
|
1231
857
|
return de_Row(entry, context);
|
|
1232
858
|
});
|
|
1233
859
|
return retVal;
|
|
1234
860
|
};
|
|
1235
|
-
const de_S3Configuration = (output, context) => {
|
|
1236
|
-
return {
|
|
1237
|
-
BucketName: __expectString(output.BucketName),
|
|
1238
|
-
EncryptionOption: __expectString(output.EncryptionOption),
|
|
1239
|
-
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1240
|
-
};
|
|
1241
|
-
};
|
|
1242
|
-
const de_S3ReportLocation = (output, context) => {
|
|
1243
|
-
return {
|
|
1244
|
-
BucketName: __expectString(output.BucketName),
|
|
1245
|
-
ObjectKey: __expectString(output.ObjectKey),
|
|
1246
|
-
};
|
|
1247
|
-
};
|
|
1248
|
-
const de_ScheduleConfiguration = (output, context) => {
|
|
1249
|
-
return {
|
|
1250
|
-
ScheduleExpression: __expectString(output.ScheduleExpression),
|
|
1251
|
-
};
|
|
1252
|
-
};
|
|
1253
861
|
const de_ScheduledQuery = (output, context) => {
|
|
1254
|
-
return {
|
|
1255
|
-
Arn: __expectString
|
|
1256
|
-
CreationTime:
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.NextInvocationTime)))
|
|
1266
|
-
: undefined,
|
|
1267
|
-
PreviousInvocationTime: output.PreviousInvocationTime != null
|
|
1268
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.PreviousInvocationTime)))
|
|
1269
|
-
: undefined,
|
|
1270
|
-
State: __expectString(output.State),
|
|
1271
|
-
TargetDestination: output.TargetDestination != null ? de_TargetDestination(output.TargetDestination, context) : undefined,
|
|
1272
|
-
};
|
|
862
|
+
return take(output, {
|
|
863
|
+
Arn: __expectString,
|
|
864
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
865
|
+
ErrorReportConfiguration: _json,
|
|
866
|
+
LastRunStatus: __expectString,
|
|
867
|
+
Name: __expectString,
|
|
868
|
+
NextInvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
869
|
+
PreviousInvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
870
|
+
State: __expectString,
|
|
871
|
+
TargetDestination: _json,
|
|
872
|
+
});
|
|
1273
873
|
};
|
|
1274
874
|
const de_ScheduledQueryDescription = (output, context) => {
|
|
1275
|
-
return {
|
|
1276
|
-
Arn: __expectString
|
|
1277
|
-
CreationTime:
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
PreviousInvocationTime: output.PreviousInvocationTime != null
|
|
1293
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.PreviousInvocationTime)))
|
|
1294
|
-
: undefined,
|
|
1295
|
-
QueryString: __expectString(output.QueryString),
|
|
1296
|
-
RecentlyFailedRuns: output.RecentlyFailedRuns != null
|
|
1297
|
-
? de_ScheduledQueryRunSummaryList(output.RecentlyFailedRuns, context)
|
|
1298
|
-
: undefined,
|
|
1299
|
-
ScheduleConfiguration: output.ScheduleConfiguration != null
|
|
1300
|
-
? de_ScheduleConfiguration(output.ScheduleConfiguration, context)
|
|
1301
|
-
: undefined,
|
|
1302
|
-
ScheduledQueryExecutionRoleArn: __expectString(output.ScheduledQueryExecutionRoleArn),
|
|
1303
|
-
State: __expectString(output.State),
|
|
1304
|
-
TargetConfiguration: output.TargetConfiguration != null ? de_TargetConfiguration(output.TargetConfiguration, context) : undefined,
|
|
1305
|
-
};
|
|
875
|
+
return take(output, {
|
|
876
|
+
Arn: __expectString,
|
|
877
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
878
|
+
ErrorReportConfiguration: _json,
|
|
879
|
+
KmsKeyId: __expectString,
|
|
880
|
+
LastRunSummary: (_) => de_ScheduledQueryRunSummary(_, context),
|
|
881
|
+
Name: __expectString,
|
|
882
|
+
NextInvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
883
|
+
NotificationConfiguration: _json,
|
|
884
|
+
PreviousInvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
885
|
+
QueryString: __expectString,
|
|
886
|
+
RecentlyFailedRuns: (_) => de_ScheduledQueryRunSummaryList(_, context),
|
|
887
|
+
ScheduleConfiguration: _json,
|
|
888
|
+
ScheduledQueryExecutionRoleArn: __expectString,
|
|
889
|
+
State: __expectString,
|
|
890
|
+
TargetConfiguration: _json,
|
|
891
|
+
});
|
|
1306
892
|
};
|
|
1307
893
|
const de_ScheduledQueryList = (output, context) => {
|
|
1308
894
|
const retVal = (output || [])
|
|
1309
895
|
.filter((e) => e != null)
|
|
1310
896
|
.map((entry) => {
|
|
1311
|
-
if (entry === null) {
|
|
1312
|
-
return null;
|
|
1313
|
-
}
|
|
1314
897
|
return de_ScheduledQuery(entry, context);
|
|
1315
898
|
});
|
|
1316
899
|
return retVal;
|
|
1317
900
|
};
|
|
1318
901
|
const de_ScheduledQueryRunSummary = (output, context) => {
|
|
1319
|
-
return {
|
|
1320
|
-
ErrorReportLocation:
|
|
1321
|
-
ExecutionStats:
|
|
1322
|
-
FailureReason: __expectString
|
|
1323
|
-
InvocationTime:
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
TriggerTime: output.TriggerTime != null
|
|
1328
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TriggerTime)))
|
|
1329
|
-
: undefined,
|
|
1330
|
-
};
|
|
902
|
+
return take(output, {
|
|
903
|
+
ErrorReportLocation: _json,
|
|
904
|
+
ExecutionStats: _json,
|
|
905
|
+
FailureReason: __expectString,
|
|
906
|
+
InvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
907
|
+
RunStatus: __expectString,
|
|
908
|
+
TriggerTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
909
|
+
});
|
|
1331
910
|
};
|
|
1332
911
|
const de_ScheduledQueryRunSummaryList = (output, context) => {
|
|
1333
912
|
const retVal = (output || [])
|
|
1334
913
|
.filter((e) => e != null)
|
|
1335
914
|
.map((entry) => {
|
|
1336
|
-
if (entry === null) {
|
|
1337
|
-
return null;
|
|
1338
|
-
}
|
|
1339
915
|
return de_ScheduledQueryRunSummary(entry, context);
|
|
1340
916
|
});
|
|
1341
917
|
return retVal;
|
|
1342
918
|
};
|
|
1343
919
|
const de_SelectColumn = (output, context) => {
|
|
1344
|
-
return {
|
|
1345
|
-
Aliased: __expectBoolean
|
|
1346
|
-
DatabaseName: __expectString
|
|
1347
|
-
Name: __expectString
|
|
1348
|
-
TableName: __expectString
|
|
1349
|
-
Type:
|
|
1350
|
-
};
|
|
920
|
+
return take(output, {
|
|
921
|
+
Aliased: __expectBoolean,
|
|
922
|
+
DatabaseName: __expectString,
|
|
923
|
+
Name: __expectString,
|
|
924
|
+
TableName: __expectString,
|
|
925
|
+
Type: (_) => de_Type(_, context),
|
|
926
|
+
});
|
|
1351
927
|
};
|
|
1352
928
|
const de_SelectColumnList = (output, context) => {
|
|
1353
929
|
const retVal = (output || [])
|
|
1354
930
|
.filter((e) => e != null)
|
|
1355
931
|
.map((entry) => {
|
|
1356
|
-
if (entry === null) {
|
|
1357
|
-
return null;
|
|
1358
|
-
}
|
|
1359
932
|
return de_SelectColumn(entry, context);
|
|
1360
933
|
});
|
|
1361
934
|
return retVal;
|
|
1362
935
|
};
|
|
1363
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
1364
|
-
return {
|
|
1365
|
-
Message: __expectString(output.Message),
|
|
1366
|
-
};
|
|
1367
|
-
};
|
|
1368
|
-
const de_SnsConfiguration = (output, context) => {
|
|
1369
|
-
return {
|
|
1370
|
-
TopicArn: __expectString(output.TopicArn),
|
|
1371
|
-
};
|
|
1372
|
-
};
|
|
1373
|
-
const de_Tag = (output, context) => {
|
|
1374
|
-
return {
|
|
1375
|
-
Key: __expectString(output.Key),
|
|
1376
|
-
Value: __expectString(output.Value),
|
|
1377
|
-
};
|
|
1378
|
-
};
|
|
1379
|
-
const de_TagList = (output, context) => {
|
|
1380
|
-
const retVal = (output || [])
|
|
1381
|
-
.filter((e) => e != null)
|
|
1382
|
-
.map((entry) => {
|
|
1383
|
-
if (entry === null) {
|
|
1384
|
-
return null;
|
|
1385
|
-
}
|
|
1386
|
-
return de_Tag(entry, context);
|
|
1387
|
-
});
|
|
1388
|
-
return retVal;
|
|
1389
|
-
};
|
|
1390
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1391
|
-
return {};
|
|
1392
|
-
};
|
|
1393
|
-
const de_TargetConfiguration = (output, context) => {
|
|
1394
|
-
return {
|
|
1395
|
-
TimestreamConfiguration: output.TimestreamConfiguration != null
|
|
1396
|
-
? de_TimestreamConfiguration(output.TimestreamConfiguration, context)
|
|
1397
|
-
: undefined,
|
|
1398
|
-
};
|
|
1399
|
-
};
|
|
1400
|
-
const de_TargetDestination = (output, context) => {
|
|
1401
|
-
return {
|
|
1402
|
-
TimestreamDestination: output.TimestreamDestination != null
|
|
1403
|
-
? de_TimestreamDestination(output.TimestreamDestination, context)
|
|
1404
|
-
: undefined,
|
|
1405
|
-
};
|
|
1406
|
-
};
|
|
1407
|
-
const de_ThrottlingException = (output, context) => {
|
|
1408
|
-
return {
|
|
1409
|
-
Message: __expectString(output.Message),
|
|
1410
|
-
};
|
|
1411
|
-
};
|
|
1412
936
|
const de_TimeSeriesDataPoint = (output, context) => {
|
|
1413
|
-
return {
|
|
1414
|
-
Time: __expectString
|
|
1415
|
-
Value:
|
|
1416
|
-
};
|
|
937
|
+
return take(output, {
|
|
938
|
+
Time: __expectString,
|
|
939
|
+
Value: (_) => de_Datum(_, context),
|
|
940
|
+
});
|
|
1417
941
|
};
|
|
1418
942
|
const de_TimeSeriesDataPointList = (output, context) => {
|
|
1419
943
|
const retVal = (output || [])
|
|
1420
944
|
.filter((e) => e != null)
|
|
1421
945
|
.map((entry) => {
|
|
1422
|
-
if (entry === null) {
|
|
1423
|
-
return null;
|
|
1424
|
-
}
|
|
1425
946
|
return de_TimeSeriesDataPoint(entry, context);
|
|
1426
947
|
});
|
|
1427
948
|
return retVal;
|
|
1428
949
|
};
|
|
1429
|
-
const de_TimestreamConfiguration = (output, context) => {
|
|
1430
|
-
return {
|
|
1431
|
-
DatabaseName: __expectString(output.DatabaseName),
|
|
1432
|
-
DimensionMappings: output.DimensionMappings != null ? de_DimensionMappingList(output.DimensionMappings, context) : undefined,
|
|
1433
|
-
MeasureNameColumn: __expectString(output.MeasureNameColumn),
|
|
1434
|
-
MixedMeasureMappings: output.MixedMeasureMappings != null
|
|
1435
|
-
? de_MixedMeasureMappingList(output.MixedMeasureMappings, context)
|
|
1436
|
-
: undefined,
|
|
1437
|
-
MultiMeasureMappings: output.MultiMeasureMappings != null ? de_MultiMeasureMappings(output.MultiMeasureMappings, context) : undefined,
|
|
1438
|
-
TableName: __expectString(output.TableName),
|
|
1439
|
-
TimeColumn: __expectString(output.TimeColumn),
|
|
1440
|
-
};
|
|
1441
|
-
};
|
|
1442
|
-
const de_TimestreamDestination = (output, context) => {
|
|
1443
|
-
return {
|
|
1444
|
-
DatabaseName: __expectString(output.DatabaseName),
|
|
1445
|
-
TableName: __expectString(output.TableName),
|
|
1446
|
-
};
|
|
1447
|
-
};
|
|
1448
950
|
const de_Type = (output, context) => {
|
|
1449
|
-
return {
|
|
1450
|
-
ArrayColumnInfo:
|
|
1451
|
-
RowColumnInfo:
|
|
1452
|
-
ScalarType: __expectString
|
|
1453
|
-
TimeSeriesMeasureValueColumnInfo:
|
|
1454
|
-
|
|
1455
|
-
: undefined,
|
|
1456
|
-
};
|
|
1457
|
-
};
|
|
1458
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1459
|
-
return {};
|
|
1460
|
-
};
|
|
1461
|
-
const de_ValidationException = (output, context) => {
|
|
1462
|
-
return {
|
|
1463
|
-
Message: __expectString(output.Message),
|
|
1464
|
-
};
|
|
951
|
+
return take(output, {
|
|
952
|
+
ArrayColumnInfo: (_) => de_ColumnInfo(_, context),
|
|
953
|
+
RowColumnInfo: (_) => de_ColumnInfoList(_, context),
|
|
954
|
+
ScalarType: __expectString,
|
|
955
|
+
TimeSeriesMeasureValueColumnInfo: (_) => de_ColumnInfo(_, context),
|
|
956
|
+
});
|
|
1465
957
|
};
|
|
1466
958
|
const deserializeMetadata = (output) => ({
|
|
1467
959
|
httpStatusCode: output.statusCode,
|
|
@@ -1476,6 +968,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1476
968
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1477
969
|
};
|
|
1478
970
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
971
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1479
972
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1480
973
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1481
974
|
const contents = {
|