@aws-sdk/client-timestream-write 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 +154 -856
- package/dist-es/protocols/Aws_json1_0.js +155 -857
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, InvalidEndpointException, RejectedRecordsException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { TimestreamWriteServiceException as __BaseException } from "../models/TimestreamWriteServiceException";
|
|
@@ -12,109 +12,109 @@ export const se_CreateBatchLoadTaskCommand = async (input, context) => {
|
|
|
12
12
|
export const se_CreateDatabaseCommand = async (input, context) => {
|
|
13
13
|
const headers = sharedHeaders("CreateDatabase");
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
15
|
+
body = JSON.stringify(_json(input));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
18
|
export const se_CreateTableCommand = async (input, context) => {
|
|
19
19
|
const headers = sharedHeaders("CreateTable");
|
|
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_DeleteDatabaseCommand = async (input, context) => {
|
|
25
25
|
const headers = sharedHeaders("DeleteDatabase");
|
|
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_DeleteTableCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("DeleteTable");
|
|
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_DescribeBatchLoadTaskCommand = async (input, context) => {
|
|
37
37
|
const headers = sharedHeaders("DescribeBatchLoadTask");
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(_json(input));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
42
|
export const se_DescribeDatabaseCommand = async (input, context) => {
|
|
43
43
|
const headers = sharedHeaders("DescribeDatabase");
|
|
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_DescribeEndpointsCommand = async (input, context) => {
|
|
49
49
|
const headers = sharedHeaders("DescribeEndpoints");
|
|
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_DescribeTableCommand = async (input, context) => {
|
|
55
55
|
const headers = sharedHeaders("DescribeTable");
|
|
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_ListBatchLoadTasksCommand = async (input, context) => {
|
|
61
61
|
const headers = sharedHeaders("ListBatchLoadTasks");
|
|
62
62
|
let body;
|
|
63
|
-
body = JSON.stringify(
|
|
63
|
+
body = JSON.stringify(_json(input));
|
|
64
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
65
|
};
|
|
66
66
|
export const se_ListDatabasesCommand = async (input, context) => {
|
|
67
67
|
const headers = sharedHeaders("ListDatabases");
|
|
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_ListTablesCommand = async (input, context) => {
|
|
73
73
|
const headers = sharedHeaders("ListTables");
|
|
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_ListTagsForResourceCommand = async (input, context) => {
|
|
79
79
|
const headers = sharedHeaders("ListTagsForResource");
|
|
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 se_ResumeBatchLoadTaskCommand = async (input, context) => {
|
|
85
85
|
const headers = sharedHeaders("ResumeBatchLoadTask");
|
|
86
86
|
let body;
|
|
87
|
-
body = JSON.stringify(
|
|
87
|
+
body = JSON.stringify(_json(input));
|
|
88
88
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
89
|
};
|
|
90
90
|
export const se_TagResourceCommand = async (input, context) => {
|
|
91
91
|
const headers = sharedHeaders("TagResource");
|
|
92
92
|
let body;
|
|
93
|
-
body = JSON.stringify(
|
|
93
|
+
body = JSON.stringify(_json(input));
|
|
94
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
95
|
};
|
|
96
96
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
97
97
|
const headers = sharedHeaders("UntagResource");
|
|
98
98
|
let body;
|
|
99
|
-
body = JSON.stringify(
|
|
99
|
+
body = JSON.stringify(_json(input));
|
|
100
100
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
101
|
};
|
|
102
102
|
export const se_UpdateDatabaseCommand = async (input, context) => {
|
|
103
103
|
const headers = sharedHeaders("UpdateDatabase");
|
|
104
104
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(_json(input));
|
|
106
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
107
|
};
|
|
108
108
|
export const se_UpdateTableCommand = async (input, context) => {
|
|
109
109
|
const headers = sharedHeaders("UpdateTable");
|
|
110
110
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify(_json(input));
|
|
112
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
113
|
};
|
|
114
114
|
export const se_WriteRecordsCommand = async (input, context) => {
|
|
115
115
|
const headers = sharedHeaders("WriteRecords");
|
|
116
116
|
let body;
|
|
117
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify(_json(input));
|
|
118
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
119
|
};
|
|
120
120
|
export const de_CreateBatchLoadTaskCommand = async (output, context) => {
|
|
@@ -123,12 +123,12 @@ export const de_CreateBatchLoadTaskCommand = async (output, context) => {
|
|
|
123
123
|
}
|
|
124
124
|
const data = await parseBody(output.body, context);
|
|
125
125
|
let contents = {};
|
|
126
|
-
contents =
|
|
126
|
+
contents = _json(data);
|
|
127
127
|
const response = {
|
|
128
128
|
$metadata: deserializeMetadata(output),
|
|
129
129
|
...contents,
|
|
130
130
|
};
|
|
131
|
-
return
|
|
131
|
+
return response;
|
|
132
132
|
};
|
|
133
133
|
const de_CreateBatchLoadTaskCommandError = async (output, context) => {
|
|
134
134
|
const parsedOutput = {
|
|
@@ -163,10 +163,9 @@ const de_CreateBatchLoadTaskCommandError = async (output, context) => {
|
|
|
163
163
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
164
164
|
default:
|
|
165
165
|
const parsedBody = parsedOutput.body;
|
|
166
|
-
throwDefaultError({
|
|
166
|
+
return throwDefaultError({
|
|
167
167
|
output,
|
|
168
168
|
parsedBody,
|
|
169
|
-
exceptionCtor: __BaseException,
|
|
170
169
|
errorCode,
|
|
171
170
|
});
|
|
172
171
|
}
|
|
@@ -182,7 +181,7 @@ export const de_CreateDatabaseCommand = async (output, context) => {
|
|
|
182
181
|
$metadata: deserializeMetadata(output),
|
|
183
182
|
...contents,
|
|
184
183
|
};
|
|
185
|
-
return
|
|
184
|
+
return response;
|
|
186
185
|
};
|
|
187
186
|
const de_CreateDatabaseCommandError = async (output, context) => {
|
|
188
187
|
const parsedOutput = {
|
|
@@ -214,10 +213,9 @@ const de_CreateDatabaseCommandError = async (output, context) => {
|
|
|
214
213
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
215
214
|
default:
|
|
216
215
|
const parsedBody = parsedOutput.body;
|
|
217
|
-
throwDefaultError({
|
|
216
|
+
return throwDefaultError({
|
|
218
217
|
output,
|
|
219
218
|
parsedBody,
|
|
220
|
-
exceptionCtor: __BaseException,
|
|
221
219
|
errorCode,
|
|
222
220
|
});
|
|
223
221
|
}
|
|
@@ -233,7 +231,7 @@ export const de_CreateTableCommand = async (output, context) => {
|
|
|
233
231
|
$metadata: deserializeMetadata(output),
|
|
234
232
|
...contents,
|
|
235
233
|
};
|
|
236
|
-
return
|
|
234
|
+
return response;
|
|
237
235
|
};
|
|
238
236
|
const de_CreateTableCommandError = async (output, context) => {
|
|
239
237
|
const parsedOutput = {
|
|
@@ -268,10 +266,9 @@ const de_CreateTableCommandError = async (output, context) => {
|
|
|
268
266
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
269
267
|
default:
|
|
270
268
|
const parsedBody = parsedOutput.body;
|
|
271
|
-
throwDefaultError({
|
|
269
|
+
return throwDefaultError({
|
|
272
270
|
output,
|
|
273
271
|
parsedBody,
|
|
274
|
-
exceptionCtor: __BaseException,
|
|
275
272
|
errorCode,
|
|
276
273
|
});
|
|
277
274
|
}
|
|
@@ -284,7 +281,7 @@ export const de_DeleteDatabaseCommand = async (output, context) => {
|
|
|
284
281
|
const response = {
|
|
285
282
|
$metadata: deserializeMetadata(output),
|
|
286
283
|
};
|
|
287
|
-
return
|
|
284
|
+
return response;
|
|
288
285
|
};
|
|
289
286
|
const de_DeleteDatabaseCommandError = async (output, context) => {
|
|
290
287
|
const parsedOutput = {
|
|
@@ -313,10 +310,9 @@ const de_DeleteDatabaseCommandError = async (output, context) => {
|
|
|
313
310
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
314
311
|
default:
|
|
315
312
|
const parsedBody = parsedOutput.body;
|
|
316
|
-
throwDefaultError({
|
|
313
|
+
return throwDefaultError({
|
|
317
314
|
output,
|
|
318
315
|
parsedBody,
|
|
319
|
-
exceptionCtor: __BaseException,
|
|
320
316
|
errorCode,
|
|
321
317
|
});
|
|
322
318
|
}
|
|
@@ -329,7 +325,7 @@ export const de_DeleteTableCommand = async (output, context) => {
|
|
|
329
325
|
const response = {
|
|
330
326
|
$metadata: deserializeMetadata(output),
|
|
331
327
|
};
|
|
332
|
-
return
|
|
328
|
+
return response;
|
|
333
329
|
};
|
|
334
330
|
const de_DeleteTableCommandError = async (output, context) => {
|
|
335
331
|
const parsedOutput = {
|
|
@@ -358,10 +354,9 @@ const de_DeleteTableCommandError = async (output, context) => {
|
|
|
358
354
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
359
355
|
default:
|
|
360
356
|
const parsedBody = parsedOutput.body;
|
|
361
|
-
throwDefaultError({
|
|
357
|
+
return throwDefaultError({
|
|
362
358
|
output,
|
|
363
359
|
parsedBody,
|
|
364
|
-
exceptionCtor: __BaseException,
|
|
365
360
|
errorCode,
|
|
366
361
|
});
|
|
367
362
|
}
|
|
@@ -377,7 +372,7 @@ export const de_DescribeBatchLoadTaskCommand = async (output, context) => {
|
|
|
377
372
|
$metadata: deserializeMetadata(output),
|
|
378
373
|
...contents,
|
|
379
374
|
};
|
|
380
|
-
return
|
|
375
|
+
return response;
|
|
381
376
|
};
|
|
382
377
|
const de_DescribeBatchLoadTaskCommandError = async (output, context) => {
|
|
383
378
|
const parsedOutput = {
|
|
@@ -403,10 +398,9 @@ const de_DescribeBatchLoadTaskCommandError = async (output, context) => {
|
|
|
403
398
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
404
399
|
default:
|
|
405
400
|
const parsedBody = parsedOutput.body;
|
|
406
|
-
throwDefaultError({
|
|
401
|
+
return throwDefaultError({
|
|
407
402
|
output,
|
|
408
403
|
parsedBody,
|
|
409
|
-
exceptionCtor: __BaseException,
|
|
410
404
|
errorCode,
|
|
411
405
|
});
|
|
412
406
|
}
|
|
@@ -422,7 +416,7 @@ export const de_DescribeDatabaseCommand = async (output, context) => {
|
|
|
422
416
|
$metadata: deserializeMetadata(output),
|
|
423
417
|
...contents,
|
|
424
418
|
};
|
|
425
|
-
return
|
|
419
|
+
return response;
|
|
426
420
|
};
|
|
427
421
|
const de_DescribeDatabaseCommandError = async (output, context) => {
|
|
428
422
|
const parsedOutput = {
|
|
@@ -451,10 +445,9 @@ const de_DescribeDatabaseCommandError = async (output, context) => {
|
|
|
451
445
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
452
446
|
default:
|
|
453
447
|
const parsedBody = parsedOutput.body;
|
|
454
|
-
throwDefaultError({
|
|
448
|
+
return throwDefaultError({
|
|
455
449
|
output,
|
|
456
450
|
parsedBody,
|
|
457
|
-
exceptionCtor: __BaseException,
|
|
458
451
|
errorCode,
|
|
459
452
|
});
|
|
460
453
|
}
|
|
@@ -465,12 +458,12 @@ export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
|
465
458
|
}
|
|
466
459
|
const data = await parseBody(output.body, context);
|
|
467
460
|
let contents = {};
|
|
468
|
-
contents =
|
|
461
|
+
contents = _json(data);
|
|
469
462
|
const response = {
|
|
470
463
|
$metadata: deserializeMetadata(output),
|
|
471
464
|
...contents,
|
|
472
465
|
};
|
|
473
|
-
return
|
|
466
|
+
return response;
|
|
474
467
|
};
|
|
475
468
|
const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
476
469
|
const parsedOutput = {
|
|
@@ -490,10 +483,9 @@ const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
|
490
483
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
491
484
|
default:
|
|
492
485
|
const parsedBody = parsedOutput.body;
|
|
493
|
-
throwDefaultError({
|
|
486
|
+
return throwDefaultError({
|
|
494
487
|
output,
|
|
495
488
|
parsedBody,
|
|
496
|
-
exceptionCtor: __BaseException,
|
|
497
489
|
errorCode,
|
|
498
490
|
});
|
|
499
491
|
}
|
|
@@ -509,7 +501,7 @@ export const de_DescribeTableCommand = async (output, context) => {
|
|
|
509
501
|
$metadata: deserializeMetadata(output),
|
|
510
502
|
...contents,
|
|
511
503
|
};
|
|
512
|
-
return
|
|
504
|
+
return response;
|
|
513
505
|
};
|
|
514
506
|
const de_DescribeTableCommandError = async (output, context) => {
|
|
515
507
|
const parsedOutput = {
|
|
@@ -538,10 +530,9 @@ const de_DescribeTableCommandError = async (output, context) => {
|
|
|
538
530
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
539
531
|
default:
|
|
540
532
|
const parsedBody = parsedOutput.body;
|
|
541
|
-
throwDefaultError({
|
|
533
|
+
return throwDefaultError({
|
|
542
534
|
output,
|
|
543
535
|
parsedBody,
|
|
544
|
-
exceptionCtor: __BaseException,
|
|
545
536
|
errorCode,
|
|
546
537
|
});
|
|
547
538
|
}
|
|
@@ -557,7 +548,7 @@ export const de_ListBatchLoadTasksCommand = async (output, context) => {
|
|
|
557
548
|
$metadata: deserializeMetadata(output),
|
|
558
549
|
...contents,
|
|
559
550
|
};
|
|
560
|
-
return
|
|
551
|
+
return response;
|
|
561
552
|
};
|
|
562
553
|
const de_ListBatchLoadTasksCommandError = async (output, context) => {
|
|
563
554
|
const parsedOutput = {
|
|
@@ -583,10 +574,9 @@ const de_ListBatchLoadTasksCommandError = async (output, context) => {
|
|
|
583
574
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
584
575
|
default:
|
|
585
576
|
const parsedBody = parsedOutput.body;
|
|
586
|
-
throwDefaultError({
|
|
577
|
+
return throwDefaultError({
|
|
587
578
|
output,
|
|
588
579
|
parsedBody,
|
|
589
|
-
exceptionCtor: __BaseException,
|
|
590
580
|
errorCode,
|
|
591
581
|
});
|
|
592
582
|
}
|
|
@@ -602,7 +592,7 @@ export const de_ListDatabasesCommand = async (output, context) => {
|
|
|
602
592
|
$metadata: deserializeMetadata(output),
|
|
603
593
|
...contents,
|
|
604
594
|
};
|
|
605
|
-
return
|
|
595
|
+
return response;
|
|
606
596
|
};
|
|
607
597
|
const de_ListDatabasesCommandError = async (output, context) => {
|
|
608
598
|
const parsedOutput = {
|
|
@@ -628,10 +618,9 @@ const de_ListDatabasesCommandError = async (output, context) => {
|
|
|
628
618
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
629
619
|
default:
|
|
630
620
|
const parsedBody = parsedOutput.body;
|
|
631
|
-
throwDefaultError({
|
|
621
|
+
return throwDefaultError({
|
|
632
622
|
output,
|
|
633
623
|
parsedBody,
|
|
634
|
-
exceptionCtor: __BaseException,
|
|
635
624
|
errorCode,
|
|
636
625
|
});
|
|
637
626
|
}
|
|
@@ -647,7 +636,7 @@ export const de_ListTablesCommand = async (output, context) => {
|
|
|
647
636
|
$metadata: deserializeMetadata(output),
|
|
648
637
|
...contents,
|
|
649
638
|
};
|
|
650
|
-
return
|
|
639
|
+
return response;
|
|
651
640
|
};
|
|
652
641
|
const de_ListTablesCommandError = async (output, context) => {
|
|
653
642
|
const parsedOutput = {
|
|
@@ -676,10 +665,9 @@ const de_ListTablesCommandError = async (output, context) => {
|
|
|
676
665
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
677
666
|
default:
|
|
678
667
|
const parsedBody = parsedOutput.body;
|
|
679
|
-
throwDefaultError({
|
|
668
|
+
return throwDefaultError({
|
|
680
669
|
output,
|
|
681
670
|
parsedBody,
|
|
682
|
-
exceptionCtor: __BaseException,
|
|
683
671
|
errorCode,
|
|
684
672
|
});
|
|
685
673
|
}
|
|
@@ -690,12 +678,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
690
678
|
}
|
|
691
679
|
const data = await parseBody(output.body, context);
|
|
692
680
|
let contents = {};
|
|
693
|
-
contents =
|
|
681
|
+
contents = _json(data);
|
|
694
682
|
const response = {
|
|
695
683
|
$metadata: deserializeMetadata(output),
|
|
696
684
|
...contents,
|
|
697
685
|
};
|
|
698
|
-
return
|
|
686
|
+
return response;
|
|
699
687
|
};
|
|
700
688
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
701
689
|
const parsedOutput = {
|
|
@@ -718,10 +706,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
718
706
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
719
707
|
default:
|
|
720
708
|
const parsedBody = parsedOutput.body;
|
|
721
|
-
throwDefaultError({
|
|
709
|
+
return throwDefaultError({
|
|
722
710
|
output,
|
|
723
711
|
parsedBody,
|
|
724
|
-
exceptionCtor: __BaseException,
|
|
725
712
|
errorCode,
|
|
726
713
|
});
|
|
727
714
|
}
|
|
@@ -732,12 +719,12 @@ export const de_ResumeBatchLoadTaskCommand = async (output, context) => {
|
|
|
732
719
|
}
|
|
733
720
|
const data = await parseBody(output.body, context);
|
|
734
721
|
let contents = {};
|
|
735
|
-
contents =
|
|
722
|
+
contents = _json(data);
|
|
736
723
|
const response = {
|
|
737
724
|
$metadata: deserializeMetadata(output),
|
|
738
725
|
...contents,
|
|
739
726
|
};
|
|
740
|
-
return
|
|
727
|
+
return response;
|
|
741
728
|
};
|
|
742
729
|
const de_ResumeBatchLoadTaskCommandError = async (output, context) => {
|
|
743
730
|
const parsedOutput = {
|
|
@@ -766,10 +753,9 @@ const de_ResumeBatchLoadTaskCommandError = async (output, context) => {
|
|
|
766
753
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
767
754
|
default:
|
|
768
755
|
const parsedBody = parsedOutput.body;
|
|
769
|
-
throwDefaultError({
|
|
756
|
+
return throwDefaultError({
|
|
770
757
|
output,
|
|
771
758
|
parsedBody,
|
|
772
|
-
exceptionCtor: __BaseException,
|
|
773
759
|
errorCode,
|
|
774
760
|
});
|
|
775
761
|
}
|
|
@@ -780,12 +766,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
780
766
|
}
|
|
781
767
|
const data = await parseBody(output.body, context);
|
|
782
768
|
let contents = {};
|
|
783
|
-
contents =
|
|
769
|
+
contents = _json(data);
|
|
784
770
|
const response = {
|
|
785
771
|
$metadata: deserializeMetadata(output),
|
|
786
772
|
...contents,
|
|
787
773
|
};
|
|
788
|
-
return
|
|
774
|
+
return response;
|
|
789
775
|
};
|
|
790
776
|
const de_TagResourceCommandError = async (output, context) => {
|
|
791
777
|
const parsedOutput = {
|
|
@@ -811,10 +797,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
811
797
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
812
798
|
default:
|
|
813
799
|
const parsedBody = parsedOutput.body;
|
|
814
|
-
throwDefaultError({
|
|
800
|
+
return throwDefaultError({
|
|
815
801
|
output,
|
|
816
802
|
parsedBody,
|
|
817
|
-
exceptionCtor: __BaseException,
|
|
818
803
|
errorCode,
|
|
819
804
|
});
|
|
820
805
|
}
|
|
@@ -825,12 +810,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
825
810
|
}
|
|
826
811
|
const data = await parseBody(output.body, context);
|
|
827
812
|
let contents = {};
|
|
828
|
-
contents =
|
|
813
|
+
contents = _json(data);
|
|
829
814
|
const response = {
|
|
830
815
|
$metadata: deserializeMetadata(output),
|
|
831
816
|
...contents,
|
|
832
817
|
};
|
|
833
|
-
return
|
|
818
|
+
return response;
|
|
834
819
|
};
|
|
835
820
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
836
821
|
const parsedOutput = {
|
|
@@ -856,10 +841,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
856
841
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
857
842
|
default:
|
|
858
843
|
const parsedBody = parsedOutput.body;
|
|
859
|
-
throwDefaultError({
|
|
844
|
+
return throwDefaultError({
|
|
860
845
|
output,
|
|
861
846
|
parsedBody,
|
|
862
|
-
exceptionCtor: __BaseException,
|
|
863
847
|
errorCode,
|
|
864
848
|
});
|
|
865
849
|
}
|
|
@@ -875,7 +859,7 @@ export const de_UpdateDatabaseCommand = async (output, context) => {
|
|
|
875
859
|
$metadata: deserializeMetadata(output),
|
|
876
860
|
...contents,
|
|
877
861
|
};
|
|
878
|
-
return
|
|
862
|
+
return response;
|
|
879
863
|
};
|
|
880
864
|
const de_UpdateDatabaseCommandError = async (output, context) => {
|
|
881
865
|
const parsedOutput = {
|
|
@@ -907,10 +891,9 @@ const de_UpdateDatabaseCommandError = async (output, context) => {
|
|
|
907
891
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
908
892
|
default:
|
|
909
893
|
const parsedBody = parsedOutput.body;
|
|
910
|
-
throwDefaultError({
|
|
894
|
+
return throwDefaultError({
|
|
911
895
|
output,
|
|
912
896
|
parsedBody,
|
|
913
|
-
exceptionCtor: __BaseException,
|
|
914
897
|
errorCode,
|
|
915
898
|
});
|
|
916
899
|
}
|
|
@@ -926,7 +909,7 @@ export const de_UpdateTableCommand = async (output, context) => {
|
|
|
926
909
|
$metadata: deserializeMetadata(output),
|
|
927
910
|
...contents,
|
|
928
911
|
};
|
|
929
|
-
return
|
|
912
|
+
return response;
|
|
930
913
|
};
|
|
931
914
|
const de_UpdateTableCommandError = async (output, context) => {
|
|
932
915
|
const parsedOutput = {
|
|
@@ -955,10 +938,9 @@ const de_UpdateTableCommandError = async (output, context) => {
|
|
|
955
938
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
956
939
|
default:
|
|
957
940
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
throwDefaultError({
|
|
941
|
+
return throwDefaultError({
|
|
959
942
|
output,
|
|
960
943
|
parsedBody,
|
|
961
|
-
exceptionCtor: __BaseException,
|
|
962
944
|
errorCode,
|
|
963
945
|
});
|
|
964
946
|
}
|
|
@@ -969,12 +951,12 @@ export const de_WriteRecordsCommand = async (output, context) => {
|
|
|
969
951
|
}
|
|
970
952
|
const data = await parseBody(output.body, context);
|
|
971
953
|
let contents = {};
|
|
972
|
-
contents =
|
|
954
|
+
contents = _json(data);
|
|
973
955
|
const response = {
|
|
974
956
|
$metadata: deserializeMetadata(output),
|
|
975
957
|
...contents,
|
|
976
958
|
};
|
|
977
|
-
return
|
|
959
|
+
return response;
|
|
978
960
|
};
|
|
979
961
|
const de_WriteRecordsCommandError = async (output, context) => {
|
|
980
962
|
const parsedOutput = {
|
|
@@ -1006,17 +988,16 @@ const de_WriteRecordsCommandError = async (output, context) => {
|
|
|
1006
988
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1007
989
|
default:
|
|
1008
990
|
const parsedBody = parsedOutput.body;
|
|
1009
|
-
throwDefaultError({
|
|
991
|
+
return throwDefaultError({
|
|
1010
992
|
output,
|
|
1011
993
|
parsedBody,
|
|
1012
|
-
exceptionCtor: __BaseException,
|
|
1013
994
|
errorCode,
|
|
1014
995
|
});
|
|
1015
996
|
}
|
|
1016
997
|
};
|
|
1017
998
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1018
999
|
const body = parsedOutput.body;
|
|
1019
|
-
const deserialized =
|
|
1000
|
+
const deserialized = _json(body);
|
|
1020
1001
|
const exception = new AccessDeniedException({
|
|
1021
1002
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1022
1003
|
...deserialized,
|
|
@@ -1025,7 +1006,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1025
1006
|
};
|
|
1026
1007
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1027
1008
|
const body = parsedOutput.body;
|
|
1028
|
-
const deserialized =
|
|
1009
|
+
const deserialized = _json(body);
|
|
1029
1010
|
const exception = new ConflictException({
|
|
1030
1011
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1031
1012
|
...deserialized,
|
|
@@ -1034,7 +1015,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1034
1015
|
};
|
|
1035
1016
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1036
1017
|
const body = parsedOutput.body;
|
|
1037
|
-
const deserialized =
|
|
1018
|
+
const deserialized = _json(body);
|
|
1038
1019
|
const exception = new InternalServerException({
|
|
1039
1020
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1040
1021
|
...deserialized,
|
|
@@ -1043,7 +1024,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1043
1024
|
};
|
|
1044
1025
|
const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
|
|
1045
1026
|
const body = parsedOutput.body;
|
|
1046
|
-
const deserialized =
|
|
1027
|
+
const deserialized = _json(body);
|
|
1047
1028
|
const exception = new InvalidEndpointException({
|
|
1048
1029
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1049
1030
|
...deserialized,
|
|
@@ -1052,7 +1033,7 @@ const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
|
|
|
1052
1033
|
};
|
|
1053
1034
|
const de_RejectedRecordsExceptionRes = async (parsedOutput, context) => {
|
|
1054
1035
|
const body = parsedOutput.body;
|
|
1055
|
-
const deserialized =
|
|
1036
|
+
const deserialized = _json(body);
|
|
1056
1037
|
const exception = new RejectedRecordsException({
|
|
1057
1038
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1058
1039
|
...deserialized,
|
|
@@ -1061,7 +1042,7 @@ const de_RejectedRecordsExceptionRes = async (parsedOutput, context) => {
|
|
|
1061
1042
|
};
|
|
1062
1043
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1063
1044
|
const body = parsedOutput.body;
|
|
1064
|
-
const deserialized =
|
|
1045
|
+
const deserialized = _json(body);
|
|
1065
1046
|
const exception = new ResourceNotFoundException({
|
|
1066
1047
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1067
1048
|
...deserialized,
|
|
@@ -1070,7 +1051,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1070
1051
|
};
|
|
1071
1052
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1072
1053
|
const body = parsedOutput.body;
|
|
1073
|
-
const deserialized =
|
|
1054
|
+
const deserialized = _json(body);
|
|
1074
1055
|
const exception = new ServiceQuotaExceededException({
|
|
1075
1056
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1076
1057
|
...deserialized,
|
|
@@ -1079,7 +1060,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1079
1060
|
};
|
|
1080
1061
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1081
1062
|
const body = parsedOutput.body;
|
|
1082
|
-
const deserialized =
|
|
1063
|
+
const deserialized = _json(body);
|
|
1083
1064
|
const exception = new ThrottlingException({
|
|
1084
1065
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1085
1066
|
...deserialized,
|
|
@@ -1088,7 +1069,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1088
1069
|
};
|
|
1089
1070
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1090
1071
|
const body = parsedOutput.body;
|
|
1091
|
-
const deserialized =
|
|
1072
|
+
const deserialized = _json(body);
|
|
1092
1073
|
const exception = new ValidationException({
|
|
1093
1074
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1094
1075
|
...deserialized,
|
|
@@ -1096,826 +1077,142 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1096
1077
|
return __decorateServiceException(exception, body);
|
|
1097
1078
|
};
|
|
1098
1079
|
const se_CreateBatchLoadTaskRequest = (input, context) => {
|
|
1099
|
-
return {
|
|
1100
|
-
ClientToken:
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
...(input.RecordVersion != null && { RecordVersion: input.RecordVersion }),
|
|
1108
|
-
...(input.ReportConfiguration != null && {
|
|
1109
|
-
ReportConfiguration: se_ReportConfiguration(input.ReportConfiguration, context),
|
|
1110
|
-
}),
|
|
1111
|
-
...(input.TargetDatabaseName != null && { TargetDatabaseName: input.TargetDatabaseName }),
|
|
1112
|
-
...(input.TargetTableName != null && { TargetTableName: input.TargetTableName }),
|
|
1113
|
-
};
|
|
1114
|
-
};
|
|
1115
|
-
const se_CreateDatabaseRequest = (input, context) => {
|
|
1116
|
-
return {
|
|
1117
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1118
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1119
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1120
|
-
};
|
|
1121
|
-
};
|
|
1122
|
-
const se_CreateTableRequest = (input, context) => {
|
|
1123
|
-
return {
|
|
1124
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1125
|
-
...(input.MagneticStoreWriteProperties != null && {
|
|
1126
|
-
MagneticStoreWriteProperties: se_MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1127
|
-
}),
|
|
1128
|
-
...(input.RetentionProperties != null && {
|
|
1129
|
-
RetentionProperties: se_RetentionProperties(input.RetentionProperties, context),
|
|
1130
|
-
}),
|
|
1131
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1132
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1133
|
-
};
|
|
1134
|
-
};
|
|
1135
|
-
const se_CsvConfiguration = (input, context) => {
|
|
1136
|
-
return {
|
|
1137
|
-
...(input.ColumnSeparator != null && { ColumnSeparator: input.ColumnSeparator }),
|
|
1138
|
-
...(input.EscapeChar != null && { EscapeChar: input.EscapeChar }),
|
|
1139
|
-
...(input.NullValue != null && { NullValue: input.NullValue }),
|
|
1140
|
-
...(input.QuoteChar != null && { QuoteChar: input.QuoteChar }),
|
|
1141
|
-
...(input.TrimWhiteSpace != null && { TrimWhiteSpace: input.TrimWhiteSpace }),
|
|
1142
|
-
};
|
|
1143
|
-
};
|
|
1144
|
-
const se_DataModel = (input, context) => {
|
|
1145
|
-
return {
|
|
1146
|
-
...(input.DimensionMappings != null && {
|
|
1147
|
-
DimensionMappings: se_DimensionMappings(input.DimensionMappings, context),
|
|
1148
|
-
}),
|
|
1149
|
-
...(input.MeasureNameColumn != null && { MeasureNameColumn: input.MeasureNameColumn }),
|
|
1150
|
-
...(input.MixedMeasureMappings != null && {
|
|
1151
|
-
MixedMeasureMappings: se_MixedMeasureMappingList(input.MixedMeasureMappings, context),
|
|
1152
|
-
}),
|
|
1153
|
-
...(input.MultiMeasureMappings != null && {
|
|
1154
|
-
MultiMeasureMappings: se_MultiMeasureMappings(input.MultiMeasureMappings, context),
|
|
1155
|
-
}),
|
|
1156
|
-
...(input.TimeColumn != null && { TimeColumn: input.TimeColumn }),
|
|
1157
|
-
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1158
|
-
};
|
|
1159
|
-
};
|
|
1160
|
-
const se_DataModelConfiguration = (input, context) => {
|
|
1161
|
-
return {
|
|
1162
|
-
...(input.DataModel != null && { DataModel: se_DataModel(input.DataModel, context) }),
|
|
1163
|
-
...(input.DataModelS3Configuration != null && {
|
|
1164
|
-
DataModelS3Configuration: se_DataModelS3Configuration(input.DataModelS3Configuration, context),
|
|
1165
|
-
}),
|
|
1166
|
-
};
|
|
1167
|
-
};
|
|
1168
|
-
const se_DataModelS3Configuration = (input, context) => {
|
|
1169
|
-
return {
|
|
1170
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1171
|
-
...(input.ObjectKey != null && { ObjectKey: input.ObjectKey }),
|
|
1172
|
-
};
|
|
1173
|
-
};
|
|
1174
|
-
const se_DataSourceConfiguration = (input, context) => {
|
|
1175
|
-
return {
|
|
1176
|
-
...(input.CsvConfiguration != null && { CsvConfiguration: se_CsvConfiguration(input.CsvConfiguration, context) }),
|
|
1177
|
-
...(input.DataFormat != null && { DataFormat: input.DataFormat }),
|
|
1178
|
-
...(input.DataSourceS3Configuration != null && {
|
|
1179
|
-
DataSourceS3Configuration: se_DataSourceS3Configuration(input.DataSourceS3Configuration, context),
|
|
1180
|
-
}),
|
|
1181
|
-
};
|
|
1182
|
-
};
|
|
1183
|
-
const se_DataSourceS3Configuration = (input, context) => {
|
|
1184
|
-
return {
|
|
1185
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1186
|
-
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1187
|
-
};
|
|
1188
|
-
};
|
|
1189
|
-
const se_DeleteDatabaseRequest = (input, context) => {
|
|
1190
|
-
return {
|
|
1191
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1192
|
-
};
|
|
1193
|
-
};
|
|
1194
|
-
const se_DeleteTableRequest = (input, context) => {
|
|
1195
|
-
return {
|
|
1196
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1197
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1198
|
-
};
|
|
1199
|
-
};
|
|
1200
|
-
const se_DescribeBatchLoadTaskRequest = (input, context) => {
|
|
1201
|
-
return {
|
|
1202
|
-
...(input.TaskId != null && { TaskId: input.TaskId }),
|
|
1203
|
-
};
|
|
1204
|
-
};
|
|
1205
|
-
const se_DescribeDatabaseRequest = (input, context) => {
|
|
1206
|
-
return {
|
|
1207
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1208
|
-
};
|
|
1209
|
-
};
|
|
1210
|
-
const se_DescribeEndpointsRequest = (input, context) => {
|
|
1211
|
-
return {};
|
|
1212
|
-
};
|
|
1213
|
-
const se_DescribeTableRequest = (input, context) => {
|
|
1214
|
-
return {
|
|
1215
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1216
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1217
|
-
};
|
|
1218
|
-
};
|
|
1219
|
-
const se_Dimension = (input, context) => {
|
|
1220
|
-
return {
|
|
1221
|
-
...(input.DimensionValueType != null && { DimensionValueType: input.DimensionValueType }),
|
|
1222
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1223
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1224
|
-
};
|
|
1225
|
-
};
|
|
1226
|
-
const se_DimensionMapping = (input, context) => {
|
|
1227
|
-
return {
|
|
1228
|
-
...(input.DestinationColumn != null && { DestinationColumn: input.DestinationColumn }),
|
|
1229
|
-
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1230
|
-
};
|
|
1231
|
-
};
|
|
1232
|
-
const se_DimensionMappings = (input, context) => {
|
|
1233
|
-
return input
|
|
1234
|
-
.filter((e) => e != null)
|
|
1235
|
-
.map((entry) => {
|
|
1236
|
-
return se_DimensionMapping(entry, context);
|
|
1237
|
-
});
|
|
1238
|
-
};
|
|
1239
|
-
const se_Dimensions = (input, context) => {
|
|
1240
|
-
return input
|
|
1241
|
-
.filter((e) => e != null)
|
|
1242
|
-
.map((entry) => {
|
|
1243
|
-
return se_Dimension(entry, context);
|
|
1244
|
-
});
|
|
1245
|
-
};
|
|
1246
|
-
const se_ListBatchLoadTasksRequest = (input, context) => {
|
|
1247
|
-
return {
|
|
1248
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1249
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1250
|
-
...(input.TaskStatus != null && { TaskStatus: input.TaskStatus }),
|
|
1251
|
-
};
|
|
1252
|
-
};
|
|
1253
|
-
const se_ListDatabasesRequest = (input, context) => {
|
|
1254
|
-
return {
|
|
1255
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1256
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1257
|
-
};
|
|
1258
|
-
};
|
|
1259
|
-
const se_ListTablesRequest = (input, context) => {
|
|
1260
|
-
return {
|
|
1261
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1262
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1263
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1264
|
-
};
|
|
1265
|
-
};
|
|
1266
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1267
|
-
return {
|
|
1268
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1269
|
-
};
|
|
1270
|
-
};
|
|
1271
|
-
const se_MagneticStoreRejectedDataLocation = (input, context) => {
|
|
1272
|
-
return {
|
|
1273
|
-
...(input.S3Configuration != null && { S3Configuration: se_S3Configuration(input.S3Configuration, context) }),
|
|
1274
|
-
};
|
|
1275
|
-
};
|
|
1276
|
-
const se_MagneticStoreWriteProperties = (input, context) => {
|
|
1277
|
-
return {
|
|
1278
|
-
...(input.EnableMagneticStoreWrites != null && { EnableMagneticStoreWrites: input.EnableMagneticStoreWrites }),
|
|
1279
|
-
...(input.MagneticStoreRejectedDataLocation != null && {
|
|
1280
|
-
MagneticStoreRejectedDataLocation: se_MagneticStoreRejectedDataLocation(input.MagneticStoreRejectedDataLocation, context),
|
|
1281
|
-
}),
|
|
1282
|
-
};
|
|
1283
|
-
};
|
|
1284
|
-
const se_MeasureValue = (input, context) => {
|
|
1285
|
-
return {
|
|
1286
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1287
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1288
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1289
|
-
};
|
|
1290
|
-
};
|
|
1291
|
-
const se_MeasureValues = (input, context) => {
|
|
1292
|
-
return input
|
|
1293
|
-
.filter((e) => e != null)
|
|
1294
|
-
.map((entry) => {
|
|
1295
|
-
return se_MeasureValue(entry, context);
|
|
1080
|
+
return take(input, {
|
|
1081
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1082
|
+
DataModelConfiguration: _json,
|
|
1083
|
+
DataSourceConfiguration: _json,
|
|
1084
|
+
RecordVersion: [],
|
|
1085
|
+
ReportConfiguration: _json,
|
|
1086
|
+
TargetDatabaseName: [],
|
|
1087
|
+
TargetTableName: [],
|
|
1296
1088
|
});
|
|
1297
1089
|
};
|
|
1298
|
-
const se_MixedMeasureMapping = (input, context) => {
|
|
1299
|
-
return {
|
|
1300
|
-
...(input.MeasureName != null && { MeasureName: input.MeasureName }),
|
|
1301
|
-
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1302
|
-
...(input.MultiMeasureAttributeMappings != null && {
|
|
1303
|
-
MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1304
|
-
}),
|
|
1305
|
-
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1306
|
-
...(input.TargetMeasureName != null && { TargetMeasureName: input.TargetMeasureName }),
|
|
1307
|
-
};
|
|
1308
|
-
};
|
|
1309
|
-
const se_MixedMeasureMappingList = (input, context) => {
|
|
1310
|
-
return input
|
|
1311
|
-
.filter((e) => e != null)
|
|
1312
|
-
.map((entry) => {
|
|
1313
|
-
return se_MixedMeasureMapping(entry, context);
|
|
1314
|
-
});
|
|
1315
|
-
};
|
|
1316
|
-
const se_MultiMeasureAttributeMapping = (input, context) => {
|
|
1317
|
-
return {
|
|
1318
|
-
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1319
|
-
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1320
|
-
...(input.TargetMultiMeasureAttributeName != null && {
|
|
1321
|
-
TargetMultiMeasureAttributeName: input.TargetMultiMeasureAttributeName,
|
|
1322
|
-
}),
|
|
1323
|
-
};
|
|
1324
|
-
};
|
|
1325
|
-
const se_MultiMeasureAttributeMappingList = (input, context) => {
|
|
1326
|
-
return input
|
|
1327
|
-
.filter((e) => e != null)
|
|
1328
|
-
.map((entry) => {
|
|
1329
|
-
return se_MultiMeasureAttributeMapping(entry, context);
|
|
1330
|
-
});
|
|
1331
|
-
};
|
|
1332
|
-
const se_MultiMeasureMappings = (input, context) => {
|
|
1333
|
-
return {
|
|
1334
|
-
...(input.MultiMeasureAttributeMappings != null && {
|
|
1335
|
-
MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1336
|
-
}),
|
|
1337
|
-
...(input.TargetMultiMeasureName != null && { TargetMultiMeasureName: input.TargetMultiMeasureName }),
|
|
1338
|
-
};
|
|
1339
|
-
};
|
|
1340
|
-
const se__Record = (input, context) => {
|
|
1341
|
-
return {
|
|
1342
|
-
...(input.Dimensions != null && { Dimensions: se_Dimensions(input.Dimensions, context) }),
|
|
1343
|
-
...(input.MeasureName != null && { MeasureName: input.MeasureName }),
|
|
1344
|
-
...(input.MeasureValue != null && { MeasureValue: input.MeasureValue }),
|
|
1345
|
-
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1346
|
-
...(input.MeasureValues != null && { MeasureValues: se_MeasureValues(input.MeasureValues, context) }),
|
|
1347
|
-
...(input.Time != null && { Time: input.Time }),
|
|
1348
|
-
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1349
|
-
...(input.Version != null && { Version: input.Version }),
|
|
1350
|
-
};
|
|
1351
|
-
};
|
|
1352
|
-
const se_Records = (input, context) => {
|
|
1353
|
-
return input
|
|
1354
|
-
.filter((e) => e != null)
|
|
1355
|
-
.map((entry) => {
|
|
1356
|
-
return se__Record(entry, context);
|
|
1357
|
-
});
|
|
1358
|
-
};
|
|
1359
|
-
const se_ReportConfiguration = (input, context) => {
|
|
1360
|
-
return {
|
|
1361
|
-
...(input.ReportS3Configuration != null && {
|
|
1362
|
-
ReportS3Configuration: se_ReportS3Configuration(input.ReportS3Configuration, context),
|
|
1363
|
-
}),
|
|
1364
|
-
};
|
|
1365
|
-
};
|
|
1366
|
-
const se_ReportS3Configuration = (input, context) => {
|
|
1367
|
-
return {
|
|
1368
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1369
|
-
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
1370
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1371
|
-
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1372
|
-
};
|
|
1373
|
-
};
|
|
1374
|
-
const se_ResumeBatchLoadTaskRequest = (input, context) => {
|
|
1375
|
-
return {
|
|
1376
|
-
...(input.TaskId != null && { TaskId: input.TaskId }),
|
|
1377
|
-
};
|
|
1378
|
-
};
|
|
1379
|
-
const se_RetentionProperties = (input, context) => {
|
|
1380
|
-
return {
|
|
1381
|
-
...(input.MagneticStoreRetentionPeriodInDays != null && {
|
|
1382
|
-
MagneticStoreRetentionPeriodInDays: input.MagneticStoreRetentionPeriodInDays,
|
|
1383
|
-
}),
|
|
1384
|
-
...(input.MemoryStoreRetentionPeriodInHours != null && {
|
|
1385
|
-
MemoryStoreRetentionPeriodInHours: input.MemoryStoreRetentionPeriodInHours,
|
|
1386
|
-
}),
|
|
1387
|
-
};
|
|
1388
|
-
};
|
|
1389
|
-
const se_S3Configuration = (input, context) => {
|
|
1390
|
-
return {
|
|
1391
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1392
|
-
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
1393
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1394
|
-
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1395
|
-
};
|
|
1396
|
-
};
|
|
1397
|
-
const se_Tag = (input, context) => {
|
|
1398
|
-
return {
|
|
1399
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1400
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1401
|
-
};
|
|
1402
|
-
};
|
|
1403
|
-
const se_TagKeyList = (input, context) => {
|
|
1404
|
-
return input
|
|
1405
|
-
.filter((e) => e != null)
|
|
1406
|
-
.map((entry) => {
|
|
1407
|
-
return entry;
|
|
1408
|
-
});
|
|
1409
|
-
};
|
|
1410
|
-
const se_TagList = (input, context) => {
|
|
1411
|
-
return input
|
|
1412
|
-
.filter((e) => e != null)
|
|
1413
|
-
.map((entry) => {
|
|
1414
|
-
return se_Tag(entry, context);
|
|
1415
|
-
});
|
|
1416
|
-
};
|
|
1417
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1418
|
-
return {
|
|
1419
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1420
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1421
|
-
};
|
|
1422
|
-
};
|
|
1423
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1424
|
-
return {
|
|
1425
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1426
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1427
|
-
};
|
|
1428
|
-
};
|
|
1429
|
-
const se_UpdateDatabaseRequest = (input, context) => {
|
|
1430
|
-
return {
|
|
1431
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1432
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1433
|
-
};
|
|
1434
|
-
};
|
|
1435
|
-
const se_UpdateTableRequest = (input, context) => {
|
|
1436
|
-
return {
|
|
1437
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1438
|
-
...(input.MagneticStoreWriteProperties != null && {
|
|
1439
|
-
MagneticStoreWriteProperties: se_MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1440
|
-
}),
|
|
1441
|
-
...(input.RetentionProperties != null && {
|
|
1442
|
-
RetentionProperties: se_RetentionProperties(input.RetentionProperties, context),
|
|
1443
|
-
}),
|
|
1444
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1445
|
-
};
|
|
1446
|
-
};
|
|
1447
|
-
const se_WriteRecordsRequest = (input, context) => {
|
|
1448
|
-
return {
|
|
1449
|
-
...(input.CommonAttributes != null && { CommonAttributes: se__Record(input.CommonAttributes, context) }),
|
|
1450
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1451
|
-
...(input.Records != null && { Records: se_Records(input.Records, context) }),
|
|
1452
|
-
...(input.TableName != null && { TableName: input.TableName }),
|
|
1453
|
-
};
|
|
1454
|
-
};
|
|
1455
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1456
|
-
return {
|
|
1457
|
-
Message: __expectString(output.Message),
|
|
1458
|
-
};
|
|
1459
|
-
};
|
|
1460
|
-
const de_BatchLoadProgressReport = (output, context) => {
|
|
1461
|
-
return {
|
|
1462
|
-
BytesMetered: __expectLong(output.BytesMetered),
|
|
1463
|
-
FileFailures: __expectLong(output.FileFailures),
|
|
1464
|
-
ParseFailures: __expectLong(output.ParseFailures),
|
|
1465
|
-
RecordIngestionFailures: __expectLong(output.RecordIngestionFailures),
|
|
1466
|
-
RecordsIngested: __expectLong(output.RecordsIngested),
|
|
1467
|
-
RecordsProcessed: __expectLong(output.RecordsProcessed),
|
|
1468
|
-
};
|
|
1469
|
-
};
|
|
1470
1090
|
const de_BatchLoadTask = (output, context) => {
|
|
1471
|
-
return {
|
|
1472
|
-
CreationTime:
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ResumableUntil)))
|
|
1481
|
-
: undefined,
|
|
1482
|
-
TableName: __expectString(output.TableName),
|
|
1483
|
-
TaskId: __expectString(output.TaskId),
|
|
1484
|
-
TaskStatus: __expectString(output.TaskStatus),
|
|
1485
|
-
};
|
|
1091
|
+
return take(output, {
|
|
1092
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1093
|
+
DatabaseName: __expectString,
|
|
1094
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1095
|
+
ResumableUntil: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1096
|
+
TableName: __expectString,
|
|
1097
|
+
TaskId: __expectString,
|
|
1098
|
+
TaskStatus: __expectString,
|
|
1099
|
+
});
|
|
1486
1100
|
};
|
|
1487
1101
|
const de_BatchLoadTaskDescription = (output, context) => {
|
|
1488
|
-
return {
|
|
1489
|
-
CreationTime:
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
RecordVersion: __expectLong(output.RecordVersion),
|
|
1504
|
-
ReportConfiguration: output.ReportConfiguration != null ? de_ReportConfiguration(output.ReportConfiguration, context) : undefined,
|
|
1505
|
-
ResumableUntil: output.ResumableUntil != null
|
|
1506
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ResumableUntil)))
|
|
1507
|
-
: undefined,
|
|
1508
|
-
TargetDatabaseName: __expectString(output.TargetDatabaseName),
|
|
1509
|
-
TargetTableName: __expectString(output.TargetTableName),
|
|
1510
|
-
TaskId: __expectString(output.TaskId),
|
|
1511
|
-
TaskStatus: __expectString(output.TaskStatus),
|
|
1512
|
-
};
|
|
1102
|
+
return take(output, {
|
|
1103
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1104
|
+
DataModelConfiguration: _json,
|
|
1105
|
+
DataSourceConfiguration: _json,
|
|
1106
|
+
ErrorMessage: __expectString,
|
|
1107
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1108
|
+
ProgressReport: _json,
|
|
1109
|
+
RecordVersion: __expectLong,
|
|
1110
|
+
ReportConfiguration: _json,
|
|
1111
|
+
ResumableUntil: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1112
|
+
TargetDatabaseName: __expectString,
|
|
1113
|
+
TargetTableName: __expectString,
|
|
1114
|
+
TaskId: __expectString,
|
|
1115
|
+
TaskStatus: __expectString,
|
|
1116
|
+
});
|
|
1513
1117
|
};
|
|
1514
1118
|
const de_BatchLoadTaskList = (output, context) => {
|
|
1515
1119
|
const retVal = (output || [])
|
|
1516
1120
|
.filter((e) => e != null)
|
|
1517
1121
|
.map((entry) => {
|
|
1518
|
-
if (entry === null) {
|
|
1519
|
-
return null;
|
|
1520
|
-
}
|
|
1521
1122
|
return de_BatchLoadTask(entry, context);
|
|
1522
1123
|
});
|
|
1523
1124
|
return retVal;
|
|
1524
1125
|
};
|
|
1525
|
-
const de_ConflictException = (output, context) => {
|
|
1526
|
-
return {
|
|
1527
|
-
Message: __expectString(output.Message),
|
|
1528
|
-
};
|
|
1529
|
-
};
|
|
1530
|
-
const de_CreateBatchLoadTaskResponse = (output, context) => {
|
|
1531
|
-
return {
|
|
1532
|
-
TaskId: __expectString(output.TaskId),
|
|
1533
|
-
};
|
|
1534
|
-
};
|
|
1535
1126
|
const de_CreateDatabaseResponse = (output, context) => {
|
|
1536
|
-
return {
|
|
1537
|
-
Database:
|
|
1538
|
-
};
|
|
1127
|
+
return take(output, {
|
|
1128
|
+
Database: (_) => de_Database(_, context),
|
|
1129
|
+
});
|
|
1539
1130
|
};
|
|
1540
1131
|
const de_CreateTableResponse = (output, context) => {
|
|
1541
|
-
return {
|
|
1542
|
-
Table:
|
|
1543
|
-
};
|
|
1544
|
-
};
|
|
1545
|
-
const de_CsvConfiguration = (output, context) => {
|
|
1546
|
-
return {
|
|
1547
|
-
ColumnSeparator: __expectString(output.ColumnSeparator),
|
|
1548
|
-
EscapeChar: __expectString(output.EscapeChar),
|
|
1549
|
-
NullValue: __expectString(output.NullValue),
|
|
1550
|
-
QuoteChar: __expectString(output.QuoteChar),
|
|
1551
|
-
TrimWhiteSpace: __expectBoolean(output.TrimWhiteSpace),
|
|
1552
|
-
};
|
|
1132
|
+
return take(output, {
|
|
1133
|
+
Table: (_) => de_Table(_, context),
|
|
1134
|
+
});
|
|
1553
1135
|
};
|
|
1554
1136
|
const de_Database = (output, context) => {
|
|
1555
|
-
return {
|
|
1556
|
-
Arn: __expectString
|
|
1557
|
-
CreationTime:
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
1564
|
-
: undefined,
|
|
1565
|
-
TableCount: __expectLong(output.TableCount),
|
|
1566
|
-
};
|
|
1137
|
+
return take(output, {
|
|
1138
|
+
Arn: __expectString,
|
|
1139
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1140
|
+
DatabaseName: __expectString,
|
|
1141
|
+
KmsKeyId: __expectString,
|
|
1142
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1143
|
+
TableCount: __expectLong,
|
|
1144
|
+
});
|
|
1567
1145
|
};
|
|
1568
1146
|
const de_DatabaseList = (output, context) => {
|
|
1569
1147
|
const retVal = (output || [])
|
|
1570
1148
|
.filter((e) => e != null)
|
|
1571
1149
|
.map((entry) => {
|
|
1572
|
-
if (entry === null) {
|
|
1573
|
-
return null;
|
|
1574
|
-
}
|
|
1575
1150
|
return de_Database(entry, context);
|
|
1576
1151
|
});
|
|
1577
1152
|
return retVal;
|
|
1578
1153
|
};
|
|
1579
|
-
const de_DataModel = (output, context) => {
|
|
1580
|
-
return {
|
|
1581
|
-
DimensionMappings: output.DimensionMappings != null ? de_DimensionMappings(output.DimensionMappings, context) : undefined,
|
|
1582
|
-
MeasureNameColumn: __expectString(output.MeasureNameColumn),
|
|
1583
|
-
MixedMeasureMappings: output.MixedMeasureMappings != null
|
|
1584
|
-
? de_MixedMeasureMappingList(output.MixedMeasureMappings, context)
|
|
1585
|
-
: undefined,
|
|
1586
|
-
MultiMeasureMappings: output.MultiMeasureMappings != null ? de_MultiMeasureMappings(output.MultiMeasureMappings, context) : undefined,
|
|
1587
|
-
TimeColumn: __expectString(output.TimeColumn),
|
|
1588
|
-
TimeUnit: __expectString(output.TimeUnit),
|
|
1589
|
-
};
|
|
1590
|
-
};
|
|
1591
|
-
const de_DataModelConfiguration = (output, context) => {
|
|
1592
|
-
return {
|
|
1593
|
-
DataModel: output.DataModel != null ? de_DataModel(output.DataModel, context) : undefined,
|
|
1594
|
-
DataModelS3Configuration: output.DataModelS3Configuration != null
|
|
1595
|
-
? de_DataModelS3Configuration(output.DataModelS3Configuration, context)
|
|
1596
|
-
: undefined,
|
|
1597
|
-
};
|
|
1598
|
-
};
|
|
1599
|
-
const de_DataModelS3Configuration = (output, context) => {
|
|
1600
|
-
return {
|
|
1601
|
-
BucketName: __expectString(output.BucketName),
|
|
1602
|
-
ObjectKey: __expectString(output.ObjectKey),
|
|
1603
|
-
};
|
|
1604
|
-
};
|
|
1605
|
-
const de_DataSourceConfiguration = (output, context) => {
|
|
1606
|
-
return {
|
|
1607
|
-
CsvConfiguration: output.CsvConfiguration != null ? de_CsvConfiguration(output.CsvConfiguration, context) : undefined,
|
|
1608
|
-
DataFormat: __expectString(output.DataFormat),
|
|
1609
|
-
DataSourceS3Configuration: output.DataSourceS3Configuration != null
|
|
1610
|
-
? de_DataSourceS3Configuration(output.DataSourceS3Configuration, context)
|
|
1611
|
-
: undefined,
|
|
1612
|
-
};
|
|
1613
|
-
};
|
|
1614
|
-
const de_DataSourceS3Configuration = (output, context) => {
|
|
1615
|
-
return {
|
|
1616
|
-
BucketName: __expectString(output.BucketName),
|
|
1617
|
-
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1618
|
-
};
|
|
1619
|
-
};
|
|
1620
1154
|
const de_DescribeBatchLoadTaskResponse = (output, context) => {
|
|
1621
|
-
return {
|
|
1622
|
-
BatchLoadTaskDescription:
|
|
1623
|
-
|
|
1624
|
-
: undefined,
|
|
1625
|
-
};
|
|
1155
|
+
return take(output, {
|
|
1156
|
+
BatchLoadTaskDescription: (_) => de_BatchLoadTaskDescription(_, context),
|
|
1157
|
+
});
|
|
1626
1158
|
};
|
|
1627
1159
|
const de_DescribeDatabaseResponse = (output, context) => {
|
|
1628
|
-
return {
|
|
1629
|
-
Database:
|
|
1630
|
-
};
|
|
1631
|
-
};
|
|
1632
|
-
const de_DescribeEndpointsResponse = (output, context) => {
|
|
1633
|
-
return {
|
|
1634
|
-
Endpoints: output.Endpoints != null ? de_Endpoints(output.Endpoints, context) : undefined,
|
|
1635
|
-
};
|
|
1636
|
-
};
|
|
1637
|
-
const de_DescribeTableResponse = (output, context) => {
|
|
1638
|
-
return {
|
|
1639
|
-
Table: output.Table != null ? de_Table(output.Table, context) : undefined,
|
|
1640
|
-
};
|
|
1641
|
-
};
|
|
1642
|
-
const de_DimensionMapping = (output, context) => {
|
|
1643
|
-
return {
|
|
1644
|
-
DestinationColumn: __expectString(output.DestinationColumn),
|
|
1645
|
-
SourceColumn: __expectString(output.SourceColumn),
|
|
1646
|
-
};
|
|
1647
|
-
};
|
|
1648
|
-
const de_DimensionMappings = (output, context) => {
|
|
1649
|
-
const retVal = (output || [])
|
|
1650
|
-
.filter((e) => e != null)
|
|
1651
|
-
.map((entry) => {
|
|
1652
|
-
if (entry === null) {
|
|
1653
|
-
return null;
|
|
1654
|
-
}
|
|
1655
|
-
return de_DimensionMapping(entry, context);
|
|
1160
|
+
return take(output, {
|
|
1161
|
+
Database: (_) => de_Database(_, context),
|
|
1656
1162
|
});
|
|
1657
|
-
return retVal;
|
|
1658
|
-
};
|
|
1659
|
-
const de_Endpoint = (output, context) => {
|
|
1660
|
-
return {
|
|
1661
|
-
Address: __expectString(output.Address),
|
|
1662
|
-
CachePeriodInMinutes: __expectLong(output.CachePeriodInMinutes),
|
|
1663
|
-
};
|
|
1664
1163
|
};
|
|
1665
|
-
const
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
.map((entry) => {
|
|
1669
|
-
if (entry === null) {
|
|
1670
|
-
return null;
|
|
1671
|
-
}
|
|
1672
|
-
return de_Endpoint(entry, context);
|
|
1164
|
+
const de_DescribeTableResponse = (output, context) => {
|
|
1165
|
+
return take(output, {
|
|
1166
|
+
Table: (_) => de_Table(_, context),
|
|
1673
1167
|
});
|
|
1674
|
-
return retVal;
|
|
1675
|
-
};
|
|
1676
|
-
const de_InternalServerException = (output, context) => {
|
|
1677
|
-
return {
|
|
1678
|
-
Message: __expectString(output.Message),
|
|
1679
|
-
};
|
|
1680
|
-
};
|
|
1681
|
-
const de_InvalidEndpointException = (output, context) => {
|
|
1682
|
-
return {
|
|
1683
|
-
Message: __expectString(output.Message),
|
|
1684
|
-
};
|
|
1685
1168
|
};
|
|
1686
1169
|
const de_ListBatchLoadTasksResponse = (output, context) => {
|
|
1687
|
-
return {
|
|
1688
|
-
BatchLoadTasks:
|
|
1689
|
-
NextToken: __expectString
|
|
1690
|
-
};
|
|
1691
|
-
};
|
|
1692
|
-
const de_ListDatabasesResponse = (output, context) => {
|
|
1693
|
-
return {
|
|
1694
|
-
Databases: output.Databases != null ? de_DatabaseList(output.Databases, context) : undefined,
|
|
1695
|
-
NextToken: __expectString(output.NextToken),
|
|
1696
|
-
};
|
|
1697
|
-
};
|
|
1698
|
-
const de_ListTablesResponse = (output, context) => {
|
|
1699
|
-
return {
|
|
1700
|
-
NextToken: __expectString(output.NextToken),
|
|
1701
|
-
Tables: output.Tables != null ? de_TableList(output.Tables, context) : undefined,
|
|
1702
|
-
};
|
|
1703
|
-
};
|
|
1704
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1705
|
-
return {
|
|
1706
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1707
|
-
};
|
|
1708
|
-
};
|
|
1709
|
-
const de_MagneticStoreRejectedDataLocation = (output, context) => {
|
|
1710
|
-
return {
|
|
1711
|
-
S3Configuration: output.S3Configuration != null ? de_S3Configuration(output.S3Configuration, context) : undefined,
|
|
1712
|
-
};
|
|
1713
|
-
};
|
|
1714
|
-
const de_MagneticStoreWriteProperties = (output, context) => {
|
|
1715
|
-
return {
|
|
1716
|
-
EnableMagneticStoreWrites: __expectBoolean(output.EnableMagneticStoreWrites),
|
|
1717
|
-
MagneticStoreRejectedDataLocation: output.MagneticStoreRejectedDataLocation != null
|
|
1718
|
-
? de_MagneticStoreRejectedDataLocation(output.MagneticStoreRejectedDataLocation, context)
|
|
1719
|
-
: undefined,
|
|
1720
|
-
};
|
|
1721
|
-
};
|
|
1722
|
-
const de_MixedMeasureMapping = (output, context) => {
|
|
1723
|
-
return {
|
|
1724
|
-
MeasureName: __expectString(output.MeasureName),
|
|
1725
|
-
MeasureValueType: __expectString(output.MeasureValueType),
|
|
1726
|
-
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1727
|
-
? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1728
|
-
: undefined,
|
|
1729
|
-
SourceColumn: __expectString(output.SourceColumn),
|
|
1730
|
-
TargetMeasureName: __expectString(output.TargetMeasureName),
|
|
1731
|
-
};
|
|
1732
|
-
};
|
|
1733
|
-
const de_MixedMeasureMappingList = (output, context) => {
|
|
1734
|
-
const retVal = (output || [])
|
|
1735
|
-
.filter((e) => e != null)
|
|
1736
|
-
.map((entry) => {
|
|
1737
|
-
if (entry === null) {
|
|
1738
|
-
return null;
|
|
1739
|
-
}
|
|
1740
|
-
return de_MixedMeasureMapping(entry, context);
|
|
1170
|
+
return take(output, {
|
|
1171
|
+
BatchLoadTasks: (_) => de_BatchLoadTaskList(_, context),
|
|
1172
|
+
NextToken: __expectString,
|
|
1741
1173
|
});
|
|
1742
|
-
return retVal;
|
|
1743
1174
|
};
|
|
1744
|
-
const
|
|
1745
|
-
return {
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
TargetMultiMeasureAttributeName: __expectString(output.TargetMultiMeasureAttributeName),
|
|
1749
|
-
};
|
|
1750
|
-
};
|
|
1751
|
-
const de_MultiMeasureAttributeMappingList = (output, context) => {
|
|
1752
|
-
const retVal = (output || [])
|
|
1753
|
-
.filter((e) => e != null)
|
|
1754
|
-
.map((entry) => {
|
|
1755
|
-
if (entry === null) {
|
|
1756
|
-
return null;
|
|
1757
|
-
}
|
|
1758
|
-
return de_MultiMeasureAttributeMapping(entry, context);
|
|
1175
|
+
const de_ListDatabasesResponse = (output, context) => {
|
|
1176
|
+
return take(output, {
|
|
1177
|
+
Databases: (_) => de_DatabaseList(_, context),
|
|
1178
|
+
NextToken: __expectString,
|
|
1759
1179
|
});
|
|
1760
|
-
return retVal;
|
|
1761
|
-
};
|
|
1762
|
-
const de_MultiMeasureMappings = (output, context) => {
|
|
1763
|
-
return {
|
|
1764
|
-
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1765
|
-
? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1766
|
-
: undefined,
|
|
1767
|
-
TargetMultiMeasureName: __expectString(output.TargetMultiMeasureName),
|
|
1768
|
-
};
|
|
1769
|
-
};
|
|
1770
|
-
const de_RecordsIngested = (output, context) => {
|
|
1771
|
-
return {
|
|
1772
|
-
MagneticStore: __expectInt32(output.MagneticStore),
|
|
1773
|
-
MemoryStore: __expectInt32(output.MemoryStore),
|
|
1774
|
-
Total: __expectInt32(output.Total),
|
|
1775
|
-
};
|
|
1776
|
-
};
|
|
1777
|
-
const de_RejectedRecord = (output, context) => {
|
|
1778
|
-
return {
|
|
1779
|
-
ExistingVersion: __expectLong(output.ExistingVersion),
|
|
1780
|
-
Reason: __expectString(output.Reason),
|
|
1781
|
-
RecordIndex: __expectInt32(output.RecordIndex),
|
|
1782
|
-
};
|
|
1783
1180
|
};
|
|
1784
|
-
const
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
if (entry === null) {
|
|
1789
|
-
return null;
|
|
1790
|
-
}
|
|
1791
|
-
return de_RejectedRecord(entry, context);
|
|
1181
|
+
const de_ListTablesResponse = (output, context) => {
|
|
1182
|
+
return take(output, {
|
|
1183
|
+
NextToken: __expectString,
|
|
1184
|
+
Tables: (_) => de_TableList(_, context),
|
|
1792
1185
|
});
|
|
1793
|
-
return retVal;
|
|
1794
|
-
};
|
|
1795
|
-
const de_RejectedRecordsException = (output, context) => {
|
|
1796
|
-
return {
|
|
1797
|
-
Message: __expectString(output.Message),
|
|
1798
|
-
RejectedRecords: output.RejectedRecords != null ? de_RejectedRecords(output.RejectedRecords, context) : undefined,
|
|
1799
|
-
};
|
|
1800
|
-
};
|
|
1801
|
-
const de_ReportConfiguration = (output, context) => {
|
|
1802
|
-
return {
|
|
1803
|
-
ReportS3Configuration: output.ReportS3Configuration != null
|
|
1804
|
-
? de_ReportS3Configuration(output.ReportS3Configuration, context)
|
|
1805
|
-
: undefined,
|
|
1806
|
-
};
|
|
1807
|
-
};
|
|
1808
|
-
const de_ReportS3Configuration = (output, context) => {
|
|
1809
|
-
return {
|
|
1810
|
-
BucketName: __expectString(output.BucketName),
|
|
1811
|
-
EncryptionOption: __expectString(output.EncryptionOption),
|
|
1812
|
-
KmsKeyId: __expectString(output.KmsKeyId),
|
|
1813
|
-
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1814
|
-
};
|
|
1815
|
-
};
|
|
1816
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1817
|
-
return {
|
|
1818
|
-
Message: __expectString(output.Message),
|
|
1819
|
-
};
|
|
1820
|
-
};
|
|
1821
|
-
const de_ResumeBatchLoadTaskResponse = (output, context) => {
|
|
1822
|
-
return {};
|
|
1823
|
-
};
|
|
1824
|
-
const de_RetentionProperties = (output, context) => {
|
|
1825
|
-
return {
|
|
1826
|
-
MagneticStoreRetentionPeriodInDays: __expectLong(output.MagneticStoreRetentionPeriodInDays),
|
|
1827
|
-
MemoryStoreRetentionPeriodInHours: __expectLong(output.MemoryStoreRetentionPeriodInHours),
|
|
1828
|
-
};
|
|
1829
|
-
};
|
|
1830
|
-
const de_S3Configuration = (output, context) => {
|
|
1831
|
-
return {
|
|
1832
|
-
BucketName: __expectString(output.BucketName),
|
|
1833
|
-
EncryptionOption: __expectString(output.EncryptionOption),
|
|
1834
|
-
KmsKeyId: __expectString(output.KmsKeyId),
|
|
1835
|
-
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1836
|
-
};
|
|
1837
|
-
};
|
|
1838
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
1839
|
-
return {
|
|
1840
|
-
Message: __expectString(output.Message),
|
|
1841
|
-
};
|
|
1842
1186
|
};
|
|
1843
1187
|
const de_Table = (output, context) => {
|
|
1844
|
-
return {
|
|
1845
|
-
Arn: __expectString
|
|
1846
|
-
CreationTime:
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
? de_MagneticStoreWriteProperties(output.MagneticStoreWriteProperties, context)
|
|
1855
|
-
: undefined,
|
|
1856
|
-
RetentionProperties: output.RetentionProperties != null ? de_RetentionProperties(output.RetentionProperties, context) : undefined,
|
|
1857
|
-
TableName: __expectString(output.TableName),
|
|
1858
|
-
TableStatus: __expectString(output.TableStatus),
|
|
1859
|
-
};
|
|
1188
|
+
return take(output, {
|
|
1189
|
+
Arn: __expectString,
|
|
1190
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1191
|
+
DatabaseName: __expectString,
|
|
1192
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1193
|
+
MagneticStoreWriteProperties: _json,
|
|
1194
|
+
RetentionProperties: _json,
|
|
1195
|
+
TableName: __expectString,
|
|
1196
|
+
TableStatus: __expectString,
|
|
1197
|
+
});
|
|
1860
1198
|
};
|
|
1861
1199
|
const de_TableList = (output, context) => {
|
|
1862
1200
|
const retVal = (output || [])
|
|
1863
1201
|
.filter((e) => e != null)
|
|
1864
1202
|
.map((entry) => {
|
|
1865
|
-
if (entry === null) {
|
|
1866
|
-
return null;
|
|
1867
|
-
}
|
|
1868
1203
|
return de_Table(entry, context);
|
|
1869
1204
|
});
|
|
1870
1205
|
return retVal;
|
|
1871
1206
|
};
|
|
1872
|
-
const de_Tag = (output, context) => {
|
|
1873
|
-
return {
|
|
1874
|
-
Key: __expectString(output.Key),
|
|
1875
|
-
Value: __expectString(output.Value),
|
|
1876
|
-
};
|
|
1877
|
-
};
|
|
1878
|
-
const de_TagList = (output, context) => {
|
|
1879
|
-
const retVal = (output || [])
|
|
1880
|
-
.filter((e) => e != null)
|
|
1881
|
-
.map((entry) => {
|
|
1882
|
-
if (entry === null) {
|
|
1883
|
-
return null;
|
|
1884
|
-
}
|
|
1885
|
-
return de_Tag(entry, context);
|
|
1886
|
-
});
|
|
1887
|
-
return retVal;
|
|
1888
|
-
};
|
|
1889
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1890
|
-
return {};
|
|
1891
|
-
};
|
|
1892
|
-
const de_ThrottlingException = (output, context) => {
|
|
1893
|
-
return {
|
|
1894
|
-
Message: __expectString(output.Message),
|
|
1895
|
-
};
|
|
1896
|
-
};
|
|
1897
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1898
|
-
return {};
|
|
1899
|
-
};
|
|
1900
1207
|
const de_UpdateDatabaseResponse = (output, context) => {
|
|
1901
|
-
return {
|
|
1902
|
-
Database:
|
|
1903
|
-
};
|
|
1208
|
+
return take(output, {
|
|
1209
|
+
Database: (_) => de_Database(_, context),
|
|
1210
|
+
});
|
|
1904
1211
|
};
|
|
1905
1212
|
const de_UpdateTableResponse = (output, context) => {
|
|
1906
|
-
return {
|
|
1907
|
-
Table:
|
|
1908
|
-
};
|
|
1909
|
-
};
|
|
1910
|
-
const de_ValidationException = (output, context) => {
|
|
1911
|
-
return {
|
|
1912
|
-
Message: __expectString(output.Message),
|
|
1913
|
-
};
|
|
1914
|
-
};
|
|
1915
|
-
const de_WriteRecordsResponse = (output, context) => {
|
|
1916
|
-
return {
|
|
1917
|
-
RecordsIngested: output.RecordsIngested != null ? de_RecordsIngested(output.RecordsIngested, context) : undefined,
|
|
1918
|
-
};
|
|
1213
|
+
return take(output, {
|
|
1214
|
+
Table: (_) => de_Table(_, context),
|
|
1215
|
+
});
|
|
1919
1216
|
};
|
|
1920
1217
|
const deserializeMetadata = (output) => ({
|
|
1921
1218
|
httpStatusCode: output.statusCode,
|
|
@@ -1930,6 +1227,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1930
1227
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1931
1228
|
};
|
|
1932
1229
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1230
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1933
1231
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1934
1232
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1935
1233
|
const contents = {
|