@aws-sdk/client-timestream-write 3.131.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/CreateDatabaseCommand.js +2 -2
- package/dist-cjs/commands/CreateTableCommand.js +2 -2
- package/dist-cjs/commands/DeleteDatabaseCommand.js +1 -1
- package/dist-cjs/commands/DeleteTableCommand.js +1 -1
- package/dist-cjs/commands/DescribeDatabaseCommand.js +2 -2
- package/dist-cjs/commands/DescribeEndpointsCommand.js +2 -2
- package/dist-cjs/commands/DescribeTableCommand.js +2 -2
- package/dist-cjs/commands/ListDatabasesCommand.js +2 -2
- package/dist-cjs/commands/ListTablesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDatabaseCommand.js +2 -2
- package/dist-cjs/commands/UpdateTableCommand.js +2 -2
- package/dist-cjs/commands/WriteRecordsCommand.js +2 -2
- package/dist-cjs/models/models_0.js +166 -248
- package/dist-cjs/protocols/Aws_json1_0.js +75 -135
- package/dist-es/commands/CreateDatabaseCommand.js +3 -3
- package/dist-es/commands/CreateTableCommand.js +3 -3
- package/dist-es/commands/DeleteDatabaseCommand.js +2 -2
- package/dist-es/commands/DeleteTableCommand.js +2 -2
- package/dist-es/commands/DescribeDatabaseCommand.js +3 -3
- package/dist-es/commands/DescribeEndpointsCommand.js +3 -3
- package/dist-es/commands/DescribeTableCommand.js +3 -3
- package/dist-es/commands/ListDatabasesCommand.js +3 -3
- package/dist-es/commands/ListTablesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDatabaseCommand.js +3 -3
- package/dist-es/commands/UpdateTableCommand.js +3 -3
- package/dist-es/commands/WriteRecordsCommand.js +3 -3
- package/dist-es/models/models_0.js +41 -164
- package/dist-es/protocols/Aws_json1_0.js +121 -136
- package/dist-types/models/models_0.d.ts +164 -246
- package/dist-types/ts3.4/models/models_0.d.ts +82 -164
- package/package.json +6 -6
|
@@ -174,7 +174,6 @@ const deserializeAws_json1_0CreateDatabaseCommandError = async (output, context)
|
|
|
174
174
|
...output,
|
|
175
175
|
body: await parseBody(output.body, context),
|
|
176
176
|
};
|
|
177
|
-
let response;
|
|
178
177
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
179
178
|
switch (errorCode) {
|
|
180
179
|
case "AccessDeniedException":
|
|
@@ -200,14 +199,12 @@ const deserializeAws_json1_0CreateDatabaseCommandError = async (output, context)
|
|
|
200
199
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
201
200
|
default:
|
|
202
201
|
const parsedBody = parsedOutput.body;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
$metadata,
|
|
202
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
203
|
+
output,
|
|
204
|
+
parsedBody,
|
|
205
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
206
|
+
errorCode,
|
|
209
207
|
});
|
|
210
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
211
208
|
}
|
|
212
209
|
};
|
|
213
210
|
const deserializeAws_json1_0CreateTableCommand = async (output, context) => {
|
|
@@ -229,7 +226,6 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
229
226
|
...output,
|
|
230
227
|
body: await parseBody(output.body, context),
|
|
231
228
|
};
|
|
232
|
-
let response;
|
|
233
229
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
234
230
|
switch (errorCode) {
|
|
235
231
|
case "AccessDeniedException":
|
|
@@ -258,14 +254,12 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
258
254
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
259
255
|
default:
|
|
260
256
|
const parsedBody = parsedOutput.body;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
$metadata,
|
|
257
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
258
|
+
output,
|
|
259
|
+
parsedBody,
|
|
260
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
261
|
+
errorCode,
|
|
267
262
|
});
|
|
268
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
269
263
|
}
|
|
270
264
|
};
|
|
271
265
|
const deserializeAws_json1_0DeleteDatabaseCommand = async (output, context) => {
|
|
@@ -284,7 +278,6 @@ const deserializeAws_json1_0DeleteDatabaseCommandError = async (output, context)
|
|
|
284
278
|
...output,
|
|
285
279
|
body: await parseBody(output.body, context),
|
|
286
280
|
};
|
|
287
|
-
let response;
|
|
288
281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
289
282
|
switch (errorCode) {
|
|
290
283
|
case "AccessDeniedException":
|
|
@@ -307,14 +300,12 @@ const deserializeAws_json1_0DeleteDatabaseCommandError = async (output, context)
|
|
|
307
300
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
308
301
|
default:
|
|
309
302
|
const parsedBody = parsedOutput.body;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
$metadata,
|
|
303
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
304
|
+
output,
|
|
305
|
+
parsedBody,
|
|
306
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
307
|
+
errorCode,
|
|
316
308
|
});
|
|
317
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
318
309
|
}
|
|
319
310
|
};
|
|
320
311
|
const deserializeAws_json1_0DeleteTableCommand = async (output, context) => {
|
|
@@ -333,7 +324,6 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
333
324
|
...output,
|
|
334
325
|
body: await parseBody(output.body, context),
|
|
335
326
|
};
|
|
336
|
-
let response;
|
|
337
327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
338
328
|
switch (errorCode) {
|
|
339
329
|
case "AccessDeniedException":
|
|
@@ -356,14 +346,12 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
356
346
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
357
347
|
default:
|
|
358
348
|
const parsedBody = parsedOutput.body;
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
$metadata,
|
|
349
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
350
|
+
output,
|
|
351
|
+
parsedBody,
|
|
352
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
353
|
+
errorCode,
|
|
365
354
|
});
|
|
366
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
367
355
|
}
|
|
368
356
|
};
|
|
369
357
|
const deserializeAws_json1_0DescribeDatabaseCommand = async (output, context) => {
|
|
@@ -385,7 +373,6 @@ const deserializeAws_json1_0DescribeDatabaseCommandError = async (output, contex
|
|
|
385
373
|
...output,
|
|
386
374
|
body: await parseBody(output.body, context),
|
|
387
375
|
};
|
|
388
|
-
let response;
|
|
389
376
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
377
|
switch (errorCode) {
|
|
391
378
|
case "AccessDeniedException":
|
|
@@ -408,14 +395,12 @@ const deserializeAws_json1_0DescribeDatabaseCommandError = async (output, contex
|
|
|
408
395
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
409
396
|
default:
|
|
410
397
|
const parsedBody = parsedOutput.body;
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
$metadata,
|
|
398
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
399
|
+
output,
|
|
400
|
+
parsedBody,
|
|
401
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
402
|
+
errorCode,
|
|
417
403
|
});
|
|
418
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
419
404
|
}
|
|
420
405
|
};
|
|
421
406
|
const deserializeAws_json1_0DescribeEndpointsCommand = async (output, context) => {
|
|
@@ -437,7 +422,6 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
437
422
|
...output,
|
|
438
423
|
body: await parseBody(output.body, context),
|
|
439
424
|
};
|
|
440
|
-
let response;
|
|
441
425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
442
426
|
switch (errorCode) {
|
|
443
427
|
case "InternalServerException":
|
|
@@ -451,14 +435,12 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
451
435
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
452
436
|
default:
|
|
453
437
|
const parsedBody = parsedOutput.body;
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
$metadata,
|
|
438
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
439
|
+
output,
|
|
440
|
+
parsedBody,
|
|
441
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
442
|
+
errorCode,
|
|
460
443
|
});
|
|
461
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
462
444
|
}
|
|
463
445
|
};
|
|
464
446
|
const deserializeAws_json1_0DescribeTableCommand = async (output, context) => {
|
|
@@ -480,7 +462,6 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
480
462
|
...output,
|
|
481
463
|
body: await parseBody(output.body, context),
|
|
482
464
|
};
|
|
483
|
-
let response;
|
|
484
465
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
466
|
switch (errorCode) {
|
|
486
467
|
case "AccessDeniedException":
|
|
@@ -503,14 +484,12 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
503
484
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
504
485
|
default:
|
|
505
486
|
const parsedBody = parsedOutput.body;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
$metadata,
|
|
487
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
488
|
+
output,
|
|
489
|
+
parsedBody,
|
|
490
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
491
|
+
errorCode,
|
|
512
492
|
});
|
|
513
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
514
493
|
}
|
|
515
494
|
};
|
|
516
495
|
const deserializeAws_json1_0ListDatabasesCommand = async (output, context) => {
|
|
@@ -532,7 +511,6 @@ const deserializeAws_json1_0ListDatabasesCommandError = async (output, context)
|
|
|
532
511
|
...output,
|
|
533
512
|
body: await parseBody(output.body, context),
|
|
534
513
|
};
|
|
535
|
-
let response;
|
|
536
514
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
515
|
switch (errorCode) {
|
|
538
516
|
case "AccessDeniedException":
|
|
@@ -552,14 +530,12 @@ const deserializeAws_json1_0ListDatabasesCommandError = async (output, context)
|
|
|
552
530
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
553
531
|
default:
|
|
554
532
|
const parsedBody = parsedOutput.body;
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
$metadata,
|
|
533
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
534
|
+
output,
|
|
535
|
+
parsedBody,
|
|
536
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
537
|
+
errorCode,
|
|
561
538
|
});
|
|
562
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
563
539
|
}
|
|
564
540
|
};
|
|
565
541
|
const deserializeAws_json1_0ListTablesCommand = async (output, context) => {
|
|
@@ -581,7 +557,6 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
581
557
|
...output,
|
|
582
558
|
body: await parseBody(output.body, context),
|
|
583
559
|
};
|
|
584
|
-
let response;
|
|
585
560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
561
|
switch (errorCode) {
|
|
587
562
|
case "AccessDeniedException":
|
|
@@ -604,14 +579,12 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
604
579
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
605
580
|
default:
|
|
606
581
|
const parsedBody = parsedOutput.body;
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
$metadata,
|
|
582
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
583
|
+
output,
|
|
584
|
+
parsedBody,
|
|
585
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
586
|
+
errorCode,
|
|
613
587
|
});
|
|
614
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
615
588
|
}
|
|
616
589
|
};
|
|
617
590
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -633,7 +606,6 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
633
606
|
...output,
|
|
634
607
|
body: await parseBody(output.body, context),
|
|
635
608
|
};
|
|
636
|
-
let response;
|
|
637
609
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
610
|
switch (errorCode) {
|
|
639
611
|
case "InvalidEndpointException":
|
|
@@ -650,14 +622,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
650
622
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
651
623
|
default:
|
|
652
624
|
const parsedBody = parsedOutput.body;
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
$metadata,
|
|
625
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
626
|
+
output,
|
|
627
|
+
parsedBody,
|
|
628
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
629
|
+
errorCode,
|
|
659
630
|
});
|
|
660
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
661
631
|
}
|
|
662
632
|
};
|
|
663
633
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
@@ -679,7 +649,6 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
679
649
|
...output,
|
|
680
650
|
body: await parseBody(output.body, context),
|
|
681
651
|
};
|
|
682
|
-
let response;
|
|
683
652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
653
|
switch (errorCode) {
|
|
685
654
|
case "InvalidEndpointException":
|
|
@@ -699,14 +668,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
699
668
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
700
669
|
default:
|
|
701
670
|
const parsedBody = parsedOutput.body;
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
$metadata,
|
|
671
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
672
|
+
output,
|
|
673
|
+
parsedBody,
|
|
674
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
675
|
+
errorCode,
|
|
708
676
|
});
|
|
709
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
710
677
|
}
|
|
711
678
|
};
|
|
712
679
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
@@ -728,7 +695,6 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
728
695
|
...output,
|
|
729
696
|
body: await parseBody(output.body, context),
|
|
730
697
|
};
|
|
731
|
-
let response;
|
|
732
698
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
699
|
switch (errorCode) {
|
|
734
700
|
case "InvalidEndpointException":
|
|
@@ -748,14 +714,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
748
714
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
749
715
|
default:
|
|
750
716
|
const parsedBody = parsedOutput.body;
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
$metadata,
|
|
717
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
718
|
+
output,
|
|
719
|
+
parsedBody,
|
|
720
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
721
|
+
errorCode,
|
|
757
722
|
});
|
|
758
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
759
723
|
}
|
|
760
724
|
};
|
|
761
725
|
const deserializeAws_json1_0UpdateDatabaseCommand = async (output, context) => {
|
|
@@ -777,7 +741,6 @@ const deserializeAws_json1_0UpdateDatabaseCommandError = async (output, context)
|
|
|
777
741
|
...output,
|
|
778
742
|
body: await parseBody(output.body, context),
|
|
779
743
|
};
|
|
780
|
-
let response;
|
|
781
744
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
745
|
switch (errorCode) {
|
|
783
746
|
case "AccessDeniedException":
|
|
@@ -803,14 +766,12 @@ const deserializeAws_json1_0UpdateDatabaseCommandError = async (output, context)
|
|
|
803
766
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
804
767
|
default:
|
|
805
768
|
const parsedBody = parsedOutput.body;
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
$metadata,
|
|
769
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
770
|
+
output,
|
|
771
|
+
parsedBody,
|
|
772
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
773
|
+
errorCode,
|
|
812
774
|
});
|
|
813
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
814
775
|
}
|
|
815
776
|
};
|
|
816
777
|
const deserializeAws_json1_0UpdateTableCommand = async (output, context) => {
|
|
@@ -832,7 +793,6 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
832
793
|
...output,
|
|
833
794
|
body: await parseBody(output.body, context),
|
|
834
795
|
};
|
|
835
|
-
let response;
|
|
836
796
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
797
|
switch (errorCode) {
|
|
838
798
|
case "AccessDeniedException":
|
|
@@ -855,14 +815,12 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
855
815
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
856
816
|
default:
|
|
857
817
|
const parsedBody = parsedOutput.body;
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
$metadata,
|
|
818
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
819
|
+
output,
|
|
820
|
+
parsedBody,
|
|
821
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
822
|
+
errorCode,
|
|
864
823
|
});
|
|
865
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
866
824
|
}
|
|
867
825
|
};
|
|
868
826
|
const deserializeAws_json1_0WriteRecordsCommand = async (output, context) => {
|
|
@@ -884,7 +842,6 @@ const deserializeAws_json1_0WriteRecordsCommandError = async (output, context) =
|
|
|
884
842
|
...output,
|
|
885
843
|
body: await parseBody(output.body, context),
|
|
886
844
|
};
|
|
887
|
-
let response;
|
|
888
845
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
846
|
switch (errorCode) {
|
|
890
847
|
case "AccessDeniedException":
|
|
@@ -910,14 +867,12 @@ const deserializeAws_json1_0WriteRecordsCommandError = async (output, context) =
|
|
|
910
867
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
911
868
|
default:
|
|
912
869
|
const parsedBody = parsedOutput.body;
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
$metadata,
|
|
870
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
871
|
+
output,
|
|
872
|
+
parsedBody,
|
|
873
|
+
exceptionCtor: TimestreamWriteServiceException_1.TimestreamWriteServiceException,
|
|
874
|
+
errorCode,
|
|
919
875
|
});
|
|
920
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
921
876
|
}
|
|
922
877
|
};
|
|
923
878
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1057,9 +1012,6 @@ const serializeAws_json1_0Dimensions = (input, context) => {
|
|
|
1057
1012
|
return input
|
|
1058
1013
|
.filter((e) => e != null)
|
|
1059
1014
|
.map((entry) => {
|
|
1060
|
-
if (entry === null) {
|
|
1061
|
-
return null;
|
|
1062
|
-
}
|
|
1063
1015
|
return serializeAws_json1_0Dimension(entry, context);
|
|
1064
1016
|
});
|
|
1065
1017
|
};
|
|
@@ -1107,9 +1059,6 @@ const serializeAws_json1_0MeasureValues = (input, context) => {
|
|
|
1107
1059
|
return input
|
|
1108
1060
|
.filter((e) => e != null)
|
|
1109
1061
|
.map((entry) => {
|
|
1110
|
-
if (entry === null) {
|
|
1111
|
-
return null;
|
|
1112
|
-
}
|
|
1113
1062
|
return serializeAws_json1_0MeasureValue(entry, context);
|
|
1114
1063
|
});
|
|
1115
1064
|
};
|
|
@@ -1131,9 +1080,6 @@ const serializeAws_json1_0Records = (input, context) => {
|
|
|
1131
1080
|
return input
|
|
1132
1081
|
.filter((e) => e != null)
|
|
1133
1082
|
.map((entry) => {
|
|
1134
|
-
if (entry === null) {
|
|
1135
|
-
return null;
|
|
1136
|
-
}
|
|
1137
1083
|
return serializeAws_json1_0_Record(entry, context);
|
|
1138
1084
|
});
|
|
1139
1085
|
};
|
|
@@ -1165,9 +1111,6 @@ const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
|
1165
1111
|
return input
|
|
1166
1112
|
.filter((e) => e != null)
|
|
1167
1113
|
.map((entry) => {
|
|
1168
|
-
if (entry === null) {
|
|
1169
|
-
return null;
|
|
1170
|
-
}
|
|
1171
1114
|
return entry;
|
|
1172
1115
|
});
|
|
1173
1116
|
};
|
|
@@ -1175,9 +1118,6 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
1175
1118
|
return input
|
|
1176
1119
|
.filter((e) => e != null)
|
|
1177
1120
|
.map((entry) => {
|
|
1178
|
-
if (entry === null) {
|
|
1179
|
-
return null;
|
|
1180
|
-
}
|
|
1181
1121
|
return serializeAws_json1_0Tag(entry, context);
|
|
1182
1122
|
});
|
|
1183
1123
|
};
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { CreateDatabaseRequestFilterSensitiveLog, CreateDatabaseResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_json1_0CreateDatabaseCommand, serializeAws_json1_0CreateDatabaseCommand, } from "../protocols/Aws_json1_0";
|
|
7
7
|
var CreateDatabaseCommand = (function (_super) {
|
|
8
8
|
__extends(CreateDatabaseCommand, _super);
|
|
@@ -22,8 +22,8 @@ var CreateDatabaseCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: CreateDatabaseRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: CreateDatabaseResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { CreateTableRequestFilterSensitiveLog, CreateTableResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_json1_0CreateTableCommand, serializeAws_json1_0CreateTableCommand, } from "../protocols/Aws_json1_0";
|
|
7
7
|
var CreateTableCommand = (function (_super) {
|
|
8
8
|
__extends(CreateTableCommand, _super);
|
|
@@ -22,8 +22,8 @@ var CreateTableCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: CreateTableRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: CreateTableResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { DeleteDatabaseRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_json1_0DeleteDatabaseCommand, serializeAws_json1_0DeleteDatabaseCommand, } from "../protocols/Aws_json1_0";
|
|
7
7
|
var DeleteDatabaseCommand = (function (_super) {
|
|
8
8
|
__extends(DeleteDatabaseCommand, _super);
|
|
@@ -22,7 +22,7 @@ var DeleteDatabaseCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: DeleteDatabaseRequestFilterSensitiveLog,
|
|
26
26
|
outputFilterSensitiveLog: function (output) { return output; },
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { DeleteTableRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_json1_0DeleteTableCommand, serializeAws_json1_0DeleteTableCommand, } from "../protocols/Aws_json1_0";
|
|
7
7
|
var DeleteTableCommand = (function (_super) {
|
|
8
8
|
__extends(DeleteTableCommand, _super);
|
|
@@ -22,7 +22,7 @@ var DeleteTableCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: DeleteTableRequestFilterSensitiveLog,
|
|
26
26
|
outputFilterSensitiveLog: function (output) { return output; },
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { DescribeDatabaseRequestFilterSensitiveLog, DescribeDatabaseResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_json1_0DescribeDatabaseCommand, serializeAws_json1_0DescribeDatabaseCommand, } from "../protocols/Aws_json1_0";
|
|
7
7
|
var DescribeDatabaseCommand = (function (_super) {
|
|
8
8
|
__extends(DescribeDatabaseCommand, _super);
|
|
@@ -22,8 +22,8 @@ var DescribeDatabaseCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: DescribeDatabaseRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: DescribeDatabaseResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DescribeEndpointsRequestFilterSensitiveLog, DescribeEndpointsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_0DescribeEndpointsCommand, serializeAws_json1_0DescribeEndpointsCommand, } from "../protocols/Aws_json1_0";
|
|
6
6
|
var DescribeEndpointsCommand = (function (_super) {
|
|
7
7
|
__extends(DescribeEndpointsCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DescribeEndpointsCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DescribeEndpointsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeEndpointsResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { DescribeTableRequestFilterSensitiveLog, DescribeTableResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_json1_0DescribeTableCommand, serializeAws_json1_0DescribeTableCommand, } from "../protocols/Aws_json1_0";
|
|
7
7
|
var DescribeTableCommand = (function (_super) {
|
|
8
8
|
__extends(DescribeTableCommand, _super);
|
|
@@ -22,8 +22,8 @@ var DescribeTableCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: DescribeTableRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: DescribeTableResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { ListDatabasesRequestFilterSensitiveLog, ListDatabasesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_json1_0ListDatabasesCommand, serializeAws_json1_0ListDatabasesCommand, } from "../protocols/Aws_json1_0";
|
|
7
7
|
var ListDatabasesCommand = (function (_super) {
|
|
8
8
|
__extends(ListDatabasesCommand, _super);
|
|
@@ -22,8 +22,8 @@ var ListDatabasesCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: ListDatabasesRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: ListDatabasesResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|
|
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
|
-
import {
|
|
5
|
+
import { ListTablesRequestFilterSensitiveLog, ListTablesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_json1_0ListTablesCommand, serializeAws_json1_0ListTablesCommand, } from "../protocols/Aws_json1_0";
|
|
7
7
|
var ListTablesCommand = (function (_super) {
|
|
8
8
|
__extends(ListTablesCommand, _super);
|
|
@@ -22,8 +22,8 @@ var ListTablesCommand = (function (_super) {
|
|
|
22
22
|
logger: logger,
|
|
23
23
|
clientName: clientName,
|
|
24
24
|
commandName: commandName,
|
|
25
|
-
inputFilterSensitiveLog:
|
|
26
|
-
outputFilterSensitiveLog:
|
|
25
|
+
inputFilterSensitiveLog: ListTablesRequestFilterSensitiveLog,
|
|
26
|
+
outputFilterSensitiveLog: ListTablesResponseFilterSensitiveLog,
|
|
27
27
|
};
|
|
28
28
|
var requestHandler = configuration.requestHandler;
|
|
29
29
|
return stack.resolve(function (request) {
|